<?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: Determine if Drawing Dimension is Broken in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455895#M64301</link>
    <description>&lt;P&gt;I'd rather prefer some (even tricky) workaround within next several days than ideal solution several years later.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 12:01:10 GMT</pubDate>
    <dc:creator>Maxim-CADman77</dc:creator>
    <dc:date>2020-04-20T12:01:10Z</dc:date>
    <item>
      <title>Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9453003#M64296</link>
      <description>&lt;P&gt;I'd like to know the way to determine if particular Drawing Dimension is Broken.&lt;/P&gt;&lt;P&gt;I mean those dimensions crossing View-Break sign like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrokenDimensionSample.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/756472iE1445212F54500EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="BrokenDimensionSample.png" alt="BrokenDimensionSample.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now I don't even see any simple way to get the name of a DrawingView the Dimension belongs to.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2020 16:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9453003#M64296</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-04-18T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9453066#M64297</link>
      <description>&lt;P&gt;Inventor itself can determine it (judging by the display option in dimension style settings):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrokenDimensionSymbol.png" style="width: 950px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/756487i233F680224A341B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="BrokenDimensionSymbol.png" alt="BrokenDimensionSymbol.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrokenDimension.png" style="width: 441px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/756488iCBA87A0747B9AB2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="BrokenDimension.png" alt="BrokenDimension.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2020 17:36:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9453066#M64297</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-04-18T17:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455722#M64298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to identify such dimension lines by querying the (Get/Set)&amp;nbsp;&lt;STRONG&gt;ShowBreakSymbol&lt;/STRONG&gt;&lt;SPAN&gt;() boolean on the DimensionStyle Object as documented &lt;A href="http://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-5EBC4287-85AF-4EC0-ABA9-1BC018D6DACD" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know in case of any further questions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tobias&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Edit: I might have misinterpreted the question. You don't necessarily need to know which view the dimensions belong to but rather the position of their GeometryIntents in relation to the Start and End Point of the Break Operation in addition to their orientation. That way you should be able to determine whether ShowBreakSymbol() should be true or not.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does that approach make sense and is easy enough to implement?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 11:21:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455722#M64298</guid>
      <dc:creator>tobias.orlow</dc:creator>
      <dc:date>2020-04-20T11:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455852#M64299</link>
      <description>&lt;P&gt;I believe this is related only to dimension style but not particular dimensionns.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 11:40:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455852#M64299</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-04-20T11:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455890#M64300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ah I see what you mean.&lt;/P&gt;
&lt;P&gt;Within the Dimension you can only query and change the property via the dimensions' "Style" and changes would be made to the style itself.&lt;/P&gt;
&lt;P&gt;If you do have the requirement to set the BreakSymbol per Dimension, I believe it would be best to log it on the IdeaStation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 11:58:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455890#M64300</guid>
      <dc:creator>tobias.orlow</dc:creator>
      <dc:date>2020-04-20T11:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455895#M64301</link>
      <description>&lt;P&gt;I'd rather prefer some (even tricky) workaround within next several days than ideal solution several years later.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 12:01:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9455895#M64301</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-04-20T12:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9458547#M64302</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try below VBA code to identify broken dimension in drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub Select_Broken_Dimension()
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oSheet As Sheet
    Set oSheet = oDoc.ActiveSheet
    
    Dim oDimension As DrawingDimension
    For Each oDimension In oSheet.DrawingDimensions
        Dim d As Double
        d = distance(oDimension.DimensionLine.StartPoint.Y, oDimension.DimensionLine.StartPoint.X, oDimension.DimensionLine.EndPoint.Y, oDimension.DimensionLine.EndPoint.X)
        d = d / 10
        If d &amp;lt;&amp;gt; oDimension.ModelValue Then
            Call oDoc.SelectSet.Select(oDimension)
        End If
        
    Next
End Sub

Function distance(ya As Double, xa As Double, yb As Double, xB As Double)
    distance = Sqr((ya - yb) ^ 2 + (xa - xB) ^ 2)
