Jump to content

Set default dim style by lisp command


VietDang

Recommended Posts

Hello,

When we start AutoCAD, Dimension Style of it is always ISO-25. Is there any way when starting the Cad, Dimension Style is always Annotative?

Thank you very much.

Link to comment
Share on other sites

4 hours ago, dlanorh said:

(command "-dimstyle" "_R" "YOUR ANNOTATIVE DIMSTYLE NAME")

 

Thank you very much. If I want when opening the AutoCAD then Dimension Styles ISO-25 will be deleted, how do I do?

Link to comment
Share on other sites

(command "-purge" "_Dimstyles" "ISO-25" "_N")

This should be run after you have changed your dimstyle to the annotative style you require.

Edited by dlanorh
  • Thanks 1
Link to comment
Share on other sites

10 hours ago, dlanorh said:

(command "-dimstyle" "_R" "YOUR ANNOTATIVE DIMSTYLE NAME")

 

Hi,

If I want Annotative style in Text Style is always default styles, how to do it?

Thanks!

Untitled.png

Link to comment
Share on other sites

The best way to achieve all of these is to alter your drawing template. This will be called acad.dwt for imperial and acadiso.dwt for metric.

 

The default path to these templates can be found by typing  _options on the command line then selecting the files tab in the dialog. Scroll down to find Template Settings and press the + to expand the option.

 

"Drawing Template File Location" will tell you where it is stored

"Default Template File Name for QNEW" will give you the file.

 

Load the dwt template file, make the changes you require the saveas "AutoCAD Drawing Template (*dwt)" with the same file name to overwite the existing or save the file to your Documents Folder with the same name and then point the "Drawing Template File Location" to your amended template file.

 

Once this is done, every time you start a new drawing your new drawing will reflect the changes made. The code below will work for textstyles. The equivalent dimstyle system variable cannot be altered like this as it is Read Only (RO).

 

(setvar 'textstyle "Annotative")

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...