Showing posts with label Civil 3D tips tricks and workarounds. Show all posts
Showing posts with label Civil 3D tips tricks and workarounds. Show all posts

Tuesday, 22 November 2022

Civil 3D : CoGo points export to KML issue

Το Civil 3D εξάγει αυτούσια τα CoGoPts σε KML!
Όταν όμως τα σημεία έχουν εισαχθεί με διαφορετικά point styles τότε τα μόνα σημεία τα οποία εξάγονται με εντοπισμό θέσης και descriptions είναι αυτά τα οποία έχουν point style αυτό με το οποίο έγινε η πρώτη εισαγωγή σημείου στο dwg! Όλα τα άλλα εξάγονται μεν αλλά χωρίς πληροφορία θέσης! Δηλαδή δεν σχεδιάζονται στο Google Earth ή στο maps.
Αν μετέπειτα υιοθετηθεί για όλα τα σημεία το αρχικά επιλεχθέν point style τότε εξάγονται σωστά κι ας είχαν πριν άλλο point style.
 
Ώρες χαμένες, μέχρι να βρω λύση στο πρόβλημα, τρεις.

Επίσης, όταν το Google Earth έχει να εμφανίσει σημεία στην ίδια θέση τότε εμφανίζει μόνον αυτό που εισήχθη πιο τελευταίο. Έτσι μπορεί κανείς να νομίσει ότι κάτι δεν πάει καλά. Απενεργοποιώντας την εμφάνιση του σημείου που είναι ορατό τότε εμφανίζεται και το ταυτόσημο.

Thursday, 4 March 2021

Subassembly composer multiple nested decisions issues and workarounds

I used to work with SubAssembly Composer (SAC) 2014 because it was the last version allowing a variable to be deleted and recreated with the same name not reporting the message that this variable already exists. Same thing happens when a variable is cut and pasted somewhere else. Trying to rename from copy to the previous name resulted to the same message. A serious bug that autodesk never responded to my notifications at the civil 3d customization support forum.

I created a subassembly using SAC 2014.Working at it, step by step it became huge and unresponsive.
Solution :
I turned to SAC 2018. This version handles huge subassemblies far better.

Copy or cut/paste a variable makes it impossible to use it with the same name, as mentioned at the beginning of this topic.
Solution :
Declare all variables inside a Sequence at the very start of the program. So there is no need to move it to another place. Not a good solution for someone that is used to programming but...

Finally i reached to a level of complexivity that doing a minor change had a huge time cost.
Solution :
I started unlinking all unecessary nodes keeping linked only those for the case i wanted to create or examine. Quite annoying but i did not find another workaround. For this to work  properly i had to keep written notes about how to reproduce each case.

But even so there was also a quite annoying time lag during changes or addings.
Solution :
Cut the preceding link. Everything takes place on the fly.

But no link or point already entered is available to select. Empty dropdown lists !
Solution :
The above method is perfect as long as no poimt or link selection has to be made. If so i found a better workaround.
Instead of cutting the preceding link i do a dummy insertion eg an empty shape so an error takes place.
Whatever is inserted, changed or moved takes place on the fly.
And best of all, all points and links are available to select.

Finally i have to connect all nodes. Program becomes completely unresponsible. It never unfreezes.
Solution :
Cut the very first node.
Join all others.
Save it using a name that identifies this.
Save it again removing this identification.
Do the every first join.
It freezes. Finally it reports a message that it is out of memory. Press OK. Save it.
It freezes again. But it is saved.
End it by force.
In case of changes use the one that is cut at the very first node. Repeat the above steps.

Notice :
Variables, Points and Links declared in a Switch or Decision are NOT available out of this Switch or Decision scope !!!

Tuesday, 7 May 2019

Civil 3D and SAC insanity...once again.

I created a subassembly using SAC2014.
It checks corridor stationing to decide to do some actions.
I have a decision like the following.

math.floor((StationValue-StaStart)/Step) = (StationValue-StaStart)/Step and StationValue>=StaStart and StationValue<=StaEnd

For StationValue=4059, StaStart=4045, Step=2, StaEnd=4059 the result was False !!! because floor was 6 (???!!!) and full double was 7. Insane !!!

I changed to math.round and values became equal so it should turn to True. But i did not !!!???

Being one step before madness i reduced the region less than the StaEnd and then i got it back.
Everything got as expected.
Simple Corridor rebuilding  or region stationing extending by grips does not trully rebuilds that station. Only reducing region stationing that much so that the desired station does not exist and then extending back worked out.

Autodesk's products insanity.

I made a test. Changed SAC code back to "Floor". Reloaded subassembly and rebuilded the corridor. Everything looked as expected so the result was True. But i did not trust it. So i reduced region stationing and then restored it.
Guess what. Now it turned to False. Again. So true rebuild for a station takes place only if it is vanished and restored !!!

