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...
Tricky to solve precisely. Here are some suggestions for approximations:
Thx for Answering me @jeremy_tammik
In the slightly more complex method, how to get the fitting center point C?
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.
Ok thx @jeremy_tammik
I'm having a look on SDKSamples to find a solution for that.
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.
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?
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!
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.