Hello
What is a proper way to invite Civil 3d objects and existing Civil 3d nodes in python script ?
Revit example from primer:
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import RevitNodes
clr.AddReference("RevitNodes")
import Revit
# Import Revit elements
from Revit.Elements import *
# Import DocumentManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
import System
I found this on primer for Revit, is it similar way for Civil 3d ?
Also is there a special line in command to “unwrap” entering elements ?
TransactionManager.Istance.EnsureInTransaction(doc) - line from Revit python script, does same go for civil 3d ?
If you could point me to a place where i could learn a bit more about that would be also very helpful. I am new to python and dynamo.
Thank you for your time
EDIT:
What i would like to achieve with dynamo is to select a corridor link at a station convert it to a feature line and create a new corridor from that feature line (assign targets also). Don’t know if that is possible…