[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.
Draw Stars with Any Number of Points
Tip# 3709 By Kent Cooper On 16-Aug-2011
0
Rated By 0 users Downloaded : 257
Categories : Linear Objects, 2D Operations
Software type : AutoCAD 2012
Rename File To : star.lsp
Create a variety of star shapes in two ways.

Editor's Note: This tip was most recently updated on October 5, 2011.

Frequent contributor Kent Cooper has expanded on Cadalyst CAD Tips No. 986 and No. 1654, both of which construct star shapes in AutoCAD, and created a routine that does even more. This routine can draw a star with any number of points, either in "chain" mode or with the outer and inner point radii specified, or with the inner point diameter defined as a percentage of the outer point diameter.


Start by loading the LISP file, then type in the command Star. Pick the center location, the number of points, and the outside point radius. Answer the prompts for defining the inside point radius (by distance, by percentage of outside radius, or in chain fashion — and if chaining, by what increment).



The end result of this routine is a single closed polyline created on the current layer. The LISP code contains plenty of comments and even more detail about other ways to use this routine. Thanks, Kent.

 

Average Rating:
0


User comments


Log In