Author Topic: Saving a dimension style after setting dimscale  (Read 773 times)

0 Members and 1 Guest are viewing this topic.

jlogan02

  • Bull Frog
  • Posts: 327
Saving a dimension style after setting dimscale
« on: April 22, 2022, 12:19:10 PM »
Really bad cold today and can't see through the fog.

I'm inserting a blank drawing at startup that contains all of our DimStyles.

Then launching a routine to draw dimensions on one of the new DimStyles.
Am I misunderstanding "save" in this context? I'm getting an override of the DimStyle with the dimscale change as expected.  I thought the save would eliminate the override and apply it to the current DimStyle.

Code - Auto/Visual Lisp: [Select]
  1. (setq dim1 (getvar 'dimscale))
  2.  
  3.   (command "-dimstyle" "R" "DIMEN_001")
  4.         (command "dimscale" dim1)
  5.         (command "-layer" "s" "DIMEN_001" "")
  6.         (command "dimordinate")
J. Logan
ACAD 2018

I am one with the Force and the Force is with me.
AutoCAD Map 2018 Windows 10

jlogan02

  • Bull Frog
  • Posts: 327
Re: Saving a dimension style after setting dimscale
« Reply #1 on: April 22, 2022, 12:44:20 PM »
missing the "YES"

Code - Auto/Visual Lisp: [Select]
  1. (command "-dimstyle" "s" "DIMEN_001" "Y" "")
J. Logan
ACAD 2018

I am one with the Force and the Force is with me.
AutoCAD Map 2018 Windows 10