<?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: SaveAs Stp in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2785090#M142437</link>
    <description>&lt;P&gt;Can you try providing that full path for the output file, rather than just "fil.stp"? I tried the following VBA macro on the active assembly document in Inventor 2011 and it works for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub SaveAsSTP()

    Dim oDoc As Document
    Set oDoc = ThisApplication.ActiveDocument
    
    Call oDoc.SaveAs("C:\temp\test.stp", True)
    
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2010 18:57:04 GMT</pubDate>
    <dc:creator>sanjay.ramaswamy</dc:creator>
    <dc:date>2010-09-30T18:57:04Z</dc:date>
    <item>
      <title>SaveAs Stp</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2784498#M142436</link>
      <description>&lt;P&gt;I'm trying to start up Inventor, open an assembly and save it to stp using API (C#).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfectly fine with parts, but not with assemblies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doc.SaveAs("fil.stp", true); // doc is an iam-file (Inventor.Document)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...gives me error: "Invalid parameter... HRESULT: 0x80070057 (E_INVALIDARG))".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I start up Inventor visually so I know that the assembly opens up correctly with all parts and subassemblies.&lt;/P&gt;&lt;P&gt;If I do it manually it works fine with Export -&amp;gt; CAD Format -&amp;gt; STEP (stp).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas why or what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2010 13:29:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2784498#M142436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-30T13:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: SaveAs Stp</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2785090#M142437</link>
      <description>&lt;P&gt;Can you try providing that full path for the output file, rather than just "fil.stp"? I tried the following VBA macro on the active assembly document in Inventor 2011 and it works for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub SaveAsSTP()

    Dim oDoc As Document
    Set oDoc = ThisApplication.ActiveDocument
    
    Call oDoc.SaveAs("C:\temp\test.stp", True)
    
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2010 18:57:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2785090#M142437</guid>
      <dc:creator>sanjay.ramaswamy</dc:creator>
      <dc:date>2010-09-30T18:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: SaveAs Stp</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2785584#M142439</link>
      <description>&lt;P&gt;I found the problem. Inventor was not ready loading when I opened the assembly. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2010 09:46:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2785584#M142439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-01T09:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: SavAs Step</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2967064#M142440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to add options for the step export within the code?&lt;/P&gt;&lt;P&gt;Specifically, does the export&amp;nbsp;step have savecopyas options that&amp;nbsp;can be set just like in the dxf/pdf translator addin?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goal: I want to preset the export options for the step file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options I would like to "grab" &amp;amp; "set":&lt;/P&gt;&lt;P&gt;- Application Protocol: 203 or 214, then 214 alone, 214 IS or 214 DIS.&lt;/P&gt;&lt;P&gt;- Include Sketches (True/False I guess)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2011 08:42:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/2967064#M142440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-28T08:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: SaveAs Stp</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/3699010#M142441</link>
      <description>&lt;P&gt;How can I access the saving options.&lt;/P&gt;&lt;P&gt;I want to exclude the sketches while saving as stp&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2012 15:46:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/saveas-stp/m-p/3699010#M142441</guid>
      <dc:creator>Ktelang</dc:creator>
      <dc:date>2012-11-14T15:46:18Z</dc:date>
    </item>
  </channel>
</rss>

