<?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 centering, Arrows Inside, Skip small dimension in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842921#M56528</link>
    <description>&lt;P&gt;It's strange, but on my computer it doesn't work.&lt;/P&gt;&lt;P&gt;I put screens before and after running macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Tue, 03 Nov 2020 15:33:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-03T15:33:55Z</dc:date>
    <item>
      <title>Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842479#M56524</link>
      <description>&lt;P&gt;When I use the Center Dimension Text API Sample (from Inventor help), all linear dimensions are centered.&lt;/P&gt;&lt;P&gt;I would like to skip all dimensions that are too small and have their arrowheads outside.&lt;/P&gt;&lt;P&gt;Unfortunately - although I can see the arrowheads outside in my drawing, the DrawingDimension.&lt;STRONG&gt;ArrowheadsInside&lt;/STRONG&gt; property is true - so I cannot distinguish between dimensions using this property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other method that I tried is to check the minimal dimension value that makes the arrowheads inside. It's 6mm (don't ake me why) but only for scale 1:1 and will change according to scale of a view.&lt;/P&gt;&lt;P&gt;Unfortunately - I can get the value of dimension and I can get the scale of a view, but I don't see how to connect them. It seems that both dimensions and views are parts of sheet, but I cannot see how to check, on which view is specific dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing dimension style in not an option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe You have an another solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 12:30:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842479#M56524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T12:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842637#M56525</link>
      <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you measure the dimensionline it'll always be in cm units on the drawing sheet. So the scale doesn't matter in that case.&lt;/P&gt;
