Problem with connector for DomainElectrical

ilgnv88
Participant
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.
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:
0 Likes
Reply
Accepted solutions (1)
621 Views
5 Replies
Replies (5)

jeremytammik
Autodesk
Autodesk

Does the connection work well manually in the user interface?

 



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

0 Likes

ilgnv88
Participant
Participant

Hi, Jeremy. Thanks for your soon reply. This is a video demostrate our process

https://www.dropbox.com/s/b8cbqmsfxa68ydi/%D0%9D%D0%BE%D0%B2%D0%B8%D0%BA%D0%BE%D0%B2%20%D0%90%D0%BB%...

0 Likes

ilgnv88
Participant
Participant

Path also editable and connection is correctpath edit.PNG

 

0 Likes

ilgnv88
Participant
Participant

Simulated a situation in Revit2020. May be problem in the family..

https://www.dropbox.com/s/8z8zpl1h8kh459d/progect1.rvt?dl=0

0 Likes

ilgnv88
Participant
Participant
Accepted solution
0 Likes