예제 #1
0
        private static IConfiguration GetConfiguration(SwComponent comp)
        {
            var doc = comp.ReferencedDocument;

            if (doc.IsCommitted)
            {
                return((IConfiguration)doc.Model.GetConfigurationByName(comp.Component.ReferencedConfiguration));
            }
            else
            {
                return(null);
            }
        }
예제 #2
0
 internal SwComponentConfiguration(SwComponent comp, ISwApplication app)
     : this(GetConfiguration(comp), (SwDocument3D)comp.ReferencedDocument, app, comp.Component.ReferencedConfiguration)
 {
     m_Comp = comp;
 }