<?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: in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757323#M175210</link>
    <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;You could use the replace method - but you'll lose &lt;BR /&gt;
any adaptivity in the part - also, if you do decide to use the apprentice server &lt;BR /&gt;
- be careful with derived parts - it doesn;t appear you can change the reference &lt;BR /&gt;
of the base part within the derived part...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"rwollen" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:rwollen@dewengineering.com"&amp;gt;rwollen@dewengineering.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f093e2b.1@WebX.maYIadrTaRb"&amp;gt;news:f093e2b.1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Hi &lt;BR /&gt;
  All. &lt;BR /&gt;
  &lt;P&gt;Changing file names from Apprentice is pretty cool, but is the same &lt;BR /&gt;
  function available from within Inventor, from an assembly file say. &lt;BR /&gt;
  PutLogicalFilename...seems to be avalable from Apprentice only. If renaming an &lt;BR /&gt;
  '.ipt' file from within an assembly can be done, would someone have a piece of &lt;BR /&gt;
  sample code, similar to the Apprentice version posted by M&amp;amp;X? &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Thanks &lt;BR /&gt;Rwollen&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 15 Nov 2001 05:47:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-11-15T05:47:48Z</dc:date>
    <item>
      <title>Changing the name of an ipt</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757319#M175206</link>
      <description>Hi everyone! I was wondering if anyone can help me out. I have a part named&lt;BR /&gt;
Part1.ipt, Part1.idw has views created from Part1.ipt. What I would like to&lt;BR /&gt;
do using Visual Basic is rename Part1.ipt to Part1_RevA.ipt (Done), and then&lt;BR /&gt;
I would like to change Part1.idw so it references Part1_RevA.ipt instead of&lt;BR /&gt;
Part1.ipt. I'm trying to do this all through the Aprentice. Is this even&lt;BR /&gt;
possible? Thank you for your help.&lt;BR /&gt;
&lt;BR /&gt;
-Chuck Elliott&lt;BR /&gt;
-Technical Consultant / VB Programmer&lt;BR /&gt;
-MGB Systems, Inc.</description>
      <pubDate>Tue, 06 Nov 2001 11:46:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757319#M175206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-11-06T11:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the name of an ipt</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757320#M175207</link>
      <description>Yes it is possible, and rather simple.&lt;BR /&gt;
&lt;BR /&gt;
You have to use the PutLogicalFileNameUsingFull method.&lt;BR /&gt;
&lt;BR /&gt;
Here is an example (oDoc is your idw):&lt;BR /&gt;
&lt;BR /&gt;
    Dim oRefFileDescs As InventorApprentice.ReferencedFileDescriptors&lt;BR /&gt;
    Dim oRefFileDesc As InventorApprentice.ReferencedFileDescriptor&lt;BR /&gt;
    Set oRefFileDescs = oDoc.ReferencedFileDescriptors&lt;BR /&gt;
&lt;BR /&gt;
    'Check there's something&lt;BR /&gt;
    If Not oRefFileDescs Is Nothing Then&lt;BR /&gt;
        If oRefFileDescs.Count &amp;gt; 0 Then&lt;BR /&gt;
            ' Iterate through the references looking for a&lt;BR /&gt;
            ' reference to a specific file.&lt;BR /&gt;
            For Each oRefFileDesc In oRefFileDescs&lt;BR /&gt;
                If LCase(oRefFileDesc.FullFileName) =&lt;BR /&gt;
LCase(sOldIptFullFileName) Then&lt;BR /&gt;
                    ' Replace the reference.&lt;BR /&gt;
                    Call&lt;BR /&gt;
oRefFileDesc.PutLogicalFileNameUsingFull(sNewIptFullFileName)&lt;BR /&gt;
                    Exit For&lt;BR /&gt;
                End If&lt;BR /&gt;
            Next&lt;BR /&gt;
        End If&lt;BR /&gt;
    End If&lt;BR /&gt;
&lt;BR /&gt;
If you know that you have only one referenced file (your Ipt), you could&lt;BR /&gt;
probably avoid steping through all the ReferencedFileDescriptors, just set&lt;BR /&gt;
oRefFileDesc = oDoc.ReferencedFileDescriptors(1)&lt;BR /&gt;
&lt;BR /&gt;
Enjoy!&lt;BR /&gt;
&lt;BR /&gt;
M (from M &amp;amp; X)&lt;BR /&gt;
&lt;BR /&gt;
"Chuck Elliott" &lt;CHUCK.ELLIOTT&gt; a écrit dans le message news:&lt;BR /&gt;
EAD094579E521DBEC3F430EAF36566C8@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi everyone! I was wondering if anyone can help me out. I have a part&lt;BR /&gt;
named&lt;BR /&gt;
&amp;gt; Part1.ipt, Part1.idw has views created from Part1.ipt. What I would like&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; do using Visual Basic is rename Part1.ipt to Part1_RevA.ipt (Done), and&lt;BR /&gt;
then&lt;BR /&gt;
&amp;gt; I would like to change Part1.idw so it references Part1_RevA.ipt instead&lt;BR /&gt;
of&lt;BR /&gt;
&amp;gt; Part1.ipt. I'm trying to do this all through the Aprentice. Is this even&lt;BR /&gt;
&amp;gt; possible? Thank you for your help.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -Chuck Elliott&lt;BR /&gt;
&amp;gt; -Technical Consultant / VB Programmer&lt;BR /&gt;
&amp;gt; -MGB Systems, Inc.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/CHUCK.ELLIOTT&gt;</description>
      <pubDate>Tue, 06 Nov 2001 14:07:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757320#M175207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-11-06T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757321#M175208</link>
      <description>Hi All.&lt;BR /&gt;
