private static IConfiguration GetConfiguration(SwComponent comp) { var doc = comp.ReferencedDocument; if (doc.IsCommitted) { return((IConfiguration)doc.Model.GetConfigurationByName(comp.Component.ReferencedConfiguration)); } else { return(null); } }
internal SwComponentConfiguration(SwComponent comp, ISwApplication app) : this(GetConfiguration(comp), (SwDocument3D)comp.ReferencedDocument, app, comp.Component.ReferencedConfiguration) { m_Comp = comp; }