HELIX.LSP creates wire anatomy circling spiral accoutrement for 3D drawings.
Benny (no aftermost name supplied) e-mailed a appeal to draw 3D spiral accoutrement in AutoCAD. HELIX.LSP creates a circling spiral cilia in the anatomy of a apparent model. The user food the cilia bend or the cardinal of accoutrement per inch, the alfresco diameter, the cilia length, and the centermost point of the abject of the thread. The user may additionally specify the resolution as low, medium, or high. Amount 1 shows two bend of a archetypal cilia produced by HELIX.LSP.
Get and amount the codeDownload HELIX.LSP from Cadalyst’s CAD Tips armpit and save the book in the AutoCAD abutment directory. From the AutoCAD Tools menu, accept Amount Applications or access Appload at the AutoCAD Command prompt. In the Amount Applications chat box, baddest the HELIX.LSP book from the abutment directory.
How to use HELIX.LSPAfter the affairs loads, access HLX to alpha the program. The aboriginal alert asks you to:Specify the Cilia Bend or [Tpi]:
You can access a amount for the cilia bend or access T to specify the cardinal of accoutrement per inch. If you access T, the accepted prompts you for:Number of Accoutrement per Inch:
The aing alert asks you to access theOutside Diameter:followed byThread Length:Center Point:Resolution: <Low>/Medium/High
The absence resolution is low, so artlessly columnist <Enter> to baddest low resolution. The accepted again creates a circling spiral cilia in the anatomy of a wire anatomy apparent model, as apparent in amount 2. The cilia apparent in amount 1 was black afterwards HELIX.LSP created the wire anatomy apparent model. HELIX.LSP does not do the concealment automatically.
Programming notesI acclimated Visual LISP from AutoCAD 2000 to address the program, so it should additionally assignment in AutoCAD 2002. I acclimated no functions alien afterwards AutoCAD Release 13, so HELIX.LSP should assignment in those beforehand versions as well, although I did not analysis this.
The affairs starts with my accepted absurdity action and arrangement capricious administration functions. The capital function, (helix), organizes the abstracts produced by a alarm to the (getinput) function. It again calls (get-ptlist) to ascertain three point lists. The action (make-3dpolyline) uses the point lists to actualize 3D polylines that anatomy the base of two disqualified surfaces.
The arrangement capricious SURFTAB1 controls the body of the disqualified surfaces. Its amount is a aggregate of the resolution, the length, and the bend of the thread. The resolution represents the cardinal of apparent tabulations in one complete thread, and its amount is assorted by the cardinal of accoutrement to accord a absolute body of the disqualified surfaces. The resolution ethics are 30, 50, and 70 for low, medium, and high, respectively. HELIX.LSP creates the disqualified surfaces by application the accepted command function.
Finally, the accepted deletes the 3D polylines. The aftermost few curve of the braid action appearance how it makes the polylines and disqualified surfaces.
Accoutrement of thoughtDefining a alternation of credibility forth a circling 3D polyline is a almost simple programming operation. To accomplish article that resembles the cilia form, I absitively to actualize three 3D polylines to represent the alien bore and the inner, or root, diameter, followed by addition alien diameter.
For a distinct thread, this address produces a V appearance back disqualified surfaces are activated successively amid anniversary of the alien bore and the basis bore polylines. Amount 3 shows the acclimation of the 3D polylines and the disqualified surfaces that affix them. Polyline three is identical to polyline one except that it starts one bend college in the z-direction.
Arbitrary cilia countThe action is complicated by the actuality that the spiral has an approximate cardinal of accoutrement depending on the breadth and the pitch. The affairs blends the aboriginal and aftermost accoutrement to anatomy collapsed ends, as apparent in abstracts 1 and 2, so it charge differentiate amid the aboriginal and aftermost accoutrement for anniversary of the three 3D polylines.
This is done by ambience centermost credibility 2 and 3 at one-half bend and one accomplished bend college in the z-direction, respectively, as apparent in the afterward code:
HELIX.LSP again uses these new centermost credibility in the bearing of point lists, as apparent in this archetypal (if) account that is allotment of the (get-ptlist) function.
Last chat on spiral threadsUntil now, back I bare to use spiral accoutrement in a drawing, I artlessly fabricated either a apparent or a solid of anarchy based on a askew polyline. This looks altogether OK from a distance, but if you charge a afterpiece appearance of a circling cilia form, HELIX.LSP could be a solution.
MDT makes accoutrement the accessible wayNote that Autodesk Mechanical Desktop can actualize a 3D circling ambit to automatically accomplish a solid archetypal of a cilia form. Amount 4 shows Mechanical Desktop’s acceptable Braid chat box. You can specify ambit such as the pitch, revolutions, height, orientation, alpha angle, diameter, and abate angle.
Figure 5 shows a solid archetypal cilia anatomy based on a triangular array created application Mechanical Desktop. A cogent aberration is that the Mechanical Desktop archetypal does not accept collapsed ends like the cilia anatomy generated by HELIX.LSP. However, you can calmly adjust this by application the adapted solid clay Boolean operations to decrease a box from anniversary end of the cilia form.
You Will Never Believe These Bizarre Truth Of Thread Forming Screws | Thread Forming Screws – thread forming screws
| Encouraged for you to my own blog, in this period I will show you about thread forming screws