I need help
I try to set Parameter to the family (Singel parameter “H”) to the smae family with the different val EX.[5,6,7] to get the family geometry at each parameter
I use Python and what i have the latest geomety related to the latest H paramere EX. 7
def apply_transformation(H,Sita):
HH=[]
doc = DocumentManager.Instance.CurrentDBDocument
TransactionManager.Instance.EnsureInTransaction(doc)
elementId = IN[0] # Assuming element ID is passed
element = doc.GetElement(ElementId(elementId))
param_H = element.LookupParameter("H")
if param_H and param_H.StorageType == StorageType.Double:
param_H.Set(UnitUtils.ConvertToInternalUnits(H, UnitTypeId.Meters))
param_Sita = element.LookupParameter("Sita")
if param_Sita:
param_Sita.Set(Sita)
# doc.Save()
# doc.Close()
TransactionManager.Instance.TransactionTaskDone()
time.sleep(5)
return [H,Sita]
when i use dynamo node i have error “Starting new transaction is not permitted …”
But when i use Custom node it work and i can get family geomenty related to the each parameter
what i need to edit the python code to get the geometry as in custom node that i need it as python function
Or
Can i call the custom node inside my python code?
Any one Help