Back to "Round" and everything worked fine although it should with "Floor".

Insanity continued...
I did the region stationing changes using the plan view grips.
When finally subassembly worked as expected plan view was immediatelly updated.
But the Cross Section View was not ! I had to move the Sample Line back and forth to update !

Wednesday, 27 March 2019

Civil 3D workaround : Corridor Surface Boundary "Add automatically" option not showing although it should

So you have a corridor made of sub assemblies that should expose one or more codes for adding boundaries automatically but this option is not offered although it should.

Watch for locked layers. Assemblies, alignments, profiles, targets, superelevation views, surfaces whatever may be related to the corridor and its surface.

If all unlocked then check this.
Set boundary to Corridor extends.
Rebuild corridor and watch the Event viewer.
If there is a warning that "could not apply mask (0) to corridor due to crossing polygon" then try this.

Set Corridor frequencies to another much larger value.
Apply.
Now the option for Adding automatically should be available.
Select the desired code.
Apply and rebuild.
Reenter corridor properties and change frequencies back to the previous values. Apply and rebuild.

Add automatically is still available and everything is working fine.

Yet another workaround.
Autodesk is unintentionally training our brains to prevent failure due to aging. Or maybe our brains are about to get burned because of all this over the years searching for workarounds, tricks and things like these trying to make their software to work as expected.
We should also not neglect all those extreme feelings of frustration, surprise, anxiety, desperation and finally...triumph that comes with situations like these.

Friday, 1 March 2019

Civil 3D tip : Multiple corridor link codes. Material area fill styles priority.

Suppose a corridor link has multiple codes.
When assigning a Code Set Style that uses more than one of those codes to set a Material Area Fill Style only the last by order code entered is applied.
All others are ignored.
I am talking about the order the codes are declared by the user...
...at the original autodesk sub assemblies, wherever this is possible and 
...at subassemblies created using SubAssemblyComposer.

No matter what the transparency is or if it the hatch is solid or not.

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.

Monday, 4 February 2019

Civil 3D bug : Modifying sections views offset sampling & minimum elevation

Say i have some cross section views.
There are some cases that i must do the following actions for the Civil 3D section views to match section views made by another design package.
First change the minimum section view elevation.
Next change the section view offsets.
I watch that surface maximum offset values are updated as reported at the section properties.
But graph is not informed and offsets remain !

Sample line group properties, Sections, Sample more sources, Remove, OK and then Add again does not work.
Also closing and reopening the drawing does not work.

Workaround is to swap the actions order. First fix the offsets and next fix the minimum elevation.

For any already existing wrong graphs the only way to show all is to manual or by custom software set for each one cross section view the SectionViewProperties, Elevations, User specified, Maximum value to the value of the Automatic one.

Tuesday, 8 January 2019

Civil 3D : Survey : Mass move SurveyPoints

I had a case of a survey that had some points at wrong elevation. The GPS pole height was forgotten to zero elevation.
So i had to change the SurveyPoints elevation. Minus 2m to the elevation of some points.

I unlocked all the SurveyPoints.
Then i selected the desired ones through a SurveyQuery.
Finally i moved them using native autoCAD command Move.
Points were moved. And changed their properties to CoGoPoints! SurveyPoints maintained their original coordinates!

If doing this one by one using either the SurveyPoint editor or by simply dragging, Survey property is kept and coordinates change. Mass move through native autoCAD commands has no effect.

So i had to make the mass changes, export all the points, delete previous import event, CoGoPoints, Survey Points&Figures and finally reimport.

Yet another Civil 3D issue. It is obvious that there might have been lots of manual corrections to the SurveyFigures due to mistakes when surveying. All of them should be done again.

Why such a dummy way of thinking autoDESK ?

Same day found a workaround.
Make a dummy SurveyNetwork
Right click on it, select SurveyCommandWindow
Type MOD ELS BY PtStart PtEnd deltaElev
eg mod els by 35 142 -2
Modifies elevations of point 35 to 142 by -2
At ToolSpace Survey right click SurveyPoints and select Update.
AutomaticUpdate SurveyPoints does not work!!! Has to be manual after this modification.
Next to this a ProcessLinework has to be done also for the figures to update.

Friday, 2 February 2018

AutoCAD & Civil 3D : My custom tips, tricks, workarounds and knowledge

Problem : Civil 3D alignment labels do not change next to scale change
Workaround : Select the non responding objects. Set them in another layer. They will adapt scale at once. Set them back to the previous layer.

Problem : autoCAD LT 2011, where is the SheetSet manager
Answer : Sheet set manager was included in the next version. No SSM for this version.

