3 Replies Latest reply on Jun 18, 2014 4:11 PM by Patrick O'Hern

    Difference between Active Configuration and Referenced Configuration

    Drew Adams

      Hi Everyone,

       

      I was wondering if any of you would be kind enough to explain to me the difference between iModelDoc2.GetActiveConfiguration and iComponent2.referenced configuration.   I discovered for a macro I'm writing, that I needed to use the latter for it to work correctly, and GetActiveConfiguration was giving me the incorrect config/custom properties that i was trying to pull.   What is the practical difference between the two, and how can you tell what the "Active Configuration" will be predictably?  Or is it better practice to use the component?

       

      Thanks in advance!

       

      -Drew

        • Re: Difference between Active Configuration and Referenced Configuration
          Patrick O'Hern

          The active configuration is whichever config is currently being displayed if the part is open or whichever was displayed when it was saved if it is not open.  Unless you specifically tell the macro which configuration to display, you have no way of predicting what configuration this will be.

           

          The iComponent2::ReferencedConfiguration is whichever configuration is specified to be used in the assembly for that particular component.

           

           

          I'm not sure what your macro is trying to accomplish, but my guess is that "ReferencedConfiguration" will give you better results.