<?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: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10525068#M127301</link>
    <description>&lt;P&gt;I am trying to create the drawing in the assembly.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 10:11:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-06T10:11:06Z</dc:date>
    <item>
      <title>Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10513940#M127092</link>
      <description>&lt;P&gt;Is there has any way to use iam file to create idw file with dimension with ilogic?&lt;/P&gt;&lt;P&gt;I only can use iam file to create the idw file but I don`t know how to put dimensions and Balloon in to the idw file.&lt;/P&gt;&lt;P&gt;Thanks for any help！&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 12:32:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10513940#M127092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-02T12:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10514184#M127094</link>
      <description>&lt;P&gt;This is very hard task. Generally is it possible, but iLogic doesn't provide any helpful methods.&lt;/P&gt;&lt;P&gt;Inventor API documentation provides some examples how to create drawing dimensions and balloons. But in real life this is possible only for very special cases.&lt;/P&gt;&lt;P&gt;I implemented my own engine for semi-automatic dimensioning of assembly drawing and it has hundreds of lines of code.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 14:05:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10514184#M127094</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-08-02T14:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10514385#M127099</link>
      <description>&lt;P&gt;Thank you for your reply Michael!&amp;nbsp; Is the that possible to pull out the Mate&amp;nbsp; or Flush `s parameters out and to show the dimension&amp;nbsp; in the drawing？&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 15:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10514385#M127099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-02T15:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10515916#M127108</link>
      <description>&lt;P&gt;This is possible, but you need to find a drawing geometry which belongs to face or edge.&lt;/P&gt;&lt;P&gt;Main steps for this goal is&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get FaceProxy from Mate (&lt;EM&gt;&lt;STRONG&gt;MateConstraint.EntityOne&lt;/STRONG&gt;&lt;/EM&gt;,&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;MateConstraint.EntityTwo&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/LI&gt;&lt;LI&gt;Get DrawingCurves which belongs to face in appropriate DrawingView (&lt;EM&gt;&lt;STRONG&gt;DrawingView.DrawingCurves(faceProxy)&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/LI&gt;&lt;LI&gt;Select the right DrawingCurve&lt;/LI&gt;&lt;LI&gt;Create GeometryIntent for this curve (&lt;EM&gt;&lt;STRONG&gt;Sheet.CreateGeometryIntent(geometry, intent)&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/LI&gt;&lt;LI&gt;Select dimension text position (&lt;EM&gt;&lt;STRONG&gt;Point2D&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/LI&gt;&lt;LI&gt;Create DrawingDimension (&lt;EM&gt;&lt;STRONG&gt;Sheet.DrawingDimensions.GeneralDimensions.AddLinear(...)&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;G&lt;SPAN style="font-family: inherit;"&gt;enerally it does not have to be parallel lines. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;For one face you can find more then one curve in drawing view&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 06:03:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10515916#M127108</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-08-03T06:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10516036#M127109</link>
      <description>In some cases faceProxy can have NO geometries. All geometries of the face can be hidden or overaly by another geometry</description>
      <pubDate>Tue, 03 Aug 2021 07:05:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10516036#M127109</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-08-03T07:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10516817#M127118</link>
      <description>&lt;P&gt;I really &lt;SPAN&gt;appreciate that! Could you give some examples?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 12:49:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10516817#M127118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-03T12:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10517021#M127120</link>
      <description>&lt;P&gt;This sample IS NOT FOR PRODUCTION USE!&lt;/P&gt;&lt;P&gt;I omit any error checking for brevity and this rule is written only for this very simple drawing. See attached file for functional example. In the drawing document is local rule with following text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'Get active drawing document, sheet and view
Dim drwDoc As DrawingDocument = ThisDoc.Document
Dim drwSheet As Sheet = drwDoc.Sheets(1)
Dim drwView As DrawingView = drwSheet.DrawingViews(1)

'Get referenced assembly and its component definition
Dim asmDoc As AssemblyDocument = drwDoc.ReferencedDocuments(1)
Dim asmDef As AssemblyComponentDefinition = asmDoc.ComponentDefinition

'Get MateConstraint
Dim mateConstraint As MateConstraint = asmDef.Constraints("MateForDimension")

'Get face proxies from MateConstraint
Dim faceProxy1 As FaceProxy = mateConstraint.EntityOne
Dim faceProxy2 As FaceProxy = mateConstraint.EntityTwo

'Get DrawingCurves which belongs to face in appropriate DrawingView
Dim curves1 As DrawingCurvesEnumerator = drwView.DrawingCurves(faceProxy1)
Dim curves2 As DrawingCurvesEnumerator = drwView.DrawingCurves(faceProxy2)

'Select the right DrawingCurve
Dim curve1 As DrawingCurve = curves1.Item(1)
Dim curve2 As DrawingCurve = curves2.Item(1)

'Create GeometryIntent for this curve
Dim geometryIntent1 = drwSheet.CreateGeometryIntent(curve1)
Dim geometryIntent2 = drwSheet.CreateGeometryIntent(curve2)

'Select dimension text position
Dim textOrigin = drwView.Center

'Create DrawingDimension
drwSheet.DrawingDimensions.GeneralDimensions.AddLinear(textOrigin, geometryIntent1, geometryIntent2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:07:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10517021#M127120</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-08-03T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10517222#M127128</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 15:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10517222#M127128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-03T15:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10523349#M127265</link>
      <description>&lt;P&gt;It show up error as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unable to cast COM object of type 'Inventor._DocumentClass' to interface type 'Inventor.DrawingDocument'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{29F0D467-C114-11D2-B77F-0060B0F159EF}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 17:25:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10523349#M127265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-05T17:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10524686#M127295</link>
      <description>&lt;P&gt;Do you run the code from Drawing?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 06:53:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10524686#M127295</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-08-06T06:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10525068#M127301</link>
      <description>&lt;P&gt;I am trying to create the drawing in the assembly.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 10:11:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10525068#M127301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-06T10:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there has any way to use iam file to create idw file with dimension and balloon with ilogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10526402#M127345</link>
      <description>&lt;P&gt;Could you also have set dimension with flush and set balloon? Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 19:00:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/is-there-has-any-way-to-use-iam-file-to-create-idw-file-with/m-p/10526402#M127345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-06T19:00:28Z</dc:date>
    </item>
  </channel>
</rss>

