<?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: Set Appearance for New part in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7402408#M75186</link>
    <description>&lt;P&gt;Again, searching for help is step 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-7AF9FEE7-D326-49C8-87CC-D5498EA49194" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-7AF9FEE7-D326-49C8-87CC-D5498EA49194&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As SHOWN in the link (ie; ONLINE HELP), the ActiveAppearance property is of the ASSET type, not a STRING like you are attempting. If you read further into the asset object type, or even through the parents of appearance/asset, you should be able to find out how to access the appearance asset by name (even it it means iterating through a large collection and checking for an equality based off of a name property or something similar).&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 18:08:45 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2017-09-22T18:08:45Z</dc:date>
    <item>
      <title>Set Appearance for New part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7401785#M75180</link>
      <description>&lt;P&gt;What is the coding for setting the appearance of the current part document? I have a userform where the user will select the appearance from a combobox. Having troubles understanding how to apply it once the user makes a selection.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 14:39:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7401785#M75180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-22T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Appearance for New part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7401844#M75181</link>
      <description>&lt;P&gt;Searching existing documentation is a pretty good start...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Inventor-Help/files/GUID-8CAEA21E-A604-4D0A-8F06-3FA5B693CE6B-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Inventor-Help/files/GUID-8CAEA21E-A604-4D0A-8F06-3FA5B693CE6B-htm.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 14:58:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7401844#M75181</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-09-22T14:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Appearance for New part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7402237#M75185</link>
      <description>&lt;P&gt;Thanks for the info but I need this in VBA format. I was thinking it would be easy as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sub main()&lt;/P&gt;&lt;P&gt;Dim oPDoc as PartDocument&lt;/P&gt;&lt;P&gt;Set&amp;nbsp;oPDoc = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;oPDoc.ActiveAppearance = "My Appearance" 'this is where I need help. how do you set the appearance using the name?&lt;/P&gt;&lt;P&gt;End sub&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the syntax I know is wrong for setting the appearance. What is the correct syntax? (assuming appearance exists and does not need to be created, although that bit of code would be nice too)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 17:03:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7402237#M75185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-22T17:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Appearance for New part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7402408#M75186</link>
      <description>&lt;P&gt;Again, searching for help is step 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-7AF9FEE7-D326-49C8-87CC-D5498EA49194" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-7AF9FEE7-D326-49C8-87CC-D5498EA49194&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As SHOWN in the link (ie; ONLINE HELP), the ActiveAppearance property is of the ASSET type, not a STRING like you are attempting. If you read further into the asset object type, or even through the parents of appearance/asset, you should be able to find out how to access the appearance asset by name (even it it means iterating through a large collection and checking for an equality based off of a name property or something similar).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 18:08:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/set-appearance-for-new-part/m-p/7402408#M75186</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-09-22T18:08:45Z</dc:date>
    </item>
  </channel>
</rss>

