[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.
Tip 2298: Make More of the Same
Tip# 2298 By Mosad Elewa On 01-Jun-2008
3.25
Rated By 4 users Downloaded : 1128
Categories : LISP Code Modules, Object Properties, Match Properties
Software type : AutoCAD
Rename File To : Tip 2298: SetAs.lsp
SETAS.LSP (Top Tip): This drafting tool allows you to select an object in a drawing and make more objects of the same type and properties.

Tip 2298: Make More of the Same
Mosad H. Elewa sent in this month's Top Tip, Make More of the Same. This really neat drafting tool allows you to select an object in a drawing and make more objects of the same type and properties. This tool saves you the time and effort of looking up the properties of an object, setting them as current, and then running the command. Load the LISP code, type Setas at the Command prompt, and select an existing object in the drawing. If you select a basic graphic object, the routine extracts layer, color, and linetype information and makes them current, then initiates the command to draw more of the same. When you select a text object, the routine sets the text style as current and starts the default text location just below the selected text. This very handy utility was originally written for AutoCAD Release 13 and still useful today. Good programming survives multiple release updates, and that makes this piece of programming our month's top tip!

 

 

Average Rating:
3.25


User comments
Comment by Jain,Preeti
Posted on 2008-07-14 15:07:52
This tip really deserved to be the month's top tip !
Comment by Kramer,Bill
Posted on 2008-07-16 07:20:13
This routine is like cloning an entity with all the data except the geometry.
Comment by Cooper,Kent
Posted on 2009-05-28 09:35:40
Having worked with SetAs and studied its code, I find some lesser and many truly significant problems [worst one, for example: if a Text entity is of a NON-fixed-height Style, it REDEFINES that Text Style and imposes the height of the selected Text entity on it as a FIXED height!]. See the attached file for a complete listing. But the concept is great! I am working on a new routine, which I hope to submit soon, that does the same thing, but overcomes the shortcomings of SetAs.
Comment by Cooper,Kent
Posted on 2009-05-28 09:38:45
Sorry, the file didn't attach -- trying again.
Comment by elewa,mosad
Posted on 2011-04-14 09:21:54
Cooper,Kent, did you revise the lisp routine yet?, i would to see the changes you made. Mosad Elewa