Problem with connector for DomainElectrical

ilgnv88
Participant

Problem with connector for DomainElectrical

ilgnv88
Participant
Participant

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.

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:

connector.png

 

 

0 Likes
Reply
Accepted solutions (1)
484 Views
3 Replies
Replies (3)

jeremytammik
Autodesk
Autodesk

Do the connectors connect properly when driven manually through the end user interface?

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes

jeremytammik
Autodesk
Autodesk
Accepted solution

Aha, now I see that you asked the same question twice:

 

https://forums.autodesk.com/t5/revit-api-forum/problem-with-connector-for-domainelectrical/m-p/93869...

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes

ilgnv88
Participant
Participant

Yes, this question was in spam

0 Likes