&lt;BR /&gt;
Changing file names from Apprentice is pretty cool, but is the same function available from within Inventor, from an assembly file say. PutLogicalFilename...seems to be avalable from Apprentice only. If renaming an '.ipt' file from within an assembly can be done, would someone have a piece of sample code, similar to the Apprentice version posted by M&amp;amp;X?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Rwollen</description>
      <pubDate>Tue, 13 Nov 2001 20:51:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757321#M175208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-11-13T20:51:10Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757322#M175209</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;No it is not available in the Inventor &lt;BR /&gt;
Object.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;If you look at the Inventor Programming Help, in &lt;BR /&gt;
Apprentice Server, you will find the following stated:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;There are a few things that can only be done using Apprentice. These are &lt;BR /&gt;
all things that cause problems when the file is open in Inventor but can be &lt;BR /&gt;
easily accomplished when accessed through Apprentice. One of the most important &lt;BR /&gt;
of these is the ability to change file references. This is a critical part of &lt;BR /&gt;
Apprentice&amp;nbsp;that Design Assistant uses. For example, let's say you have an &lt;BR /&gt;
assembly that contains Part1 and Part2. Part1 needs to be revised so you make a &lt;BR /&gt;
copy of the file, give it a new name, make the changes to the part, and save it. &lt;BR /&gt;
When you open the assembly it's still referencing the old file. The file &lt;BR /&gt;
reference portion of the API allows you to change the reference within the &lt;BR /&gt;
assembly so that it's pointing to the file that represents the revised version &lt;BR /&gt;
of Part1.&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;That's all I can tell you, but I hope this answers &lt;BR /&gt;
your question.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;M from M&amp;amp;X&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"rwollen" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:rwollen@dewengineering.com"&amp;gt;rwollen@dewengineering.com&lt;/A&gt;&amp;gt; a &lt;BR /&gt;
  écrit dans le message news: &lt;A&gt;&lt;BR /&gt;
  href="mailto:f093e2b.1@WebX.maYIadrTaRb"&amp;gt;f093e2b.1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Hi &lt;BR /&gt;
  All. &lt;BR /&gt;
  &lt;P&gt;Changing file names from Apprentice is pretty cool, but is the same &lt;BR /&gt;
  function available from within Inventor, from an assembly file say. &lt;BR /&gt;
  PutLogicalFilename...seems to be avalable from Apprentice only. If renaming an &lt;BR /&gt;
  '.ipt' file from within an assembly can be done, would someone have a piece of &lt;BR /&gt;
  sample code, similar to the Apprentice version posted by M&amp;amp;X? &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Thanks &lt;BR /&gt;Rwollen&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 14 Nov 2001 08:10:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757322#M175209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-11-14T08:10:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757323#M175210</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;You could use the replace method - but you'll lose &lt;BR /&gt;
any adaptivity in the part - also, if you do decide to use the apprentice server &lt;BR /&gt;
- be careful with derived parts - it doesn;t appear you can change the reference &lt;BR /&gt;
of the base part within the derived part...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"rwollen" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:rwollen@dewengineering.com"&amp;gt;rwollen@dewengineering.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f093e2b.1@WebX.maYIadrTaRb"&amp;gt;news:f093e2b.1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Hi &lt;BR /&gt;
  All. &lt;BR /&gt;
  &lt;P&gt;Changing file names from Apprentice is pretty cool, but is the same &lt;BR /&gt;
  function available from within Inventor, from an assembly file say. &lt;BR /&gt;
  PutLogicalFilename...seems to be avalable from Apprentice only. If renaming an &lt;BR /&gt;
  '.ipt' file from within an assembly can be done, would someone have a piece of &lt;BR /&gt;
  sample code, similar to the Apprentice version posted by M&amp;amp;X? &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;Thanks &lt;BR /&gt;Rwollen&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 15 Nov 2001 05:47:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/changing-the-name-of-an-ipt/m-p/757323#M175210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-11-15T05:47:48Z</dc:date>
    </item>
  </channel>
</rss>

