<?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 Dimension with Text is Horizontal Or Vertical in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483889#M143913</link>
    <description>&lt;P&gt;Is it possible to get a vertical or horiztonal result from an aligned dimension?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 20:15:04 GMT</pubDate>
    <dc:creator>C_Haines_ENG</dc:creator>
    <dc:date>2022-10-14T20:15:04Z</dc:date>
    <item>
      <title>Determine if Dimension with Text is Horizontal Or Vertical</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483784#M143907</link>
      <description>&lt;P&gt;I have a "Duplicate Post" on here already but Ive run into an issue with some code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;oObj = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingDimensionFilter, "Select a drawing dimension.")

	If oObj.DimensionType = DimensionTypeEnum.kHorizontalDimensionType Then
		MsgBox("Horizontal", , "")
	ElseIf oObj.DimensionType = DimensionTypeEnum.kVerticalDimensionType Then
		MsgBox("Vertical", , "")
	Else
		MsgBox("Other", , "")
	End If&lt;/LI-CODE&gt;&lt;P&gt;I am trying to find if a dimension that contains text is either vertical or horizontal. The above code works on dimensions that do not have text but I need to find this value for values that have text.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 19:27:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483784#M143907</guid>
      <dc:creator>C_Haines_ENG</dc:creator>
      <dc:date>2022-10-14T19:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Dimension with Text is Horizontal Or Vertical</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483813#M143909</link>
      <description>&lt;P&gt;What do you mean by "contains text" or "have text" ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to work even on dims that have additional text added to the number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide an example file?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 19:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483813#M143909</guid>
      <dc:creator>tyler.warner</dc:creator>
      <dc:date>2022-10-14T19:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Dimension with Text is Horizontal Or Vertical</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483836#M143911</link>
      <description>&lt;P&gt;I mean dimensions that have manuallally overridden text, i have attached an example document below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have double clicked on these dimensions and added the word "PANEL" to them, my program will eventually find the orientation of the two dimensions that have the word "PANEL" in them.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 19:51:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483836#M143911</guid>
      <dc:creator>C_Haines_ENG</dc:creator>
      <dc:date>2022-10-14T19:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Dimension with Text is Horizontal Or Vertical</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483861#M143912</link>
      <description>&lt;P&gt;The dimension type from the command manager pick function should not matter whether there is no text, additional text or over-ridden text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue you'll get with the above workflow is it will depend on how you created your dimensions. To get a "horizontal" or "vertical" dimension type, it will require two "points" to be picked. If two "lines" are picked, it will be the "aligned" dimension type.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 20:02:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483861#M143912</guid>
      <dc:creator>tyler.warner</dc:creator>
      <dc:date>2022-10-14T20:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Dimension with Text is Horizontal Or Vertical</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483889#M143913</link>
      <description>&lt;P&gt;Is it possible to get a vertical or horiztonal result from an aligned dimension?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 20:15:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483889#M143913</guid>
      <dc:creator>C_Haines_ENG</dc:creator>
      <dc:date>2022-10-14T20:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Dimension with Text is Horizontal Or Vertical</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483919#M143914</link>
      <description>&lt;P&gt;You can see if this works for you.&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/drawing-dimension-orientation-with-some-aligneddimensiontype/m-p/9652371" target="_blank" rel="noopener"&gt;(Reference Link)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;If TypeOf oObj.DimensionLine Is LineSegment2d Then
'	MsgBox(oObj.DimensionLine.Direction.X)
'	MsgBox(oObj.DimensionLine.Direction.Y)
	If oObj.DimensionLine.Direction.X = 1 Then
		MsgBox("Dimension is Horizontal.")
	Else If oObj.DimensionLine.Direction.Y = -1 Then
		MsgBox("Dimension is Vertical.")
	End If
End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 20:38:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483919#M143914</guid>
      <dc:creator>tyler.warner</dc:creator>
      <dc:date>2022-10-14T20:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if Dimension with Text is Horizontal Or Vertical</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483933#M143916</link>
      <description>&lt;P&gt;Great! That works Perfectly!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 20:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/determine-if-dimension-with-text-is-horizontal-or-vertical/m-p/11483933#M143916</guid>
      <dc:creator>C_Haines_ENG</dc:creator>
      <dc:date>2022-10-14T20:47:39Z</dc:date>
    </item>
  </channel>
</rss>

