/// <summary> /// constructor of SelectionManager /// </summary> /// <param name="commandData"></param> public SelectionManager(ExternalCommandData commandData) { m_commandData = commandData; m_application = m_commandData.Application; m_document = m_application.ActiveUIDocument; if (m_document.Document.IsFamilyDocument) { m_CreationBase = m_document.Document.FamilyCreate; } else { m_CreationBase = m_document.Document.Create; } }
/// <summary> /// constructor of SelectionManager /// </summary> /// <param name="commandData"></param> public SelectionManager(ExternalCommandData commandData) { m_commandData = commandData; m_application = m_commandData.Application; m_document = m_application.ActiveUIDocument; if (m_document.Document.IsFamilyDocument) { m_CreationBase = m_document.Document.FamilyCreate; } else { m_CreationBase = m_document.Document.Create; } }