&lt;P&gt;Try this and see if it works for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Public Sub CenterAllDimensions()
    ' Set a reference to the active drawing document
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument

    ' Set a reference to the active sheet
    Dim oSheet As Sheet
    Set oSheet = oDoc.ActiveSheet

    Dim oDrawingDim As DrawingDimension

    ' Iterate over all dimensions in the drawing and
    ' center them if they are linear or angular.

    For Each oDrawingDim In oSheet.DrawingDimensions
        If TypeOf oDrawingDim Is LinearGeneralDimension Or _
           TypeOf oDrawingDim Is AngularGeneralDimension Then
           
           Dim oLength As Double
            Call oDrawingDim.DimensionLine.Evaluator.GetLengthAtParam(0, 1, oLength)
            If oLength &amp;gt; 0.6 Then Call oDrawingDim.CenterText
           
        End If
    Next
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Nov 2020 13:52:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842637#M56525</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-03T13:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842685#M56526</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="005.png" style="width: 280px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/839868i4085018D2E093BF4/image-dimensions/280x163?v=v2" width="280" height="163" role="button" title="005.png" alt="005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As You can see scale of a view matters.&lt;/P&gt;&lt;P&gt;Your solution would work only if multiplied by scale of a view&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 14:11:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842685#M56526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842722#M56527</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5729586" target="_blank"&gt;@tomasz.dabrowskiUGC2B&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The dimensionline is not part of the drawing view so it's not affected by the drawing view scale. Its dimension is the length of it on the drawing sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 92.1875%;"&gt;&lt;IFRAME width="640" height="590" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/7100e33a-e0ce-4101-b9d2-9afca8f9e518" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="615cc502-ed6a-42b9-81e3-f7d7d24351dc" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/615cc502-ed6a-42b9-81e3-f7d7d24351dc"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="00c8db1e-7bdf-405e-b24f-b5be5d4c1852" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/00c8db1e-7bdf-405e-b24f-b5be5d4c1852"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="b73ec756-e590-4b53-b136-74986cab4bdf" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/b73ec756-e590-4b53-b136-74986cab4bdf"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="d5878df2-4317-404f-a8e9-218e4e0baac8" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/d5878df2-4317-404f-a8e9-218e4e0baac8"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="aed7437b-cb92-49ef-9dbb-9b2c45389316" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/aed7437b-cb92-49ef-9dbb-9b2c45389316"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="ebf47c71-404c-4350-845a-640c4a0e7484" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/ebf47c71-404c-4350-845a-640c4a0e7484"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1b9a114e-d5e6-4bb2-a340-772b4f1eeeee" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/1b9a114e-d5e6-4bb2-a340-772b4f1eeeee"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="ebefc64e-9243-4d20-9ba0-94d08e3aec04" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/ebefc64e-9243-4d20-9ba0-94d08e3aec04"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="e3e51d2a-fdab-42a4-9a5b-12d371d64e60" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/e3e51d2a-fdab-42a4-9a5b-12d371d64e60"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="1168a742-a54a-47e4-8e5c-c8fdde6e56de" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/1168a742-a54a-47e4-8e5c-c8fdde6e56de"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="63932171-3b59-4079-a504-bea3be54e549" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="680" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/63932171-3b59-4079-a504-bea3be54e549"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="85b3b9d4-b3c3-451f-bdef-15d437388dc2" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/85b3b9d4-b3c3-451f-bdef-15d437388dc2"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="08325df6-be52-4d4c-8378-f91f70d18459" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/08325df6-be52-4d4c-8378-f91f70d18459"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="0f11fb60-7d73-4b7d-9fb2-7fc3f9464d79" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/0f11fb60-7d73-4b7d-9fb2-7fc3f9464d79"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="699b7d53-4392-4a66-a7ea-64f2bba771c9" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/699b7d53-4392-4a66-a7ea-64f2bba771c9"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="27267123-5435-4abc-9826-37debb103ac1" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/27267123-5435-4abc-9826-37debb103ac1"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="281bed07-1468-4ec1-875c-a4669be8cdd4" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/281bed07-1468-4ec1-875c-a4669be8cdd4"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="5f902d27-94e1-4964-8d9f-c316b59bd0ac" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/5f902d27-94e1-4964-8d9f-c316b59bd0ac"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="4fb7ce56-87d5-46c8-af62-a7e46f739e14" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/4fb7ce56-87d5-46c8-af62-a7e46f739e14"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="11907bac-4f19-4912-b02e-5d8c0f5b8e3f" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/11907bac-4f19-4912-b02e-5d8c0f5b8e3f"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="8227e8e8-2fce-42df-8294-feb011d9ab6b" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/8227e8e8-2fce-42df-8294-feb011d9ab6b"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="9af033da-61df-49d2-a601-021c93ce87b5" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/9af033da-61df-49d2-a601-021c93ce87b5"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="22f8c13a-0b3d-4e17-8ded-93ee8bb7fee0" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/22f8c13a-0b3d-4e17-8ded-93ee8bb7fee0"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;DIV id="dcd5500e-62bc-4b32-8355-54e1975d9048" class="myscreencast-iframe iframe-container" style="display: none;"&gt;&lt;IFRAME width="640" height="650" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-src="https://screencast.autodesk.com/Embed/Timeline/dcd5500e-62bc-4b32-8355-54e1975d9048"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Nov 2020 14:25:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842722#M56527</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-03T14:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842921#M56528</link>
      <description>&lt;P&gt;It's strange, but on my computer it doesn't work.&lt;/P&gt;&lt;P&gt;I put screens before and after running macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Nov 2020 15:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842921#M56528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T15:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842956#M56529</link>
      <description>&lt;P&gt;Surprisingly, for me, this rule works both as a macro and as an iLogic. And works great. Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 15:42:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842956#M56529</guid>
      <dc:creator>robertast</dc:creator>
      <dc:date>2020-11-03T15:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842972#M56530</link>
      <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Here's a video of how it works for me&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 15:50:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9842972#M56530</guid>
      <dc:creator>robertast</dc:creator>
      <dc:date>2020-11-03T15:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844560#M56531</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's very strange... See if it works better to get the paramextents first and not just use 0 &amp;amp; 1. I doubt it'll make a difference but still.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Public Sub CenterAllDimensions()
    ' Set a reference to the active drawing document
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument

    ' Set a reference to the active sheet
    Dim oSheet As Sheet
    Set oSheet = oDoc.ActiveSheet

    Dim oDrawingDim As DrawingDimension

    ' Iterate over all dimensions in the drawing and
    ' center them if they are linear or angular.

    For Each oDrawingDim In oSheet.DrawingDimensions
        If TypeOf oDrawingDim Is LinearGeneralDimension Or _
           TypeOf oDrawingDim Is AngularGeneralDimension Then
           Dim minParam As Double
           Dim maxParam As Double
           Dim oLength As Double
           Call oDrawingDim.DimensionLine.Evaluator.GetParamExtents(minParam, maxParam)
            Call oDrawingDim.DimensionLine.Evaluator.GetLengthAtParam(minParam, maxParam, oLength)
            If oLength &amp;gt; 0.6 Then
            Call oDrawingDim.CenterText
            End If
        End If
    Next
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Also, try running this iLogic rule and pick the dimension that shouldn't be updated to see what length value it will return:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDim&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;LinearGeneralDimension&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kDrawingDimensionFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Pick the dimension"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oLength&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Double&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;minParam&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;maxParam&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Double&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oDim&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DimensionLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Evaluator&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetParamExtents&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;minParam&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;maxParam&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oDim&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DimensionLine&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Evaluator&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetLengthAtParam&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;minParam&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;maxParam&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oLength&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oLength&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Nov 2020 07:23:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844560#M56531</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-04T07:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844578#M56532</link>
      <description>&lt;P&gt;I'll try Your advices later, but for now I added one line of code, which will show length of every dimension line.&lt;/P&gt;&lt;P&gt;I put it right before cenetring command:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;MsgBox ("Dimension " &amp;amp; oDrawingDim.Text.Text &amp;amp; " has Dimension Line " &amp;amp; oLength)&lt;/LI-CODE&gt;&lt;P&gt;Result is in the attachment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see that with different scales, length of dimension line is the same&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 07:41:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844578#M56532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-04T07:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844614#M56533</link>
      <description>&lt;P&gt;This is really interesting... Could you attach the ipt and dwg so I can investigate? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 08:05:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844614#M56533</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-04T08:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844646#M56534</link>
      <description>&lt;P&gt;Geting the paramextents didn't help - the same resut.&lt;/P&gt;&lt;P&gt;Picking method doesn't work on my computer - rule works, but I'am unable to click on dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can get the dimesionline length manualy.&lt;/P&gt;&lt;P&gt;On my drawing now I have only 2 dimensions - both show 3(mm) but are on different scales.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="008.png" style="width: 251px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/840207iFC9B240EA71F6E8D/image-dimensions/251x194?v=v2" width="251" height="194" role="button" title="008.png" alt="008.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is what I see in locals window:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="009.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/840209i97A1B6B3DC5E2BC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="009.png" alt="009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I can calculate the difference between X, Y and Z for MinPoint and MaxPoint.&lt;/P&gt;&lt;P&gt;For X is 0, for Z is almost 0 (should be 0 but doesn't matter) and for Y in both cases is 0,3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach both ipt and dwg files as requested&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 08:33:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844646#M56534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-04T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844709#M56535</link>
      <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;You have something wrong with the details.&lt;/SPAN&gt; &lt;SPAN&gt;I refined your details in the drawing, added new ones and added dimensions.&lt;/SPAN&gt; &lt;SPAN&gt;Everything seems to work ...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Only with me version 2021&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 09:08:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844709#M56535</guid>
      <dc:creator>robertast</dc:creator>
      <dc:date>2020-11-04T09:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844730#M56536</link>
      <description>&lt;P&gt;Hi @Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see what it is now... You have set your general dimension type of the drawing views to true. This means the dimension is actually based on the 3D-model geometry and not the lines on the drawing. So the dimensionline is not a LineSegment2d but a LineSegment (3d) and it comes from the model itself...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This setting is for isometric views so you can set a dimension that represents the actual length in the model rather lengths based on the drawing curves... When placing a non-isometric view this setting should be false per default. Have you overridden it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;1. Delete the dimensions&lt;/P&gt;
