📜  revit dynamo 选择所有类别 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:34.535000             🧑  作者: Mango

代码示例1
import clr

# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager

# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument


OUT = [i.Name for i in doc.Settings.Categories]