Problem : Plotting to DWF does not use the selected ctb file.
Cases :
1.Works fine when publish through SheetSetManager for Single Sheet printing but fails when trying Multiple Sheet.
2.Does not work at all when in autoCAD LT 2011
Solution for all cases :
Copy the desired ctb file to the default Plot styles folder.
Tools->Options->Plot and Publish->Plot Style Table Settings->Add or Edit Plot Style Tables...
Opens the default Plot Styles folder

Friday, 7 July 2017

Civil 3D Trimble Link Road export tip. Feature lines unchecked. Point empty coding.

When exporting a Civil 3D Corridor to a Trimble sensor using Trimble Link the apropriate Corridor Surfaces must have already been created.
But no Cross Sections will be exported if Surface is created through Links that the Feature Lines at the two edges of each Link are not checked !
This also means that uncoded points can not create a Trimble Link exportable surface !

 

Leica Infrastructure Link multiple baseline corridor export

In case a Corridor consists of more than one Baselines based on different Alignments then all Feature Lines checked in whatever Baseline are exported but only the first Baseline Alignment is exported ! All other are ignored ! Finally only one Layer is created for the entire Corridor.
So it is not possible to set the appropriate Centerline when in RoadRunner.

X-Change was capable of producing multiple Layers.

So it is crucial to work only with X-Change and up to Civil 3D 2016
or
create mutiple Corridors, one for each Baseline
or
do multiple HeXML exports having checked only one Baseline per session but it does not work
follow this link https://infrastructuresurveyor.blogspot.gr/2017/06/i-had-corridor-with-multiple-baselines.html

Thursday, 27 April 2017

Civil 3D 2017 : corridor endless out of date status finally missing after saving drawing

https://forums.autodesk.com/t5/autocad-civil-3d-forum/corridor-out-of-date/td-p/2923316

"

My problem was even worse not just Rebuild status always on.
 
Immediatelly after saving dwg...
 
...an alignment, some feature lines and the corridor that is built on them were lost. Just not existing anymore in prospector and screen !
Undoing resurrected them !
 
OR
...the above mentioned alignment was visible but not existing in the prospector ! I could right click on it and handle it although it was a...ghost ! Corridor reported it as its baseline !
If my next action was...
...moving it siteless the object became visible to prospector and everything became normal !
...saving dwg again, alignment became invisible and corridor reported that had no baselines ! Totally lost. Single undo does nothing. Second undo ressurects corridor object and the graph but not the alignment object to the prospector.
 
Had to find a solution since saving and loosing them was not an option and ofcourse keeping it open until a solution was found in the future is impossimble (on the way to madness and what could i say to my supervisors expecting from me to finish just a simple job)
 
I was lucky enough to find out that setting the alignment to whatever site, new or existing with whatever name is the caution to loose it and the corridor that is attached to it and also the feature lines.
 
Moving to site none (siteless) , rebuilt status clears after rebuilding and saving works fine !
 
I attach the dwg. First import in an empty dwg the also zipped subassemblies and then open the dwg.
The objects i mentioned above are...
alignment named...EDL002B240_TKV
corridor named...EDL002B240_TKV
feature lines...both siteless
Try move them to existing site or a new one and then rebuild. Rebuild status remains on whatever i do.
Finally try saving dwg twice.

"

Friday, 7 October 2016

Civil 3D corridor export feature lines tip : Baseline Profile layer locked

I have used Corridor feature lines export to Polylines, Alignments with profiles and Profiles lots of times.
But this time nothing worked right. All elevations were not absolute but relative to baseline profile not matter what trick i tried.
Finally i found out that if profile baseline layer is locked then all elevations exported, no matter what method used, are relative to this profile, not absolute!

Not as single mention in C3D help. Not a single relative result in Google Search. Am i the first one to fall into this situation ? I do not think so.
Should autodesk warn users about this behaviour ?

Thanks God, i found that just one step before losing my mind and only after several hours stall!
So the damage is done. Other partners, that do not know anything about C3D, think that i am too slow and that simple projects are difficult for me. Yeah...if you say so...

&*&^%%$%#@$!*@&^

Monday, 29 February 2016

Civil 3D custom objects export to autocad not exported. Two cases.

Case 1 : object is set on a layer that is frozen.
Civil 3D custom objects layers should be turned on and thawed so that they are exported to common autocad objects.
So custom model views that work with layers frozen are a problem.

Case 2 : object style has different visibility behaviour among plan,model,profile or section view
If for example a surface is presented through a style that triangles are off for plan view and visible for 3D view then if export takes place when in plan view triangles will not be exported.

Tuesday, 25 August 2015

Civil 3D tip. Feature lines vs 3D polylines as corridor target lines

3D polylines can be used as corridor target lines.
Each one gets a name from Civil 3D and the user can not set it or change it.
But if you break it then both new parts keep the same name. And this is a problem when using them as targets.


The only workaround i found is to convert them to feature lines. Names are always unique even in case of breaking and can be set and changed by the user.