&lt;P&gt;2. Right click the view &amp;gt; General Dimension Type &amp;gt; &lt;STRONG&gt;Projected&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3. Place the dimensions again&lt;/P&gt;
&lt;P&gt;4. Run the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That should do it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 09:20:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844730#M56536</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-11-04T09:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844958#M56537</link>
      <description>&lt;P&gt;Bingo.&lt;/P&gt;&lt;P&gt;Changing General Dimension Type from True to Projected solves my problem.&lt;/P&gt;&lt;P&gt;I also had to change the value &amp;gt;0.6 to &amp;gt;=0.48 (I found this value experimentally), but don't really know why.&lt;/P&gt;&lt;P&gt;I just wonder why I had this "true" dimension type. In other drawings I have this set to "projected".&lt;/P&gt;&lt;P&gt;Case solved - Thank You very much&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 11:27:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/9844958#M56537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-04T11:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension centering, Arrows Inside, Skip small dimension</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/10805722#M56538</link>
      <description>&lt;P&gt;For dimensions to behave correctly in drawings, please vote in the topic&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/arrange-dimension/idi-p/10776235" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ideas/arrange-dimension/idi-p/10776235&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 09:43:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-centering-arrows-inside-skip-small-dimension/m-p/10805722#M56538</guid>
      <dc:creator>robertast</dc:creator>
      <dc:date>2021-12-07T09:43:59Z</dc:date>
    </item>
  </channel>
</rss>

