I have just started using Dynamo and learning Python. I would like to import “Feature Lines” from Civil 3D into Dynamo but I don’t think there is a node for that. Having said that, I think the best way forward is to import using Python. I have written a code based on a video I have watched online. The code is as shown:
from Autodesk.DesignScript.Geometry import *
app2 = Autodesk.AutoCAD.ApplicationServices
om = Autodesk.AutoCAD.DatabaseServices.OpenMode
ts = Autodesk.AutoCAD.DatabaseServices.Transaction
ed = app2.Application.DocumentManager.MdiActiveDocument.Editor
app = Autodesk.Civil.ApplicationServices
doc = app.CivilApplication.ActiveDocument
ts1 = app2.Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction()
Import feature line from Civil 3D into Dynamo???
OUT = FeatureLine
Unfortunately, I am unable to post the dynamo file online as I am a new user. Could anyone help me with this? Thank you.