- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Short version:
I have a FamilyParameter.IsInstance is set to True on it.
I have a FamilyInstance.
How do I get the Parameter from the FamilyInstance that corresponds to the FamilyParameter?
Long version:
I'm trying to get the load on an electrical device. I have the FamilyInstance in the project.
The load is set in the connector. To get the load from the connector, I have to go the family document. See this other forum post for background.
On the connector, I get the load parameter.
But! The has set the built-in load parameter to depend on a family parameter that he has created. It is an instance parameter so that in the project he can set the load for each device. I need to find this load.
I Use GetAssociatedFamilyParameter to get the FamilyParameter that is being used.
I check FamilyParameter.IsInstance and see that it is an instance parameter.
Now I need to go back to the instance and find the parameter to get the value.
I can't get the parameter using the definition (returns null) or GUID (not a shared parameter so doesn't exist).
In the Definition the names match but not the Id. I could iterate over all the parameters and find it that way, but if there are two parameters with the same name, I'm not sure how to make sure I found the right one. And that doesn't "feel" like the right way to get the parameter, but it could be my intuition is off on this.
Design Master Electrical RT
Solved! Go to Solution.