End Function&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please feel free to contact if there are any queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 10:22:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9458547#M64302</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2020-04-21T10:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9458930#M64303</link>
      <description>&lt;P&gt;This is good idea!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still needs adding some analysis of the Drawing View.&lt;/P&gt;&lt;P&gt;I mean it doesn't take to consideration DrawingView Scale value (works as expected only for dimensions belong to 1:1 Scaled Views).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I believe it's also worth to compare rounded values, like:&lt;/P&gt;&lt;P&gt;If Round(d,8) &amp;lt;&amp;gt; Round(oDD.ModelValue,8) Then&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 12:19:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9458930#M64303</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-04-21T12:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9458947#M64304</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide non confidential sample drawings (different scale) to test the feasibility.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 12:27:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9458947#M64304</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2020-04-21T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9458993#M64305</link>
      <description>&lt;P&gt;I believe you don't need another sample.&lt;/P&gt;&lt;P&gt;Just change Drawing View Scale value to something different&amp;nbsp; from "10:1".&lt;/P&gt;&lt;P&gt;Then to keep it working as expected you'll need to change accordingly the hard-coced multiplier in line&lt;/P&gt;&lt;PRE&gt; d = d / 10&lt;/PRE&gt;&lt;P&gt;For Dimension that belongs to 5:1 Scaled View:&lt;BR /&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;d = d/5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For Dimension that belongs to 1:2 Scaled View:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; d = d*2&lt;/P&gt;&lt;P&gt;...etc.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 12:43:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9458993#M64305</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-04-21T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9465171#M64306</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DrawingViewScale.png" style="width: 306px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/759266iF7459065E22DBB8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="DrawingViewScale.png" alt="DrawingViewScale.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 15:00:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9465171#M64306</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-04-23T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9476623#M64307</link>
      <description>&lt;P&gt;I still hope it is possible to get scale multiplier of the parent view for each dimension...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:13:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9476623#M64307</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-04-28T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9488093#M64308</link>
      <description>&lt;P&gt;I'm attaching a sample set of model and drwing with several broken dimensions on several views with different scale.&lt;/P&gt;&lt;P&gt;I still hope somebody will help me to make VS (View Scale) variable an accosiative.&lt;/P&gt;&lt;P&gt;My current code is:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub Main
	Dim oIDW As DrawingDocument = ThisApplication.ActiveDocument
	Dim oSh As Sheet = oIDW.ActiveSheet
	Dim oDD As DrawingDimension
	Dim MsgMody As String
	Dim VS As Double ' View Scale

	For Each oDD In oSh.DrawingDimensions
		MsgBody &amp;amp;= oDD.Text.Text
'		MsgBody &amp;amp;= oDD.ModelValue
		VS = 1/2 ' !!!!
		Dim d As Double = OnIDWdistMM(oDD.DimensionLine.StartPoint.Y, oDD.DimensionLine.StartPoint.X, oDD.DimensionLine.EndPoint.Y, oDD.DimensionLine.EndPoint.X) / VS
		MsgBody &amp;amp;= " (" &amp;amp;  Round(d,3) &amp;amp; ")" ' 
		If Round(d,8) &amp;lt;&amp;gt; Round(10*oDD.ModelValue,8) Then MsgBody &amp;amp;= " - BROKEN !!!"
		MsgBody &amp;amp;= vbCrLf
	Next
	MsgBox(MsgBody,,"Dimensions' Break status:")
End Sub

Function OnIDWdistMM(ya As Double, xa As Double, yb As Double, xB As Double)
	OnIDWdistMM = 10 * Sqrt((ya - yb) ^ 2 + (xa - xB) ^ 2)
End Function&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 12:00:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9488093#M64308</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-05-03T12:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Drawing Dimension is Broken</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9507923#M64309</link>
      <description>&lt;P&gt;Just in case:&lt;/P&gt;&lt;P&gt;I've got the answer regarding View Scale here -&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/determine-scale-of-the-drawingdimension-s-parent-drawingview/m-p/9492081#M110387" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-customization/determine-scale-of-the-drawingdimension-s-parent-drawingview/m-p/9492081#M110387&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 20:04:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/determine-if-drawing-dimension-is-broken/m-p/9507923#M64309</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2020-05-11T20:04:56Z</dc:date>
    </item>
  </channel>
</rss>

