Get length of Cable Tray Fitting with Bend Radius

SONA-ARCHITECTURE
Advocate

Get length of Cable Tray Fitting with Bend Radius

SONA-ARCHITECTURE
Advocate
Advocate

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
0 Likes
Reply
393 Views
7 Replies
Replies (7)

jeremy_tammik
Autodesk
Autodesk

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
0 Likes

SONA-ARCHITECTURE
Advocate
Advocate

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
0 Likes

jeremy_tammik
Autodesk
Autodesk

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
0 Likes

SONA-ARCHITECTURE
Advocate
Advocate

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
0 Likes

RPTHOMAS108
Mentor
Mentor

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

 

 

 

jeremy_tammik
Autodesk
Autodesk

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
0 Likes

RPTHOMAS108
Mentor
Mentor

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.