Exemplo n.º 1
0
        public static List <PGItem> GetPG(Document doc, AdditionalInfo addiInfo)
        {
            _doc           = doc;
            _addiInfo      = addiInfo;
            _myLevel       = MyLevel.GetMyLevel();
            _abandonWriter = AbandonmentWriter.GetWriter();
            _PGItems       = new List <PGItem>(4);

            _GypWalls     = new List <RichWall>(10);
            _GeneticWalls = new List <RichWall>(6);

            if (_addiInfo.requiredComp[(byte)PGComponents.GypWall] && _addiInfo.requiredComp[(byte)PGComponents.WallFinish])
            {
                _reportRule = ReportRule.Both;
            }
            else if (_addiInfo.requiredComp[(byte)PGComponents.GypWall])
            {
                _reportRule = ReportRule.Gyp;
            }
            else
            {
                _reportRule = ReportRule.Finish;
            }

            ExtractObjects();
            Process();
            return(_PGItems);
        }
Exemplo n.º 2
0
        public static List <PGItem> GetPG(Document doc, AdditionalInfo addiInfo)
        {
            _doc           = doc;
            _addiInfo      = addiInfo;
            _myLevel       = MyLevel.GetMyLevel();
            _abandonWriter = AbandonmentWriter.GetWriter();
            _PGItems       = new List <PGItem>(4);
            _Storefronts   = new List <Wall>(10);
            _isSetPGItem   = new bool[4];

            double Price         = addiInfo.prices[(byte)PGComponents.Storefront];
            bool   IfDefinePrice = Price == 0.0 ? false : true;

            string[]    temp_code = { "B2023.001", "B2023.002" };
            Direction[] temp_dire = { Direction.X, Direction.Y };
            for (int i = 0; i < 2; ++i)
            {
                for (int j = 0; j < 2; ++j)
                {
                    PGItem pgItem = new PGItem();
                    pgItem.Code          = temp_code[i];
                    pgItem.direction     = temp_dire[j];
                    pgItem.PGName        = "店面";
                    pgItem.PinYinSuffix  = "DianMian";
                    pgItem.IfDefinePrice = IfDefinePrice;
                    pgItem.Price         = Price;

                    _PGItems.Add(pgItem);
                }
            }

            ExtractObjects();
            Process();
            return(_PGItems);
        }
Exemplo n.º 3
0
 public AMEPEquip(Document doc, AdditionalInfo addiInfo)
 {
     _doc           = doc;
     _addiInfo      = addiInfo;
     _myLevel       = MyLevel.GetMyLevel();
     _abandonWriter = AbandonmentWriter.GetWriter();
     _PGItems       = null;
     _equips        = null;
     _mepRecog      = null;
 }
Exemplo n.º 4
0
 public static List <PGItem> GetPG(Document doc, AdditionalInfo addiInfo)
 {
     _doc           = doc;
     _addiInfo      = addiInfo;
     _myLevel       = MyLevel.GetMyLevel();
     _abandonWriter = AbandonmentWriter.GetWriter();
     _slabs         = new List <Floor>(20);
     _PGItems       = new List <PGItem>(10);
     ExtractObjects();
     Process();
     return(_PGItems);
 }
Exemplo n.º 5
0
 public static List <PGItem> GetPG(Document doc, AdditionalInfo addiInfo)
 {
     _doc           = doc;
     _addiInfo      = addiInfo;
     _myLevel       = MyLevel.GetMyLevel();
     _abandonWriter = AbandonmentWriter.GetWriter();
     _PGItems       = new List <PGItem>(1);
     _StruColumns   = new List <ElementId>(50);
     _StruBeams     = new List <ElementId>(150);
     ExtractObjects();
     Process();
     return(_PGItems);
 }
Exemplo n.º 6
0
        protected bool TryGetFIFloor(Document doc)
        {
            Level  level  = doc.GetElement(_fi.LevelId) as Level;
            double offset = _fi.get_Parameter(BuiltInParameter.INSTANCE_FREE_HOST_OFFSET_PARAM).AsDouble();
            bool   isFound;

            _floor = MyLevel.GetMyLevel().GetFloor(out isFound, level, offset);
            if (MyLevel.GetLevelNum() <= _floor)
            {
                AbandonmentWriter.GetWriter().WriteAbandonment(_fi, AbandonmentTable.LevelOutOfRoof);
                return(false);
            }
            else
            {
                return(true);
            }
        }