Showing posts with label QTO. Show all posts
Showing posts with label QTO. Show all posts

Friday, 1 March 2019

Civil 3D "bug" : QTO material list gaps. Application freezing

I had a case of three similar alignments in the same dwg.
I had to set multiple gaps for the QTO material lists.
First alignment everything worked fine.
Second and third one and by the time i applied whatever gap the application freezed.
No matter what i tried i always ended up to an eternal loop which would set the particular CPU core to work at its maximum endlessly.

I was entering the gap stations by hand. I typed them. One by one. For every alignment.
Trying to set stations to other than those of the sample lines obviously did not work. Only sample line stations are accepted. I tried to bypass it doing a graphical selection. You are only allowed to select sample lines. Not stations. So i entered all gaps graphically. And everything worked fine!!!

Still have not figured out why everything worked fine for the first alignment since i also typed by hand all stations.

Autodesk give us a break. I lost seven whole hours of my working time trying to find a solution. One step before going crazy. No solution over the internet or the Civil 3D forum. I was off time for the deliverables. My supervisor thinks i am slow and i lack of knowledge about this software. For God's shake.

Saturday, 23 August 2014

Civil 3D 2014 custom command : Sample Line Group Material Export

QTO HTML export is not always suitable for excel manipulation.
Using custom command SLGME a more suitable text report comes out.
It is a tab delimiter one.
Prerequisites

Sunday, 10 August 2014

Civil 3D API help

Πρόσφατα χρειάστηκε να γράψω ένα ακόμη πρόγραμμα για το Civil 3D 2014. Σε .NET με Visual studio 2013 express edition και Visual Basic.
Οι HTML report lists που εμφανίζει από το QTO είναι μη αξιοποιήσιμες από το EXCEL.
Έπρεπε λοιπόν να κάνω εξαγωγή ανά Alignment/SLG/Material list/Material/Station με συγκεκριμένο format.
Η τρέχουσα έκδοση έκανε expose του QTO για πρώτη φορά! Έλα όμως που ως συνήθως το documentation είναι απλά επιφανειακό. Τέλος πάντων βρήκα και το path και την area propery που ήθελα.
Τεστάροντας όμως είδα ότι έπαιρνα πάντα area value μηδέν. Θεώρησα ότι δεν ήταν τελικά αυτό το ζητούμενο path και property κι άρχισα να ξαναψάχνω στα τυφλά μέσα στο API.
Στα πρόθυρα της παράνοιας κατέληξα δια της εις άτοπον απαγωγή ότι η αρχική μου επιλογή ήταν η ορθή κι ότι υπήρχε bug. Η property ήταν exposed αλλά ο προγραμματιστής ξέχασε να κάνει assign την value. Κι αυτό γιατί τα σημεία που όριζαν την επιφάνεια και ήταν προσβάσιμα κι έδιναν την προσδοκώμενη τιμή όταν την υπελόγιζα με απλό κομπιουτεράκι.
Οπότε έγραψα και μια fucntion για να υπολογίζω μόνος μου την επιφάνεια. Μόνον που τα πράματα δεν ήταν τόσο απλά. Η επιφάνεια μπορεί να ήταν μια σύνθεση από πολλές κλειστές επιφάνειες.
Τελικά όλα πήγαν καλά. Τις επόμενες μέρες θα δώσω και την διεύθυνση όπου αυτό το πρόγραμμα θα μπορεί να γίνει download.