示例#1
0
        private static void Plan2MoveFb(string distVar)
        {
            try
            {
                if (!OpenRnPalette())
                {
                    return;
                }

                var      opts = Globs.TheRnOptions;
                Document doc  = Application.DocumentManager.MdiActiveDocument;

                using (DocumentLock m_doclock = doc.LockDocument())
                {
                    Engine _Engine = new Engine(opts);

                    string sDist = TheConfiguration.GetValueString(distVar);
                    double dist  = double.Parse(sDist, CultureInfo.InvariantCulture);

                    _Engine.MoveFbh(0.0, dist);
                }
            }
            catch (System.Exception ex)
            {
                Application.ShowAlertDialog(string.Format(CultureInfo.CurrentCulture, "Fehler in Plan2MoveFbhWithNumber aufgetreten! {0}", ex.Message));
            }
        }
示例#2
0
 public RnOptions()
 {
     try
     {
         this.Blockname = TheConfiguration.GetValueString("alx_V:ino_rbName");
     }
     catch (Exception)
     {
         this.Blockname = "?";
     }
     try
     {
         this.Attribname = TheConfiguration.GetValueString("alx_V:ino_rb_nummer_bez");
     }
     catch (Exception)
     {
         this.Attribname = "?";
     }
     try
     {
         this.FlaechenAttributName = TheConfiguration.GetValueString("alx_V:ino_flattrib");
     }
     catch (Exception)
     {
         this.FlaechenAttributName = "?";
     }
     try
     {
         this.UmfangAttributName = TheConfiguration.GetValueString("alx_V:ino_PeriAttrib");
     }
     catch (Exception)
     {
         this.UmfangAttributName = "?";
     }
     try
     {
         this.FlaechenGrenzeLayerName = TheConfiguration.GetValueString("alx_V:ino_fglayer");
     }
     catch (Exception)
     {
         this.FlaechenGrenzeLayerName = "?";
     }
     try
     {
         this.AbzFlaechenGrenzeLayerName = TheConfiguration.GetValueString("alx_V:ino_aflayer");
     }
     catch (Exception)
     {
         this.AbzFlaechenGrenzeLayerName = "?";
     }
     try
     {
         this.HBlockname = TheConfiguration.GetValueString("alx_V:ino_rb_HkBlockName");
     }
     catch (Exception)
     {
         this.Attribname = "?";
     }
 }
示例#3
0
        public Engine(RnOptions rnOptions)
        {
            this._RnOptions = rnOptions;
            Blockname       = rnOptions.Blockname;
            NrAttribname    = rnOptions.Attribname;
            HBlockname      = rnOptions.HBlockname;

            var sMaxDist = TheConfiguration.GetValueString(DIST_RB_TO_FB_KONFIG);

            _MaxDist = double.Parse(sMaxDist, CultureInfo.InvariantCulture);

            Database db = Application.DocumentManager.MdiActiveDocument.Database;

            _TransMan = db.TransactionManager;

            _AllRaumBlocks = SelectAllRaumblocks();
        }
示例#4
0
        public Options()
        {
            try
            {
                this._Blockname = TheConfiguration.GetValueString("alx_V:ino_rbName");
            }
            catch (Exception)
            {
                this._Blockname = "RAUMSTEMPEL_50";
            }

            try
            {
                this._LayerName = TheConfiguration.GetValueString("alx_V:ino_fglayer");
            }
            catch (Exception)
            {
                this._LayerName = "A_RA_NGFL_P";
            }
        }
示例#5
0
        public HoePrOptions()
        {
            try
            {
                this.HKBlockname = TheConfiguration.GetValueString("alx_V:ino_rb_HkBlockName");
            }
            catch (Exception)
            {
                this.HKBlockname = "HÖHENKOTE";
            }

            try
            {
                this.PolygonLayer = TheConfiguration.GetValueString("alx_V:ino_fglayer");
            }
            catch (Exception)
            {
                this.PolygonLayer = "A_RA_NGFL_P";
            }
        }