<?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 can not able to Saveas using VBA in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9744433#M115875</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Saveas Issue.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/818659iFCB5046A9B2684BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Saveas Issue.PNG" alt="Saveas Issue.PNG" /&gt;&lt;/span&gt;Hi to All.&lt;/P&gt;&lt;P&gt;Can some boy explain me why the error is coming and the solution too.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Sep 2020 12:57:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-13T12:57:12Z</dc:date>
    <item>
      <title>can not able to Saveas using VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9744433#M115875</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Saveas Issue.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/818659iFCB5046A9B2684BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Saveas Issue.PNG" alt="Saveas Issue.PNG" /&gt;&lt;/span&gt;Hi to All.&lt;/P&gt;&lt;P&gt;Can some boy explain me why the error is coming and the solution too.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 12:57:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9744433#M115875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-13T12:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: can not able to Saveas using VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9746004#M115876</link>
      <description>&lt;P&gt;Documentation says:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Syntax&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AssemblyDocument.&lt;/SPAN&gt;&lt;STRONG&gt;SaveAs&lt;/STRONG&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;FileName&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;As String,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;SaveCopyAs&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;As Boolean )&lt;/SPAN&gt;&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;you need to reference the document you are trying to save ie:&amp;nbsp; oDoc.SaveAs( FileName, True)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, there is another forum here called "Inventor Customization" for programming questions where you will probably get quicker and better answers.&amp;nbsp; Good Luck.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 15:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9746004#M115876</guid>
      <dc:creator>imajar</dc:creator>
      <dc:date>2020-09-14T15:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: can not able to Saveas using VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9746986#M115878</link>
      <description>&lt;P&gt;Besides referencing to document to call the method as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2565877"&gt;@imajar&lt;/a&gt;&amp;nbsp;mentioned, there is some common syntax tricks in VBA that it supports calling a method in either of the ways, take Document.SaveAs as example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.With parenthesis:&amp;nbsp;&amp;nbsp;&lt;FONT color="#FF0000"&gt;Call &lt;/FONT&gt;Document.SaveAs&lt;FONT color="#FF0000"&gt;(&lt;/FONT&gt;Param1, Param2&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;2. With paraenthesis: Document.SaveAs Param1, Param2&lt;/P&gt;
&lt;P&gt;Code example:&lt;/P&gt;
&lt;P&gt;Dim oDoc As AssemblyDocument&lt;BR /&gt;Set oDoc = ThisApplication.ActiveDocument&lt;BR /&gt;oDoc.SaveAs "c:\temp\aa.iam", False&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 02:58:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9746986#M115878</guid>
      <dc:creator>JaneFan</dc:creator>
      <dc:date>2020-09-15T02:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: can not able to Saveas using VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9747391#M115892</link>
      <description>&lt;P&gt;Given the fact I see various 'End With' statements and a '&lt;FONT size="5"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;Close' statement, leads me to believe the 'SaveAs' command in the red line of code should also precede with a '&lt;FONT size="5"&gt;.&lt;/FONT&gt;'&amp;nbsp;&lt;/P&gt;&lt;P&gt;Noticing the fact there's a '&lt;FONT size="5"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;SaveAs' statement commented out above the red line of code and assuming that is done because it didn't work, lends me to believe something's wrong with your&amp;nbsp;'With' statements.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 08:09:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/can-not-able-to-saveas-using-vba/m-p/9747391#M115892</guid>
      <dc:creator>_dscholtes_</dc:creator>
      <dc:date>2020-09-15T08:09:14Z</dc:date>
    </item>
  </channel>
</rss>

