Answers for "get DefaultTemplateId dynamo revit"

0

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
Posted by: Guest on August-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language