[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Sinusoidal Curve
Tip# ALSPSOL0305 By Tony Hotchkiss On 01-Mar-2005
Rated By 1 users Downloaded : 4437
Categories : Curved Objects
Software type : AutoCAD
Rename File To : 0305alspsol-sinecurve.dcl, 0305alspsol-sinecurve.lsp
AutoLISP Soutions routine draws a sinusoidal curve as a spline or polyline.

This month's request came from Ralph Ragan of Atlanta, Georgia. Ralph wants to draw a sinusoidal curve as a spline or polyline. This type of curve occurs in many situations, including a two-dimensional helix and screw threads. Normally this is quite time-consuming because it requires tracing a curve through many points that must be calculated or constructed.

The AutoLISP Solution is SINECURVE.LSP, and the corresponding dialog box file SINECURVE.DCL. The routine allows the user to select the periodic time (equivalent to the pitch of a thread), the amplitude (half the height for a thread), the number of cycles to display and the resolution or display accuracy of the curve.

Get the Code
Download the SINECURVE.LSP and SINECURVE.DCL files from our Get the Code! area and save them in AutoCAD's Support directory. Use the Appload facility by selecting Tools / Load Application. Then select the SINECURVE.LSP program from where you stored the downloaded files.



Average Rating:

User comments
Comment by Kramer,Bill
Posted on 2008-10-30 07:25:18
Be sure to rename the files to SINECURVE.DCL and SINECURVE.LSP --- the file names in the download are not correct. Remove the 0305alspsol- at the front of the files.