Get instance parameter using Python


#1

Hello everybody!

First of all, sorry if it is a stupid question, I am very new in Dynamo / Python.

I am traying to get a instance parameter from a given FamilyInstances list (an input to my Python script) as in this example:

for isol in existIsol:
linkedTo = isol.Parameter[‘Linked to Mechanical eq.’]
if (linkedTo in mechEId):
matchIsol.Add(isol)

where “existIsol” is my FamilyInstance list…

I get the next error: … AttributeError: ‘FamilyInstance’ object has no attribute ‘Parameter’

Can anyone give me a point??

Thanks in advance!!