Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
I'm retrieving family connectors and some of their attributes using this method:
ConnectorSetIterator csi = myFamilyInstance.MEPModel.ConnectorManager.Connectors.ForwardIterator(); while (csi.MoveNext()) { Connector myConnector = csi.Current as Connector; }
I'd like to query the ConnectorElement.IsPrimary value from each connector. I can't seem to convert a Connector to a ConnectorElement to get the value.
Any help is appreciated! Thanks!
Dear ollikat, dear RickyBell,
I think comparing the locations will not function.
In the FamilyInstance, Connectors' locations may depend on parameter values.
Parameters may be named with any name, and their "default" locations cannot be evaluated:
In the Family, you cannot reconstruct which parameter(s) affects(s) a ConnectorElement.
Only those Connectors' default locations would match with ConnectorElements' locations.
So no chance this way.
Best regards,
Revitalizer
Can't find what you're looking for? Ask the community or share your knowledge.