You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chuong Ho edited this page Feb 21, 2023
·
4 revisions
Interactive with OpenMEP package use Python Script
# Load the Python Standard and DesignScript Librariesimportsysimportclrclr.AddReference('OpenMEP')
importOpenMEPfromOpenMEP.ElementimportDuctasdOUT=dir(d)
Example Create a Pipe
# Load the Python Standard and DesignScript Librariesimportsysimportclrclr.AddReference('OpenMEP')
importOpenMEPfromOpenMEP.ElementimportPipeaspsystemType=IN[0]
pipeType=IN[1]
level=IN[2]
line=IN[3]
OUT=p.Create(systemType,pipeType,level,line)