[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.
Set Current Dimension Style
Tip# 3423 By Theodorus Winata On 15-May-2010
Rated By 1 users Downloaded : 2273
Categories : Styles
Software type : AutoCAD 2011
Rename File To : SM.LSP
Choose a dimension entity, and the style of that object will be set as the current style.

Theodorus, a design engineer, sent in a routine that allows you to set the current dimension style by selecting a dimension object. Because you are picking a dimension entity, you don't have to know the name of the style — as you would if you were using the pull-downs in the Annotate tab of the ribbon or the Dimensions toolbar. Load the LISP file, then start the command by entering SM at the Command line. Choose a dimension, and the style of that object will be set as the current style. If you look at the code, you can see that Theodorus is simply scripting the -Dimension command. This is a good example of automating built-in commands.


Average Rating:

User comments
Comment by cojoc,cad
Posted on 2016-09-20 02:24:58
very good, this is what i need :)