Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good Moring everyone.
I've got a bit of a loopy issue that's frustrating me a little bit. I've got an MEP Model, in this case, a mechanical object. When I do the following..
Element e = myMechObject; if (e is FamilyInstance) { FamilyInstance fi = e as FamilyInstance; if (fi.MEPModel != null) { ConnectorSetIterator csi = fi.MEPModel.ConnectorManager.Connectors.ForwardIterator(); //Do stuff with csi. } }
I get a 'null' value for my ConnectorSetIterator. Here's the thing, the object HAS connectors and the object is being loaded as far as I can see. I've put a watch on fi.Name.Symbol and it shows as the mech object that I'm working with, however; I've also confirmed that the fi.MEPModel.ConnectorManager does return null on it's own. It shouldn't though.
Anyone have any idea what might be causing the ConnectorManager to be getting a null value? I've attached a sample mech object that replicates this issue.
Solved! Go to Solution.