📅  最后修改于: 2022-03-11 14:45:34.535000             🧑  作者: Mango
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]