<?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: Example of creating a dimension in a sheet from objects in an assembly in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682420#M117752</link>
    <description>&lt;P&gt;No problem, please let me know after you get a chance to try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try running the code with a drawing document as active and the view should show up that dimension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2015 09:41:09 GMT</pubDate>
    <dc:creator>Balaji_Ram</dc:creator>
    <dc:date>2015-06-18T09:41:09Z</dc:date>
    <item>
      <title>Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5669719#M117741</link>
      <description>&lt;P&gt;I have an assembly, tube with some other components attached to it. I'd like to add tube diameter and length dimensions to the sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't find an example of how to do this. The examples I've found seem to start with know objects and use get_Item(1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So is there an example of creating a dimension in a sheet from objects in an assembly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need a complete worked example because my knowledge is so fragmentary I feel as if I'm falling apart:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CreateGeometryIntent,&amp;nbsp; GeometryIntent, DrawingCurves, EdgeProxy/FaceProxy and so on.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5669719#M117741</guid>
      <dc:creator>oransen</dc:creator>
      <dc:date>2015-06-09T09:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5678835#M117742</link>
      <description>&lt;P&gt;Hi Owen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible to&amp;nbsp;choose which of the&amp;nbsp;dimensional constraints get shown in a view using&amp;nbsp;the Retrieve method.&lt;/P&gt;
&lt;P&gt;This forum post should provide a code snippet&amp;nbsp;to use that method.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/inventor-customization/retrieve-slected-dimension-in-view-with-vba/m-p/5656757#M56247" target="_blank"&gt;http://forums.autodesk.com/t5/inventor-customization/retrieve-slected-dimension-in-view-with-vba/m-p/5656757#M56247&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2015 10:27:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5678835#M117742</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-06-16T10:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5680510#M117743</link>
      <description>&lt;P&gt;This is not exactly what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there no tech article which explains the complete background and details of creating dimensions in an IDW from an IAM? Preferably with diagrams...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 07:13:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5680510#M117743</guid>
      <dc:creator>oransen</dc:creator>
      <dc:date>2015-06-17T07:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5680634#M117744</link>
      <description>&lt;P&gt;Not that i am aware of.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say "add tube diameter and length dimensions to the sheet"&amp;nbsp;I had interpreted your query as&lt;/P&gt;
&lt;P&gt;retrieving the model dimensions which already exist in the assembly to show up in a view inside a sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;This is similar to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;using the "Retrieve dimensions" from the context menu in Inventor UI and then use&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;"Select dimensions" to only retain the ones that we need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can clarify more on exactly what you are trying, I will try and find out if there is any&amp;nbsp;information on that topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&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;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 09:08:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5680634#M117744</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-06-17T09:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5680715#M117745</link>
      <description>&lt;P&gt;There are actually two problems, but for this post lets stick to one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm now able to use GetRetrievableDimensions to get an object collection validly. My next specific question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;How I add selected dimensions into the actual IDW drawing file?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hRes = pGenDims-&amp;gt;GetRetrievableDimensions (pThisView,gkvarEmpty,&amp;amp;pObjCollection) ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (FAILED (hRes)) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gLogger.Printf (ekErrMsg,"Could not get ret dims") ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // So nowI have the object collection, how do I add...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // them into the DrawingDocument?&lt;/FONT&gt;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 10:31:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5680715#M117745</guid>
      <dc:creator>oransen</dc:creator>
      <dc:date>2015-06-17T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682253#M117746</link>
      <description>&lt;P&gt;Hi Owen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on this and will get back to you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Retrieving all the dimensions is straight forward and this should work, but i will need to check on the second parameter to retrieve only a few of the retrievable dimensions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;				CComPtr&amp;lt;GeneralDimensionsEnumerator&amp;gt; pGenDimsEnum;
				hr = pGenDimensions-&amp;gt;Retrieve(pDrawingView, CComVariant(), &amp;amp;pGenDimsEnum);&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:37:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682253#M117746</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-06-18T06:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682317#M117747</link>
      <description>Many thanks! I await with baited breath and anxious eyes!</description>
      <pubDate>Thu, 18 Jun 2015 07:49:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682317#M117747</guid>
      <dc:creator>oransen</dc:creator>
      <dc:date>2015-06-18T07:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682386#M117748</link>
      <description>&lt;P&gt;Hi Owen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Here is a code snippet to retrieve only a few of the retrievable dimensions&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// Retrieve only a few of the retrievable dimensions
CComPtr&amp;lt;ObjectCollection&amp;gt; pObjCollection; 
hr = pInvApp-&amp;gt;TransientObjects-&amp;gt;CreateObjectCollection(CComVariant(), &amp;amp;pObjCollection); 

IDispatchPtr pDim;
hr = pObjColl-&amp;gt;get_Item(_variant_t(1), &amp;amp;pDim);
pObjCollection-&amp;gt;Add(pDim);
CComPtr&amp;lt;GeneralDimensionsEnumerator&amp;gt; pGenDimsEnum1;
hr = pGenDimensions-&amp;gt;Retrieve(pDrawingView, CComVariant(pObjCollection), &amp;amp;pGenDimsEnum1);&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:11:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682386#M117748</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-06-18T09:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682396#M117749</link>
      <description>&lt;P&gt;Thanks, that answers part of my original question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;How I add selected dimensions into the actual IDW drawing file?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an example of adding them into the IDW file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:18:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682396#M117749</guid>
      <dc:creator>oransen</dc:creator>
      <dc:date>2015-06-18T09:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682408#M117750</link>
      <description>&lt;P&gt;Hi Owen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean creating a new drawing document and inserting a base view in it ?&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2012/06/creating-drawing-views-via-the-inventor-api.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2012/06/creating-drawing-views-via-the-inventor-api.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the&amp;nbsp;base view has been inserted, the code to retrieve a few of the retrievable dimensions should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:28:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682408#M117750</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-06-18T09:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682412#M117751</link>
      <description>&lt;P&gt;I'm not at that computer at the moment... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you mean that Retrieval actually places the dims in the IDW? I'll let you know more tomorrow when I can experimnt. In the meantime thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682412#M117751</guid>
      <dc:creator>oransen</dc:creator>
      <dc:date>2015-06-18T09:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682420#M117752</link>
      <description>&lt;P&gt;No problem, please let me know after you get a chance to try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try running the code with a drawing document as active and the view should show up that dimension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:41:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5682420#M117752</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-06-18T09:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Example of creating a dimension in a sheet from objects in an assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5687148#M117753</link>
      <description>Yep! That did it, thanks!</description>
      <pubDate>Mon, 22 Jun 2015 06:55:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/example-of-creating-a-dimension-in-a-sheet-from-objects-in-an/m-p/5687148#M117753</guid>
      <dc:creator>oransen</dc:creator>
      <dc:date>2015-06-22T06:55:46Z</dc:date>
    </item>
  </channel>
</rss>

