get DefaultTemplateId dynamo revit
import clr
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
viewFamilyTypes = UnwrapElement(IN[0])
defaultTemplateIds = []
for viewFamilyType in viewFamilyTypes:
defaultTemplateId = viewFamilyType.DefaultTemplateId
defaultTemplateIds.append(defaultTemplateId)
OUT = defaultTemplateIds
Are there any code examples left?
New code examples in category Python