<?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: How can i set the apperance of a part-Vb.net in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-set-the-apperance-of-a-part-vb-net/m-p/12483644#M162197</link>
    <description>&lt;P&gt;I had already done that but i realized i was passing it the old CC part doc rather than the one i copyed&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 15:23:57 GMT</pubDate>
    <dc:creator>davidt162003</dc:creator>
    <dc:date>2024-01-08T15:23:57Z</dc:date>
    <item>
      <title>How can i set the apperance of a part-Vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-set-the-apperance-of-a-part-vb-net/m-p/12476623#M162111</link>
      <description>&lt;P&gt;im Trying to set the appearance of a surface body from the content center to the default but i cant seem to find the asset.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;    Friend Sub ChangeBodyApperance(Body As SurfaceBody, PartDoc As PartDocument)
        Dim AssetLst = PartDoc.Assets
        Dim CurrentAsset = Body.Appearance
        ' MsgBox(CurrentAsset.Name)
        Dim DefaultAsset As Asset
        Try
            DefaultAsset = AssetLst("Default")
        Catch ex As Exception
            Dim _App As Inventor.Application = Body.Application
            Dim AssetLib = _App.AssetLibraries("Autodesk Appearance Library")
            Dim LibDefault = AssetLib.AppearanceAssets("Default")
            DefaultAsset = LibDefault.CopyTo(PartDoc, True) 'throws a error here 
        End Try


        If CurrentAsset.Name &amp;lt;&amp;gt; DefaultAsset.Name Then
            Body.Appearance = DefaultAsset
        End If
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 14:20:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-set-the-apperance-of-a-part-vb-net/m-p/12476623#M162111</guid>
      <dc:creator>davidt162003</dc:creator>
      <dc:date>2024-01-04T14:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can i set the apperance of a part-Vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-set-the-apperance-of-a-part-vb-net/m-p/12476687#M162114</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14685386"&gt;@davidt162003&lt;/a&gt;.&amp;nbsp; Content Center files are usually ReadOnly.&amp;nbsp; That is likely why it is throwing an error when you try to copy an Appearance asset from the appearance library down into that document.&amp;nbsp; That is just the nature of Content Center generated models.&amp;nbsp; But you may be able to copy that model file out of the Content Center storage area (which is seen as a Library), and put it out in your regular model file area, then change a couple things to dis-associate it from the Content Center.&amp;nbsp; Then you may be able to add another appearance to the document and use that to change the appearance of the model.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 14:44:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-set-the-apperance-of-a-part-vb-net/m-p/12476687#M162114</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-01-04T14:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can i set the apperance of a part-Vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-set-the-apperance-of-a-part-vb-net/m-p/12483644#M162197</link>
      <description>&lt;P&gt;I had already done that but i realized i was passing it the old CC part doc rather than the one i copyed&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 15:23:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-set-the-apperance-of-a-part-vb-net/m-p/12483644#M162197</guid>
      <dc:creator>davidt162003</dc:creator>
      <dc:date>2024-01-08T15:23:57Z</dc:date>
    </item>
  </channel>
</rss>

