コード例 #1
0
ファイル: EntityTree.xaml.cs プロジェクト: masixian/revit-ifc
 /// <summary>
 /// Constructor for initializing EntityTree
 /// </summary>
 /// <param name="ifcVersion">the selected IFC version. This will "lock" the schema version in the dialog</param>
 /// <param name="excludeFilter">the initial list of the excluded entities. Can be used to initialize the setting</param>
 /// <param name="singleNodeSelection">true if the tree is used for a single node selection</param>
 /// <param name="showTypeNodeOnly">option to show IfcTypeObject tree only</param>
 /// <param name="preSelectItem">preselect an item (works for a single node selection only)</param>
 /// <param name="preSelectPdef">pre-select the predefined type</param>
 public EntityTree(IFCVersion ifcVersion, string excludeFilter, string desc, bool singleNodeSelection = false, bool showTypeNodeOnly = false, string preSelectEntity = null, string preSelectPdef = null)
 {
     m_IfcVersion          = IfcSchemaEntityTree.SchemaName(ifcVersion);
     ExclElementSet        = FillSetFromList(excludeFilter);
     m_SingleNodeSelection = singleNodeSelection;
     TreeSelectionDesc     = desc;
     m_ShowTypeNodeOnly    = showTypeNodeOnly;
     InitializeEntityTree(preSelectEntity, preSelectPdef);
 }
コード例 #2
0
        /// <summary>
        /// Initialization for the class for PredefinedType selection
        /// </summary>
        /// <param name="ifcVersion">the IFC version selected. If it is specific, it will be locked</param>
        /// <param name="ifcEntitySelected">the ifc entity to find the predefinedtype</param>
        public PredefinedTypeSelection(IFCVersion ifcVersion, string ifcEntitySelected)
        {
            string ifcSchema = IfcSchemaEntityTree.SchemaName(ifcVersion);

            InitializePreDefinedTypeSelection(ifcSchema, ifcEntitySelected);
        }