Hello!
When creating a featureline, Civil3d-settings give you only two options
with “Use the layer setting” being one hardcoded layer in your settings and “Use the current layer” being, well, the current layer.
If you use the first option, all featurelines, regardless of their style, end up on one layer.
I want to create a Dynamoscript that does the following:
-
Look at all featurelines in the drawing
-
Get their style
-
Look inside the style to retrieve the layer that is set in View Direction: Plan
-
Move the featureline to that layer (e.g. “C-ROAD-CORR”)
I’m almost there but somehow the Object.SetLayer-node doesn’t work although FeatureLine.AutoCADObject seems to convert the featurelines just fine.
Can someone help me out with what’s going on? (Maybe @zachri.jensen @Anton_Huizinga?)
Any help is much appreciated!
MoveFeaturelineToStyleLayer_v01.dyn (25.8 KB)