[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.
Generate a Series of Decimal Numbers.
Tip# ALSPSOL1105 By Tony Hotchkiss On 01-Nov-2005
3
Rated By 1 users Downloaded : 364
Categories : Notes/Text
Software type : AutoCAD
Rename File To : decimal-inc.DCL, decimal-inc.LSP
Automatically Generate a Series of Decimal Numbers.

This month's request came from Mr. Sven de Troch of Antwerp, Belgium. Sven asked for an automatic numbering routine with decimals to help with numbering brick positions in walls.

The AutoLISP Solution is DECIMAL-INC.LSP and DECIMAL-INC.DCL, which allows the user to enter a start number, an increment value, the precision (number of decimal places) and the text height from a dialog box. A series of numbers is then placed in the user-selected positions. The numbers may vary incrementally from zero to six decimal places. The default is two decimal places with an increment of 0.25 and a text height of 0.2 units

Get the Code
Download the DECIMAL-INC.LSP and DECIMAL-INC.DCL files from our Get the Code http://new.cadalyst.com/code/ area and save them in AutoCAD's Support directory. Use the Appload facility by selecting Tools / Load Application, then select the DECIMAL-INC.LSP program from where you stored it.





 

 

Average Rating:
3


User comments


Log In