<?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 it me or c sharp? I'm leaning towards me... AddUsingSheetFormat --&amp;gt;2026 in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14252097#M181662</link>
    <description>&lt;P&gt;It looks as though this pops up when you create a sheet from the sheet format; the model doc is required. The API documentation doesn't make this clear. But that's how it goes sometimes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tiffany_Hayden__0-1788297832483.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1659299i1D7C0B6AB7DC87B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tiffany_Hayden__0-1788297832483.png" alt="Tiffany_Hayden__0-1788297832483.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fix is to create a sheet format off of a blank sheet created from the original format, doing that will no longer require the model document as input.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create new sheet from drawing right click create sheet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right click on new sheet&lt;/P&gt;
&lt;P&gt;Create Sheet format&lt;/P&gt;
&lt;P&gt;Rename new Sheet format&lt;/P&gt;
&lt;P&gt;Save&lt;/P&gt;
&lt;P&gt;In code use new sheet format.&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>Tue, 01 Sep 2026 21:25:49 GMT</pubDate>
    <dc:creator>Tiffany_Hayden_</dc:creator>
    <dc:date>2026-09-01T21:25:49Z</dc:date>
    <item>
      <title>Is it me or c sharp? I'm leaning towards me... AddUsingSheetFormat --&gt;2026</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14251971#M181659</link>
      <description>&lt;P&gt;I'm having an issue not "having" to give the model doc in AddUsingSheeetFormat in 2026.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I don't give it the modeldoc it will give me an error parameter incorrect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;               &lt;SPAN&gt;object&lt;/SPAN&gt; &lt;SPAN&gt;missing&lt;/SPAN&gt; = &lt;SPAN&gt;Type&lt;/SPAN&gt;.Missing;

               &lt;SPAN&gt;string&lt;/SPAN&gt; &lt;SPAN&gt;activeDocPath&lt;/SPAN&gt; = ActiveDrawing.ReferencedDocuments[1].FullFileName;

               &lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;SPAN&gt;modelDoc&lt;/SPAN&gt; = (&lt;SPAN&gt;Document&lt;/SPAN&gt;)invApp.Documents.Open(&lt;SPAN&gt;activeDocPath&lt;/SPAN&gt;, &lt;SPAN&gt;false&lt;/SPAN&gt;) ;
               &lt;SPAN&gt;Sheet&lt;/SPAN&gt; &lt;SPAN&gt;newSheet&lt;/SPAN&gt; = &lt;SPAN&gt;drawingSheets&lt;/SPAN&gt;.&lt;SPAN&gt;AddUsingSheetFormat&lt;/SPAN&gt;(&lt;SPAN&gt;sheetFormat&lt;/SPAN&gt;, &lt;SPAN&gt;modelDoc&lt;/SPAN&gt;, &lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;);&lt;/PRE&gt;
&lt;P&gt;But if I use the model doc it adds a view to the sheet and a Parts list automatically. Is this new functionality? Or am I just using the API wrong.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to do this.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;                &lt;SPAN&gt;Sheet&lt;/SPAN&gt; &lt;SPAN&gt;newSheet&lt;/SPAN&gt; = &lt;SPAN&gt;drawingSheets&lt;/SPAN&gt;.&lt;SPAN&gt;AddUsingSheetFormat&lt;/SPAN&gt;(&lt;SPAN&gt;sheetFormat&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;, &lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before you ask. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I have validated that my sheetformat exists and is pointing to the correct one. There are no prompts when adding a sheet manually.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tiffany&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2026 18:43:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14251971#M181659</guid>
      <dc:creator>Tiffany_Hayden_</dc:creator>
      <dc:date>2026-09-01T18:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it me or c sharp? I'm leaning towards me... AddUsingSheetFormat --&gt;2026</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14252026#M181660</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-09-01_16-02-15.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1659282i625232F2DA135FF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2026-09-01_16-02-15.jpg" alt="2026-09-01_16-02-15.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sheet&lt;/SPAN&gt; &lt;SPAN&gt;newSheet&lt;/SPAN&gt; = &lt;SPAN&gt;drawingSheets&lt;/SPAN&gt;.&lt;SPAN&gt;AddUsingSheetFormat&lt;/SPAN&gt;(&lt;SPAN&gt;sheetFormat)&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Sep 2026 20:04:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14252026#M181660</guid>
      <dc:creator>hollypapp65</dc:creator>
      <dc:date>2026-09-01T20:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it me or c sharp? I'm leaning towards me... AddUsingSheetFormat --&gt;2026</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14252055#M181661</link>
      <description>&lt;P&gt;I've tried that too. I read that but I'm not sure how you go about not using the model doc as the second input. Is there a workaround?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2026 20:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14252055#M181661</guid>
      <dc:creator>Tiffany_Hayden_</dc:creator>
      <dc:date>2026-09-01T20:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it me or c sharp? I'm leaning towards me... AddUsingSheetFormat --&gt;2026</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14252097#M181662</link>
      <description>&lt;P&gt;It looks as though this pops up when you create a sheet from the sheet format; the model doc is required. The API documentation doesn't make this clear. But that's how it goes sometimes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tiffany_Hayden__0-1788297832483.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1659299i1D7C0B6AB7DC87B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tiffany_Hayden__0-1788297832483.png" alt="Tiffany_Hayden__0-1788297832483.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fix is to create a sheet format off of a blank sheet created from the original format, doing that will no longer require the model document as input.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create new sheet from drawing right click create sheet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right click on new sheet&lt;/P&gt;
&lt;P&gt;Create Sheet format&lt;/P&gt;
&lt;P&gt;Rename new Sheet format&lt;/P&gt;
&lt;P&gt;Save&lt;/P&gt;
&lt;P&gt;In code use new sheet format.&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>Tue, 01 Sep 2026 21:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/is-it-me-or-c-sharp-i-m-leaning-towards-me-addusingsheetformat/m-p/14252097#M181662</guid>
      <dc:creator>Tiffany_Hayden_</dc:creator>
      <dc:date>2026-09-01T21:25:49Z</dc:date>
    </item>
  </channel>
</rss>

