<?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: Getting BRepBody Appearence in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6281009#M20048</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the detailed explanation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The behaviors are expected. Components and Bodies&amp;nbsp;have their own appearances, what you see from the canvas is override effect, you don't explicitly set appearance to&amp;nbsp;the body, so the body's appearance will remain default.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2016 04:31:09 GMT</pubDate>
    <dc:creator>frankzhang</dc:creator>
    <dc:date>2016-04-20T04:31:09Z</dc:date>
    <item>
      <title>Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6275259#M20043</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the appearence that has been applied to a BRepBody object. how to get it when the appearence&amp;nbsp; source type is BodyAppearanceSource?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and what is the right way of getting the appearence of a BRepBody?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2016 13:36:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6275259#M20043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-17T13:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6275688#M20044</link>
      <description>BRepBody has an interface to get the appearance, you can simply call body.appearence() regardless of the source type.</description>
      <pubDate>Mon, 18 Apr 2016 04:17:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6275688#M20044</guid>
      <dc:creator>frankzhang</dc:creator>
      <dc:date>2016-04-18T04:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6276083#M20045</link>
      <description>&lt;P&gt;When i use body.appearence() some times i get the wrong appearence, not the one that is visible in the scene. for example when i apply it to the root component i get a different material than the one displayed.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:52:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6276083#M20045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-18T09:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6278217#M20046</link>
      <description>if you don't mind, could you please post the problematic code snippet here so that i can check what's going wrong?</description>
      <pubDate>Tue, 19 Apr 2016 01:52:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6278217#M20046</guid>
      <dc:creator>frankzhang</dc:creator>
      <dc:date>2016-04-19T01:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6280079#M20047</link>
      <description>&lt;P&gt;Here is samll thing of what i'm trying to do, i got the first BRebBody from the collection in the root component&lt;/P&gt;&lt;P&gt;then i get the appearnce using body-&amp;gt;appearance().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ptr&amp;lt;Component&amp;gt; rootComp = design-&amp;gt;rootComponent();&lt;BR /&gt;&amp;nbsp; Ptr&amp;lt;BRepBodies&amp;gt; bodies = rootComp-&amp;gt;bRepBodies();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; if (bodies-&amp;gt;count() == 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Ptr&amp;lt;BRepBody&amp;gt; body = bodies-&amp;gt;item(0);&lt;BR /&gt;&amp;nbsp; Ptr&amp;lt;Appearance&amp;gt; appearance = body-&amp;gt;appearance();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; std::stringstream msg;&lt;BR /&gt;&amp;nbsp; msg &amp;lt;&amp;lt; "Body: " &amp;lt;&amp;lt; body-&amp;gt;name() &amp;lt;&amp;lt; " - Appearance: " &amp;lt;&amp;lt; appearance-&amp;gt;name() &amp;lt;&amp;lt; "\n";&lt;BR /&gt;&amp;nbsp; ui-&amp;gt;messageBox(msg.str());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After testing i found out that using body-&amp;gt;appearance() returns the wrong one if:&lt;/P&gt;&lt;P&gt;1) The Appearance is applied to the Component not the BRepBody.&lt;/P&gt;&lt;P&gt;2) The Appearance is duplicated (in this case it returns either the original one or the duplicated one).&lt;/P&gt;&lt;P&gt;3) Some Designs i loaded from file (*.f3d) it didn't even get the name of the appearance correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image i provided show the code above running and getting the wrong appearance when i applied it to the root compoenent&lt;/P&gt;&lt;P&gt;the name of the appearance applied is Aluminum - Anodized Glossy (Blue) while the name i got was Steel - Satin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 18:33:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6280079#M20047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6281009#M20048</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the detailed explanation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The behaviors are expected. Components and Bodies&amp;nbsp;have their own appearances, what you see from the canvas is override effect, you don't explicitly set appearance to&amp;nbsp;the body, so the body's appearance will remain default.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 04:31:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6281009#M20048</guid>
      <dc:creator>frankzhang</dc:creator>
      <dc:date>2016-04-20T04:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6282542#M20049</link>
      <description>&lt;P&gt;So is there an easy way to get the appearance that is being displayed in the canvas?&lt;/P&gt;&lt;P&gt;If not what should i take into consideration when i'm trying to get it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 17:12:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6282542#M20049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-20T17:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6282690#M20050</link>
      <description>&lt;P&gt;I've identified a problem and will be filing a bug.&amp;nbsp; The Appearance property should be returning the appearance currently being used to display the body.&amp;nbsp; You should be aware that there can be face overrides so it's not necessarily the entire body that will be displayed with the appearance.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 18:26:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6282690#M20050</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-04-20T18:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting BRepBody Appearence</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6283432#M20051</link>
      <description>&lt;P&gt;Ok thanks for yor help.&lt;/P&gt;&lt;P&gt;I will take into consideration that there could be faces overrides while getting the appearence of the body.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 04:08:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/getting-brepbody-appearence/m-p/6283432#M20051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T04:08:18Z</dc:date>
    </item>
  </channel>
</rss>

