<?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: save as STEP on network location in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726797#M57528</link>
    <description>&lt;P&gt;That's working although I don't know why it wasn't when I tried it?&lt;/P&gt;&lt;P&gt;Can't thank you enough for your help, much appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2015 10:13:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-20T10:13:54Z</dc:date>
    <item>
      <title>save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5724442#M57474</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been exporting as STEP using the code supplied from the snippets.&lt;/P&gt;&lt;P&gt;My question is where in the code does it assign the save location? Can I send the STEP file out to a shared network location as an alternative to the default original folder?&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;PRE&gt;' Get the STEP translator Add-In.
Dim oSTEPTranslator As TranslatorAddIn
oSTEPTranslator = ThisApplication.ApplicationAddIns.ItemById("{90AF7F40-0C01-11D5-8E83-0010B541CD80}")
Dim oContext As TranslationContext
oContext = ThisApplication.TransientObjects.CreateTranslationContext
Dim oOptions As NameValueMap
oOptions = ThisApplication.TransientObjects.CreateNameValueMap

If oSTEPTranslator.HasSaveCopyAsOptions(ThisApplication.ActiveDocument, oContext, oOptions) Then
    ' Set application protocol.
    ' 2 = AP 203 - Configuration Controlled Design
    ' 3 = AP 214 - Automotive Design
    oOptions.Value("ApplicationProtocolType") = 3
    ' Other options...
    'oOptions.Value("Author") = ""
    'oOptions.Value("Authorization") = ""
    oOptions.Value("Description") = iProperties.Value("Summary", "Title")
    oOptions.Value("Organization") = "© XXXX XXXXX XXXXX " &amp;amp; Now.ToString("yyyy")
    oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
    Dim oData As DataMedium
    oData = ThisApplication.TransientObjects.CreateDataMedium
    oData.FileName = ThisDoc.PathAndFileName(False) &amp;amp; "_" &amp;amp; iProperties.Value("Project", "Revision Number")&amp;amp; ".stp"
oSTEPTranslator.SaveCopyAs(ThisApplication.ActiveDocument, oContext, oOptions, oData)
End If&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jul 2015 09:43:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5724442#M57474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-17T09:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5724475#M57476</link>
      <description>&lt;P&gt;I should also mention that I have been attempting to do this another way but do not have all of the options I need to add the copyright details etc into the exported file.&lt;/P&gt;&lt;P&gt;Would it be easier to add the properties to this code?&lt;/P&gt;&lt;P&gt;If so, could anybody help me to do this please?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'ThisDoc.Document.SaveAs(ThisDoc.ChangeExtension(".stp"), True)
If Left(iProperties.Value(docFName,"Project", "Part Number"),2)= "PE" Then 
altName = "_" &amp;amp; iProperties.Value("Project","Revision Number") &amp;amp; ".stp" 
strFolder = "N:\PE\" &amp;amp; ThisDoc.FileName(False) 'without extension
ThisDoc.Document.SaveAs(strFolder &amp;amp; altName,True)

MessageBox.Show(ThisDoc.FileName(False) &amp;amp; altName &amp;amp; " saved!!" &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; strFolder &amp;amp; altName , "RELEASED STEP")


Else 


If Left(iProperties.Value(docFName,"Project", "Part Number"),2)= "SK" Then 
altName = "_" &amp;amp; iProperties.Value("Project","Revision Number") &amp;amp; ".stp" 
strFolder = "N:\SK\" &amp;amp; ThisDoc.FileName(False) 'without extension
ThisDoc.Document.SaveAs(strFolder &amp;amp; altName,True)

MessageBox.Show(ThisDoc.FileName(False) &amp;amp; altName &amp;amp; " saved!!" &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; strFolder &amp;amp; altName , "RELEASED STEP")


'ThisDoc.Document.SaveAs(strFolder &amp;amp; (".stp") , True)
'ThisDoc.Document.SaveAs(strFolder &amp;amp; (".pdf") , True)

