Get CenterPoint of a family location

Hi, I want to get CenterPoint of a family location but It’s not working

Hi there! I’m not sure what kind of objects you are working with, but try connecting what you have as input on the element for the Element.GetParameterValueByName to the Element.GetLocation node.
Both nodes you are trying does not get the type of object it expects. FamilyInstance.Location expects a FamilyInstance object and Element.GetLocation expects Elements, you are giving both Family Types, thats why it’s not working.

1 Like