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: 

Get length of Cable Tray Fitting with Bend Radius

7 REPLIES 7
Reply
Message 1 of 8
SONA-ARCHITECTURE
281 Views, 7 Replies

Get length of Cable Tray Fitting with Bend Radius

Hi,

My question is on the title : I'd like to sum the lenght of all Cable Tray and Cable Tray Fitting selected by User.

My problem is with Cable Tray Fitting curved with Blend Radius.

Does anyoen have aleready done this?

I tought to calcul the length of an arc by Center, Radius and two connectors points...

 

Pierre NAVARRA
SONA-Architecture.
http://www.sona-architecture.com
https://fr.linkedin.com/in/pierre-navarra-62032a107
7 REPLIES 7
Message 2 of 8

Tricky to solve precisely. Here are some suggestions for approximations:

  

  • Super simple: distance between connector A and connector B
  • Very slightly more complex: distance between connector A and fitting center point C + distance between fitting center point C and connector B
  • More complex: your suggestion, which depends on the fitting type and shape
  • An infinite number of possible improvements

  

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open
Message 3 of 8

Thx for Answering me @jeremy_tammik 

In the slightly more complex method, how to get the fitting center point C?

 

Pierre NAVARRA
SONA-Architecture.
http://www.sona-architecture.com
https://fr.linkedin.com/in/pierre-navarra-62032a107
Message 4 of 8

Hah. Good question. I'm afraid that again depends on the fitting family definition, type, and shape. In some fitting families, the family definition origin can be considered the centre point. In some, the intersection point of all the inverted connector fitting vectors defines a centre point. In some cases, it might be the centre of gravity. I cannot give a general answer to that.

  

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open
Message 5 of 8

Ok thx @jeremy_tammik 

I'm having a look on SDKSamples to find a solution for that.

Pierre NAVARRA
SONA-Architecture.
http://www.sona-architecture.com
https://fr.linkedin.com/in/pierre-navarra-62032a107
Message 6 of 8

If your cable tray has a regular cross section you can divide the solid volume of tray obtained using a medium detail level with the cross section area of the tray or fitting.

 

To highlight this I have the below extrusion in AutoCAD

The volume is 263740730.8574mm^3

The cross section is 100x300=30000mm^2

263740730.8574 / 30000 = 8791.357695mm

 

Original path for extrusion was 8791.3577mm in length so I think that is quite a good result. 

220907a.PNG

If tray has changes in section you could consider volumes of each fitting using average of each of the two end areas. The fittings I've seen have a slight straight for such transition either end of the radius so the length of that could also be considered i.e. the short volume of cuboid at each end of fitting.

 

It is all a bit subjective to a degree i.e. what is the length of the below, the centre of the tray the bottom of the tray?

 

220907b.PNG

 

 

 

Message 7 of 8
jeremy_tammik
in reply to: RPTHOMAS108

Wow, what a brilliant approach! A nice example where a result from the 3D solid is more useful and easier to obtain than a simple 2D curve-based calculation. Thank you!

   

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open
Message 8 of 8
RPTHOMAS108
in reply to: jeremy_tammik

Thanks Jeremy. We could also reduce the 2D areas of the bottom faces of the fittings to a length in a similar way by dividing such areas by tray width. This would then measure along the bottom of the tray, which may be preferable depending on how these things are quantified in the industry. However, I personally believe such differences would be averaged out.

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

Post to forums  

Autodesk Customer Advisory Groups


Rail Community