'MessageBox.Show("All file formats saved", "File Save")

End If
End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:31:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5724475#M57476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-17T10:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5724527#M57478</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;the folder is specifed on 3th row from bottom:&lt;/P&gt;&lt;PRE&gt;oData.FileName = ThisDoc.PathAndFileName(False) &amp;amp; "_" &amp;amp; iProperties.Value("Project", "Revision Number")&amp;amp; ".stp"&lt;/PRE&gt;&lt;P&gt;You can use this instead:&lt;/P&gt;&lt;PRE&gt;oData.FileName = &lt;SPAN style="font-family: FrutigerNextW04-Regular, Verdana, Arial, Helvetica, sans-serif; line-height: 15px;"&gt;"N:\PE\" &amp;amp; ThisDoc.FileName(False) &lt;/SPAN&gt;&lt;SPAN style="font-family: FrutigerNextW04-Regular, Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;amp; ".stp"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5724527#M57478</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2015-07-17T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5724540#M57479</link>
      <description>&lt;P&gt;Excuse my naivety but isn't this to specify the filename? If I add the network location to this it throws up an error?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:58:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5724540#M57479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-17T11:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726528#M57510</link>
      <description>&lt;P&gt;By this you specify "Full path" which means "Path"&amp;nbsp;&lt;SPAN style="white-space: pre; background-color: #f7f7f7;"&gt;&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;"File name".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;I have no idea why it should throw an error, I'm ussing it to save files on shared server without any problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Inventor doesn't care if it is local or shared network or a post mail, as long as he can save there, he would.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;But if you want to use this code on other PCs as well than either u need to map the server as the same disc letter (probably "N" In youre case) or use the network addres (e.g. "\\dc\file.ipt" for me).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;And to use "&lt;/SPAN&gt;&lt;SPAN style="white-space: pre; background-color: #f7f7f7;"&gt;ThisDoc.FileName(False)" the file muss be saved, so it have a name.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 04:05:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726528#M57510</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2015-07-20T04:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726655#M57522</link>
      <description>&lt;P&gt;Sorry I should have been more specific. When I use the code exactly as supplied it is fine but I need the underscore &amp;amp; revision number to appear at the end of the step file name. If I add this info to the line of code it no longer works. How can I specify this without it throwing up an error please?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 07:49:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726655#M57522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-20T07:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726790#M57527</link>
      <description>&lt;P&gt;Ah, I see now. See the code below:&lt;/P&gt;&lt;PRE&gt;oData.FileName = &lt;SPAN&gt;"N:\PE\" &amp;amp; ThisDoc.FileName(False) &lt;/SPAN&gt;&lt;SPAN style="font-family: FrutigerNextW04-Regular, Verdana, Arial, Helvetica, sans-serif; line-height: 15px;"&gt;&amp;amp; "_" &amp;amp; iProperties.Value("Project", "Revision Number") &lt;/SPAN&gt;&lt;SPAN style="font-family: FrutigerNextW04-Regular, Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;amp; ".stp"&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jul 2015 10:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726790#M57527</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2015-07-20T10:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726797#M57528</link>
      <description>&lt;P&gt;That's working although I don't know why it wasn't when I tried it?&lt;/P&gt;&lt;P&gt;Can't thank you enough for your help, much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 10:13:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726797#M57528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-20T10:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: save as STEP on network location</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726817#M57531</link>
      <description>&lt;P&gt;You're welcomed.&lt;/P&gt;&lt;P&gt;Maybe you just missed&amp;nbsp;&lt;SPAN style="white-space: pre; background-color: #f7f7f7;"&gt;&amp;amp; or quotation marks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 10:37:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/save-as-step-on-network-location/m-p/5726817#M57531</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2015-07-20T10:37:39Z</dc:date>
    </item>
  </channel>
</rss>

