Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with connector for DomainElectrical

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
ilgnv88
619 Views, 5 Replies

Problem with connector for DomainElectrical

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:
Tags (1)
5 REPLIES 5
Message 2 of 6
jeremytammik
in reply to: ilgnv88

Does the connection work well manually in the user interface?

 



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

Message 3 of 6
ilgnv88
in reply to: jeremytammik

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%...

Message 4 of 6
ilgnv88
in reply to: jeremytammik

Path also editable and connection is correctpath edit.PNG

 

Message 5 of 6
ilgnv88
in reply to: jeremytammik

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

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

Message 6 of 6
ilgnv88
in reply to: ilgnv88

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report