<?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 iLogic New Drawing from Template: Select Component for View in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627810#M12655</link>
    <description>&lt;P&gt;Hi all!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a .idw drawing that already contains views and dimensions from a template model (ipt).&lt;/P&gt;&lt;P&gt;I have a rule that creates a new drawing from this template using this line&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDrawingDoc As DrawingDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, templateFile, True)&lt;/LI-CODE&gt;&lt;P&gt;However when the new drawing is created, the model and dimensions are not present. I am sure that this is due to the fact that when I manually (no iLogic) create a new drawing for this template I get a popup window to "Select Component for View". I have not found a way to specify this Component via iLogic hence the template is opened without the views and dimensions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kmlarrivee_0-1709924504788.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1335097i7CB5D9D7A28B10C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kmlarrivee_0-1709924504788.png" alt="kmlarrivee_0-1709924504788.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone have a clue on how to do this? The objective is to then replace the model reference with a newly created part (which is based on the original template model)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 19:04:06 GMT</pubDate>
    <dc:creator>kmlarrivee</dc:creator>
    <dc:date>2024-03-08T19:04:06Z</dc:date>
    <item>
      <title>iLogic New Drawing from Template: Select Component for View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627810#M12655</link>
      <description>&lt;P&gt;Hi all!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a .idw drawing that already contains views and dimensions from a template model (ipt).&lt;/P&gt;&lt;P&gt;I have a rule that creates a new drawing from this template using this line&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDrawingDoc As DrawingDocument = ThisApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, templateFile, True)&lt;/LI-CODE&gt;&lt;P&gt;However when the new drawing is created, the model and dimensions are not present. I am sure that this is due to the fact that when I manually (no iLogic) create a new drawing for this template I get a popup window to "Select Component for View". I have not found a way to specify this Component via iLogic hence the template is opened without the views and dimensions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kmlarrivee_0-1709924504788.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1335097i7CB5D9D7A28B10C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kmlarrivee_0-1709924504788.png" alt="kmlarrivee_0-1709924504788.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone have a clue on how to do this? The objective is to then replace the model reference with a newly created part (which is based on the original template model)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 19:04:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627810#M12655</guid>
      <dc:creator>kmlarrivee</dc:creator>
      <dc:date>2024-03-08T19:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic New Drawing from Template: Select Component for View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627840#M12656</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10288402"&gt;@kmlarrivee&lt;/a&gt;.&amp;nbsp; That sounds like a good case for using the ThisApplication.CommandManager.&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=CommandManager_PostPrivateEvent" target="_blank" rel="noopener"&gt;PostPrivateEvent&lt;/A&gt; method, where you specify&amp;nbsp;PrivateEventTypeEnum.&lt;SPAN&gt;kFileNameEvent as the first input, then the full file name of the model document as the second input.&amp;nbsp; You would use that line of code just before the line of code that creates the new drawing.&amp;nbsp; Then that should automatically fill in that information for you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 19:19:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627840#M12656</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-03-08T19:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic New Drawing from Template: Select Component for View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627863#M12657</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does work indeed!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when the drawing opens, the model is there but the dimensions are gone. I just realised this is the same behaviour as doing it manually...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would there be another way of accomplishing what I want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keven.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 19:32:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627863#M12657</guid>
      <dc:creator>kmlarrivee</dc:creator>
      <dc:date>2024-03-08T19:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic New Drawing from Template: Select Component for View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627884#M12658</link>
      <description>&lt;P&gt;Are you familiar with SheetFormats in drawings?&amp;nbsp; They are like an internal 'template' for an individual sheet.&amp;nbsp; It can already include a specific border, title block, notes, and even model views.&amp;nbsp; However, if it contains model views, it allows you a direct way to specify what model you want to be represented in those views, among other settings.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingDocument_SheetFormats" target="_blank" rel="noopener"&gt;DrawingDocument.SheetFormats&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-SheetFormats" target="_blank" rel="noopener"&gt;SheetFormats&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=Sheets_AddUsingSheetFormat" target="_blank" rel="noopener"&gt;Sheets.AddUsingSheetFormat&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 19:40:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627884#M12658</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-03-08T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic New Drawing from Template: Select Component for View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627923#M12659</link>
      <description>&lt;P&gt;[deleted reply]&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 19:55:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627923#M12659</guid>
      <dc:creator>kmlarrivee</dc:creator>
      <dc:date>2024-03-08T19:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic New Drawing from Template: Select Component for View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627926#M12660</link>
      <description>I did not know about those, thanks!&lt;BR /&gt;&lt;BR /&gt;However, I have the same problem. I added a Sheet Format in my default template, when using it to generate my final drawing with my new part, the dimensions that were added are not present.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I guess I need to find a way to use "Replace Model Reference" via iLogic by first copying my template and not creating a new file from it. Let me know if you think of something else.&amp;nbsp;</description>
      <pubDate>Fri, 08 Mar 2024 19:54:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-new-drawing-from-template-select-component-for-view/m-p/12627926#M12660</guid>
      <dc:creator>kmlarrivee</dc:creator>
      <dc:date>2024-03-08T19:54:33Z</dc:date>
    </item>
  </channel>
</rss>

