Answers for "ToDSType dynamo revit"

0

ToDSType dynamo revit

import clr

clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc=DocumentManager.Instance.CurrentDBDocument

for i in family_inst: #convert familyInstances to revit.db.elements
	new_types.append(i.ToDSType(False))

OUT=new_types
Posted by: Guest on August-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language