Dynamo中使用PythonScript00

导入所需要的库

#启用python支持加载DesignScript库
import 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

参考

你可能感兴趣的:(Python,Dynamo中使用python,dynamopython,dynamo的python模块,Revit和dynamo,Revit和Python)