<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dimension macro with Scale in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10244215#M61452</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7630116"&gt;@AzzaRazzamataz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;... the DIMSCALE is always set back to the original dimstyle scale and not the &amp;lt;style overrides&amp;gt; scale currently set in the drawing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For me, it also does that.&amp;nbsp; But that's exactly what I would expect.&amp;nbsp; If, when you have any dimensioning variable overrides in effect, you set a different Style current from in the Dimension Style dialog box, you get this warning:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1618577684240.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/907660i8398428FC7A9DDF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1618577684240.png" alt="Kent1Cooper_0-1618577684240.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I don't see why it shouldn't do the same when you change the current Style in a DIMSTYLE command.&amp;nbsp; [This is from Acad2019.&amp;nbsp; Maybe that's changed in newer versions.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find that with a Dimension that has a scale override, changing its assigned Style in the Properties palette or with the VLA StyleName property also brings the scale associated with the new Style along with it, discarding that override.&amp;nbsp; But using the AutoLisp&amp;nbsp; &lt;FONT color="#000000"&gt;(entmod (subst ... ))&lt;/FONT&gt;&amp;nbsp; method, I &lt;EM&gt;can&lt;/EM&gt; change the Style &lt;EM&gt;without&lt;/EM&gt; discarding the scale override.&amp;nbsp; I don't know whether that can be done in a macro, because it would mean drawing the Dimension first under current settings, &lt;EM&gt;then&lt;/EM&gt; changing its Style.&amp;nbsp; That might be achievable &lt;STRONG&gt;&lt;EM&gt;if&lt;/EM&gt;&lt;/STRONG&gt; you can always draw the Dimension with the &lt;EM&gt;same number of inputs&lt;/EM&gt;.&amp;nbsp; Or you could have an AutoLisp command defined, and have the macro call that.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Apr 2021 13:11:04 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2021-04-16T13:11:04Z</dc:date>
    <item>
      <title>Dimension macro with Scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10243178#M61449</link>
      <description>&lt;P&gt;hey everyone&lt;/P&gt;&lt;P&gt;Just having trouble with a simple macro I can't get right.&lt;BR /&gt;I'm trying to set a dimension button to -&lt;BR /&gt;Change to layer &amp;gt; Change to dimension style &amp;gt; activate command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;^C^C-LA;S;LAYER;;-dimstyle;r;MY_DIMSTYLE;_dimlinear;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All good, works fine except the DIMSCALE is always set back to the original dimstyle scale and not the &amp;lt;style overrides&amp;gt; scale currently set in the drawing.&lt;BR /&gt;I think I'm missing a (getvar "dimscale") or something somewhere in the macro?&lt;/P&gt;&lt;P&gt;So basically I want to put a dimension down on a certain layer with the current scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 06:45:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10243178#M61449</guid>
      <dc:creator>AzzaRazzamataz</dc:creator>
      <dc:date>2021-04-16T06:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension macro with Scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10243217#M61450</link>
      <description>&lt;P&gt;It does not behave that way to me. It honers the dimscale as expected.&lt;/P&gt;
&lt;P&gt;Which acad version you have? Why you don't use 'dimlayer?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post a test drawing with the styles.&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: 44px; top: 35.267px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Apr 2021 07:02:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10243217#M61450</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-04-16T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension macro with Scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10244160#M61451</link>
      <description>also... do you need to get into using Annotative dimstyles and rely less on DIMSCALE as a setting?</description>
      <pubDate>Fri, 16 Apr 2021 12:50:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10244160#M61451</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2021-04-16T12:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension macro with Scale</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10244215#M61452</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7630116"&gt;@AzzaRazzamataz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;... the DIMSCALE is always set back to the original dimstyle scale and not the &amp;lt;style overrides&amp;gt; scale currently set in the drawing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For me, it also does that.&amp;nbsp; But that's exactly what I would expect.&amp;nbsp; If, when you have any dimensioning variable overrides in effect, you set a different Style current from in the Dimension Style dialog box, you get this warning:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1618577684240.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/907660i8398428FC7A9DDF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1618577684240.png" alt="Kent1Cooper_0-1618577684240.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I don't see why it shouldn't do the same when you change the current Style in a DIMSTYLE command.&amp;nbsp; [This is from Acad2019.&amp;nbsp; Maybe that's changed in newer versions.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find that with a Dimension that has a scale override, changing its assigned Style in the Properties palette or with the VLA StyleName property also brings the scale associated with the new Style along with it, discarding that override.&amp;nbsp; But using the AutoLisp&amp;nbsp; &lt;FONT color="#000000"&gt;(entmod (subst ... ))&lt;/FONT&gt;&amp;nbsp; method, I &lt;EM&gt;can&lt;/EM&gt; change the Style &lt;EM&gt;without&lt;/EM&gt; discarding the scale override.&amp;nbsp; I don't know whether that can be done in a macro, because it would mean drawing the Dimension first under current settings, &lt;EM&gt;then&lt;/EM&gt; changing its Style.&amp;nbsp; That might be achievable &lt;STRONG&gt;&lt;EM&gt;if&lt;/EM&gt;&lt;/STRONG&gt; you can always draw the Dimension with the &lt;EM&gt;same number of inputs&lt;/EM&gt;.&amp;nbsp; Or you could have an AutoLisp command defined, and have the macro call that.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 13:11:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/dimension-macro-with-scale/m-p/10244215#M61452</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-04-16T13:11:04Z</dc:date>
    </item>
  </channel>
</rss>

