- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I faced a situation where there is an electrical circuit, but the connectors do not see each other. Perhaps the matter is in the family, but then the question arises whether this is an isolated case or whether it is not entirely correct to determine the connection via connector.AllRefs. I used connector.AllRefs props and an error occurred to me in this case, when i to determine the connection through connector.AllRefs. It seems that in the electrical circuit of the basic equipment a connector is connected with DomainUndefined, which has a connector.AllRefs Other properties and methods for the connected and not connected connectors are the same.
Thanks a lot.
input -> collector.OfCategory(BuiltInCategory.OST_ElectricalCircuit).WhereElementIsNotElementType() for element in input: for connector in (element.BaseEquipment.MEPModel.ConnectorManager.Connectors):
reflist = [x for x in connector.AllRefs] if ("DomainElectrical" in str(connector.Domain)) and ("PowerCircuit" in str(connector.ElectricalSystemType)) and reflist:
Solved! Go to Solution.
Link copied