Hi everyone
Can i get parameter name of hook length by Revit API for each shape?
Thank for your recommend.
1 Like
you look for something like this…
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from System.Collections.Generic import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
app = DocumentManager.Instance.CurrentUIApplication.Application
elements = UnwrapElement(IN[0])
result = []
for i in elements:
result.append(i.LookupParameter("A").AsDouble())
OUT = result
with units i am still struggeling.
KR
Andreas
Yes but for each shape hook length parameter name is not “A” i want to know
without checking.