# TL Catenary 3D

## 說明

From Wikipedia:

In physics and geometry, a catenary is a curve that an idealized hanging chain or cable assumes under its own weight when supported only at its ends. The catenary curve has a U-like shape, superficially similar in appearance to a parabolic arch, but it is not a parabola. Mathematically, the catenary curve is the graph of the hyperbolic cosine function. Catenaries and related curves are used in architecture and engineering, in the design of bridges and arches, so that forces do not result in bending moments.

In the Catenary equation, the parameter a represents the length of a chain whose weight on Earth is equal in magnitude to the tension/compression at the Sag/Crest point.

Please visit https://en.wikipedia.org/wiki/Catenary for more information

This app will compute and draw the catenary curve as a polyline in Autodesk® AutoCAD® by numerically solving the transcendental equation using a variation of the dampened Newton-Raphson root-finding algorithm. The app supports both "hanging" (positive parameter along the direction of the gravity vector) and "standing" (negative parameter along the direction of the gravity vector) curves.

All 2D Catenary commands assume a positive direction of gravity along the vector (0,-1) of the current/active UCS and operate within the current UCS XY plane

All 3D Catenary commands assume a positive direction of gravity along the vector (0,0,-1) of the current/active UCS and operate within the current UCS 3D space

The following different modes of defining the catenary are supported:

- One point and parameter a
- Two points and curve length
- Two points and a slope of the curve tangent at a specified location
- Two points and curve sag
- Two points and curve bulge
- Two points and curve vertical bulge
- Two points and curve area
- Three points
- Best Fit

Please refer to the Catenary diagram for definitions of all parameters

Each method is implemented as a separate command. All modes/commands are fully interactive, and the user is able to dynamically preview the result on screen. Upon completion of the command a technical report is generated with all input parameters used as well as the final mathematical equation of the computed catenary curve and the computed values of all catenary elements. Note that values of the computed elements such as length, area, bulge etc may differ slightly from the linework generated in AutoCAD due to the numerical approximation of the final polyline geometry. In those cases the computed values should be considered more accurate. Increasing the number of vertices of the catenary polyline should also help minimize these deviations. The number of vertices of the generated polyline is adjustable within a 5-1000 points range. All numerical data is reported using the current AutoCAD setting for the linear precision as specified in the "units" dialog box.

Features:

- Scriptable command line interface
- Interactive commands with a dynamic on-screen preview of the result
- All commands operate in the current/active AutoCAD UCS
- Full support for both "hanging" and "standing" catenary curves
- Multiple CPUs/Multi-core CPU support
- Adjustable number of points for the final AutoCAD polyline
- Technical report for each successfully computed catenary curve
- Rigorous least-squares data-fitting analysis for an unlimited number of catenary data points
- Old values of the various input parameters are retained and can be reused by accepting the defaults at the command prompt

This year the company I work for purchased a laser scanner for scanning power line wires. I was trying to find practical ways to reconstruct power lines wires in Civil3D from a point cloud. Each segment of wire typically has anywhere from 2000-5000 points per wire. I was pleased to determine this add-on successfully best fits 3d catenary curves of extremely large datasets almost instantaneously with no issues. This add-on was exactly what I was looking for.

Also, the developer is very open to feedback. I asked him a question about the options and within a couple of days he made an update to the tool based on my question. It’s a small price to pay for such a powerful tool!!