Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('acdbmgd')
clr.AddReference('acmgd')
clr.AddReference('accoremgd')
clr.AddReference('AecBaseMgd')
import Autodesk
app2 = Autodesk.AutoCAD.ApplicationServices
om = Autodesk.AutoCAD.DatabaseServices.OpenMode
ts = Autodesk.AutoCAD.DatabaseServices.Transaction
ed = app2.Application.DocumentManager.MdiActiveDocument.Editor
clr.AddReference('AeccDbMgd')
import Autodesk
app = Autodesk.Civil.ApplicationServices
doc = app.CivilApplication.ActiveDocument
ts1 = app2.Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction()
pipe_ids = doc.GetPipeNetworkIds()
styles = doc.Styles
pipes = styles.PipeStyles
el = ts.GetObject(ts1,pipes[1],om.ForRead)
ts1.Commit()
# Assign your output to the OUT variable."""
OUT = el,dir(el)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment