1 Reply Latest reply on Feb 4, 2014 6:02 AM by Tamer El Bakkali

    GetRenderMaterial of an Assembly returns Nothing !

    Tamer El Bakkali

      Hi,

      I'm try to get the render material list of an assembly document. The API propose those methods:

       

      IComponent2 Interface : GetRenderMaterials Method (IComponent2)

      IModelDocExtension Interface : GetRenderMaterials Method (IModelDocExtension)

       

      The first one get the list of appearances of a component in the assembly, it works well!

      In my case, I need to get a list of appearances of the assembly document, but when I apply the second method, I get Nothing!

       

      I notice that the second method works well with a part document.

       

      Is it normal? or it's a solidWorks API bug ?

       

      Thanks,

      T.

        • Re: GetRenderMaterial of an Assembly returns Nothing !
          Tamer El Bakkali

          Well, this is a bug! I found those 2 SPRs :

           

           

           

          SPR #

           

          Customer Description

           

          Customer Status

           

          Customer Comments

           

          Version

           

          Keyword

           

          Customer Impact

           

          Target Fix Date

           

          Enhancement

           

          677240

          IComponent2::GetRenderMaterials bug? ("Component2::GetRenderMaterials produces inconsistent/duplicate results")

          Open

           

          none none

          API Color/Appearances

          Medium

           

          No

           

           

          SPR #

           

          Customer Description

           

          Customer Status

           

          Customer Comments

           

          Version

           

          Keyword

           

          Customer Impact

           

          Target Fix Date

           

          Enhancement

           

          685254

          Cannot detect appearance of parts or assemblies

          Open

           

          none none

          API Macro

          Medium

           

          No