Example #1
0
        public void AddProjection()
        {
            if (IsProjectionAdded_)
            {
                return;
            }

            CatchExceptionsByMessageCenter(() => {
                IEnumerable <ProjectionInfo> projInfoList = GetProjectionInfoList();

                foreach (ProjectionInfo projInfo in projInfoList)
                {
                    BCOM.Level level = ElementHelper.GetOrCreateLevel(projInfo.LevelName);
                    FrameList.AddProjection(
                        projInfo.Element, projInfo.ProjectionName, level);
                }

                IsProjectionAdded_ = true;
            });
        }
Example #2
0
        private bool addToModel_(BCOM.ModelReference model = null)
        {
            model = model ?? App.ActiveModelReference;

            BCOM.Level level = ElementHelper.GetOrCreateLevel(LevelName);
            App.ActiveSettings.SetByLevel(level);

            BCOM.Element element;
            FrameList.GetElement(out element);

            if (element.ID != 0 && element.ModelReference == model)
            {
                return(true);
            }

            FrameList.AddToModel(model);
            FrameList.GetElement(out element);

            bool res = element.ID != 0;

            return(res);
        }
Example #3
0
        public void Initialize()
        {
            if (IsInitialized_)
            {
                return;
            }

            BCOM.Level level = ElementHelper.GetOrCreateLevel(LevelName);

            FrameList = new TFCOM.TFFrameListClass();

            IEnumerable <BCOM.Element> bodyElements = GetBodyElements();

            foreach (BCOM.Element element in bodyElements)
            {
                element.Level = level;
                ElementHelper.setSymbologyByLevel(element);
                FrameList.Add3DElement(element);
            }

            FrameList.SetName(CellName);

            IsInitialized_ = true;
        }