Author Topic: How to modify Dim variables ?  (Read 2449 times)

0 Members and 1 Guest are viewing this topic.

REGHUYES

  • Newt
  • Posts: 21
How to modify Dim variables ?
« on: May 02, 2012, 10:34:09 PM »
How to modify Dim variables ( not override ) thro Autolisp .pls a simple code

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: How to modify Dim variables ?
« Reply #1 on: May 03, 2012, 02:02:07 AM »
Easiest would be to use setvar to change the Dim* vars. Then use a command call to DimStyle with a Save option - to overwrite the current DimStyle with the new variables. That last step changes the overrides into the standard settings for the dimstyle.

More difficult method would be to entmod the dimstyle's object in the DimStyle table.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: How to modify Dim variables ?
« Reply #2 on: May 03, 2012, 06:22:06 AM »
Alternatively, you can modify the various Dimension System Variables, then use the CopyFrom method with the Source Object parameter as the Active Document Object to copy the current settings to a supplied DimStyle Object.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.


CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How to modify Dim variables ?
« Reply #5 on: May 03, 2012, 03:53:57 PM »
Thanks Ron I didn't have that one.
I tried the usual URL tags but the link failed when I did that.
« Last Edit: May 03, 2012, 07:27:09 PM by CAB »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.