How do I create conduit between 2 connectors?

How do I create conduit between 2 connectors?

fnakayama-D34
Explorer Explorer
3,215 Views
8 Replies
Message 1 of 9

How do I create conduit between 2 connectors?

fnakayama-D34
Explorer
Explorer

I have conduit connectors on junction boxes families and I'd like to connect two boxes using a conduit.

I couldn't find any method to achieve this. 

 

0 Likes
Accepted solutions (1)
3,216 Views
8 Replies
Replies (8)
Message 2 of 9

jeremytammik
Autodesk
Autodesk

Dear Fnakayama,

 

Thank you for your query.

 

In general, Revit will automatically and happily connect everything that can be connected.

 

Of course, in order to achieve this, I assume that the boxes need to be equipped with connector elements.

 

Are they?

 

Furthermore, have you tested and verified that the connection you wish to achieve works as expected when you drive it manually through the user interface?

 

In general, if a feature is not available in the Revit product manually through the user interface, then the Revit API will not provide it either.

 

You should therefore research the optimal workflow and best practices to address your task at hand manually through the user interface first.

 

To do so, please discuss and analyse it with an application engineer, product usage expert, or product support.

 

Once you have got that part sorted out, it is time to step into the programming environment.

 

I hope this clarifies.

 

Best regards,

 

Jeremy



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

0 Likes
Message 3 of 9

Dale.Bartlett
Collaborator
Collaborator

Assuming you have (or get) the connector points, substitute the XYZ below:

 Autodesk.Revit.DB.Electrical.Conduit.Create(pDoc, type.Id, new XYZ(0, 0, 0), new XYZ(10, 0, 0), level.Id);



______________
Yes, I'm Satoshi.
Message 4 of 9

fnakayama-D34
Explorer
Explorer

Jeremy

Thank you for your answer.

Yes. I have created a conduit connector in the box. I can manually connect 2 boxes with conduit.

I tried conduit.create and this method only requests coordinates as parameter. I succesfully created a conduit between two boxes but they are not connected.

 

 

0 Likes
Message 5 of 9

fnakayama-D34
Explorer
Explorer

Dale

Thank you for your answer.

 

As I replied to Jeremy, I used this method but the conduit didn't connect to the boxes.

 

 

0 Likes
Message 6 of 9

jeremytammik
Autodesk
Autodesk
Accepted solution

What happens if you ask the connector on one of the boxes to connect to the connector on the other box?

 

Does it automatically create a conduit between them?

 

Please study this series of research articles on rolling offset creation:

 

http://thebuildingcoder.typepad.com/blog/2014/01/final-rolling-offset-using-pipecreate.html



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

Message 7 of 9

fnakayama-D34
Explorer
Explorer

Jeremy Thank you very much and sorry because I took long time to reply. Yes, it worked. Thank you again.

0 Likes
Message 8 of 9

jeremytammik
Autodesk
Autodesk

Dear Fnakayama,

 

Thank you for your update and confirmation.

 

What was the problem? How exactly did you solve it?

 

Can you provide a sample code snippet demonstrating the crucial point?

 

Thank you!

 

Best regards,

 

Jeremy



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

0 Likes
Message 9 of 9

jeremytammik
Autodesk
Autodesk

 

Added a note of this to The Building Coder as well:

 

http://thebuildingcoder.typepad.com/blog/2018/03/connector-neighbour-conduit-transition.html#4 

 

Cheers,

 

Jeremy



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

0 Likes