<?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 Placement in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12756614#M866</link>
    <description>&lt;P&gt;Thanks, but that's not the distance I mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is DIMGAP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kyudos_1-1715035113868.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1358960i545978BE16305185/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kyudos_1-1715035113868.png" alt="Kyudos_1-1715035113868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm after this distance...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kyudos_0-1715035085913.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1358959iEBA713EBB4618B3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kyudos_0-1715035085913.png" alt="Kyudos_0-1715035085913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As above, I've determined it experimentally with some "magic numbers" which is good enough for now, but ultimately is not totally satisfactory.&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2024 22:40:14 GMT</pubDate>
    <dc:creator>Kyudos</dc:creator>
    <dc:date>2024-05-06T22:40:14Z</dc:date>
    <item>
      <title>Dimension Placement</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12723987#M862</link>
      <description>&lt;P&gt;It's a long shot but....does anyone know the formula AutoCAD uses to position the text for an&amp;nbsp;&lt;STRONG&gt;AcDbAlignedDimension&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has the following characteristics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;It is positioned halfway along the line it is dimensioning, with a perpendicular offset.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;From 0° to 180° it is to the left of the line (start -&amp;gt; end)&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;From 0° to -180° it is to the right of the line (start -&amp;gt; end)&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;The offset is visually constant, independent of the current zoom state.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I can see how to calculate the position (1, 2 and 3) using a perpendicular vector that can be negated based on the angle - but how is the offset done? I assumed it would be related to DIMSCALE - but maybe has some relation to the viewport size too, in order to stay visually the same size?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 02:25:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12723987#M862</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-04-22T02:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Placement</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12724109#M863</link>
      <description>&lt;P&gt;(I'm messing with jigs again, BTW!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So some trial-and-error shows that the offset I want appears to be 50% of the &lt;STRONG&gt;dimscale&lt;/STRONG&gt; value at a given zoom state.&lt;/P&gt;&lt;P&gt;I'm setting this when creating my dimension as it is passed to&amp;nbsp;&lt;STRONG&gt;AcEdJig::dimData.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my dimension replicates the default as long as I don't zoom in or out while my dimension is active. So what value should I be getting in my "dimension value update" function to keep this 'current'? It's not the DIMSCALE system variable.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 04:41:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12724109#M863</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-04-22T04:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Placement</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12726200#M864</link>
      <description>&lt;P&gt;Further empirical evidence:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dimscale value passed to&amp;nbsp;&lt;STRONG&gt;AcEdJig::dimData&amp;nbsp;&lt;/STRONG&gt;is a constant 5.2011% of the active viewport width (and/or 14.5158% or the active viewport height).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not so keen on "magic numbers" - can anyone see the real relationship being used here? I can use this empirically determined value to do what I want, but I rather have some understanding as to where this number comes from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 22:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12726200#M864</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-04-22T22:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Placement</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12755844#M865</link>
      <description>&lt;P&gt;I am not 100% sure, but i think you mean dimGap. That is the distance between dimensionline und the text.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 15:55:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12755844#M865</guid>
      <dc:creator>ynapeu</dc:creator>
      <dc:date>2024-05-06T15:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Placement</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12756614#M866</link>
      <description>&lt;P&gt;Thanks, but that's not the distance I mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is DIMGAP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kyudos_1-1715035113868.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1358960i545978BE16305185/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kyudos_1-1715035113868.png" alt="Kyudos_1-1715035113868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm after this distance...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kyudos_0-1715035085913.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1358959iEBA713EBB4618B3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kyudos_0-1715035085913.png" alt="Kyudos_0-1715035085913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As above, I've determined it experimentally with some "magic numbers" which is good enough for now, but ultimately is not totally satisfactory.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 22:40:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12756614#M866</guid>
      <dc:creator>Kyudos</dc:creator>
      <dc:date>2024-05-06T22:40:14Z</dc:date>
    </item>
    <item>
      <title>Betreff: Dimension Placement</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12757858#M867</link>
      <description>&lt;P&gt;ok. Maybe you test with&lt;/P&gt;&lt;P&gt;distance = viewportheigth*(25.4)*2/3000&lt;/P&gt;&lt;P&gt;if you are in the metric world.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/dimension-placement/m-p/12757858#M867</guid>
      <dc:creator>ynapeu</dc:creator>
      <dc:date>2024-05-07T13:01:34Z</dc:date>
    </item>
  </channel>
</rss>

