<?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 Rename Positional Representations in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-positional-representations/m-p/6995822#M101805</link>
    <description>&lt;P&gt;Is it possible to rename positional representations through the API? &amp;nbsp;I've tried setting the name as PosRep.name = "Test" but the method fails.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2017 21:38:44 GMT</pubDate>
    <dc:creator>Brett.G</dc:creator>
    <dc:date>2017-04-04T21:38:44Z</dc:date>
    <item>
      <title>Rename Positional Representations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-positional-representations/m-p/6995822#M101805</link>
      <description>&lt;P&gt;Is it possible to rename positional representations through the API? &amp;nbsp;I've tried setting the name as PosRep.name = "Test" but the method fails.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 21:38:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-positional-representations/m-p/6995822#M101805</guid>
      <dc:creator>Brett.G</dc:creator>
      <dc:date>2017-04-04T21:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Positional Representations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-positional-representations/m-p/6996376#M101806</link>
      <description>&lt;P&gt;Something like this? Remember, you can't rename the "Main" representation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDoc As Inventor.Document = ThisApplication.ActiveDocument
Dim oCD As ComponentDefinition = oDoc.ComponentDefinition
Dim oPR As PositionalRepresentation = oCD.RepresentationsManager.PositionalRepresentations("&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;OldName&lt;/STRONG&gt;&lt;/FONT&gt;")
oPR.Name = "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;NewName&lt;/STRONG&gt;&lt;/FONT&gt;"&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Apr 2017 05:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-positional-representations/m-p/6996376#M101806</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-04-05T05:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Positional Representations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/rename-positional-representations/m-p/6997201#M101807</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thanks for the reply, what you wrote out is essentially what I was doing in my code. &amp;nbsp;My issue was that I was trying to rename a positional representation with a name that was already in use. Oops! &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 13:08:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/rename-positional-representations/m-p/6997201#M101807</guid>
      <dc:creator>Brett.G</dc:creator>
      <dc:date>2017-04-05T13:08:39Z</dc:date>
    </item>
  </channel>
</rss>

