Beispiel #1
0
 private void DisplayGetEFData(EF_DXFDataInfo GetEFDXFData)
 {
     txtDXFStartPos.Text    = GetEFDXFData.StartPos.ToString();
     txtDXFEndPos.Text      = GetEFDXFData.EndPos.ToString();
     txtDXFPress80Pos.Text  = GetEFDXFData.CompressPos80.ToString();
     txtDXFPress100Pos.Text = GetEFDXFData.CompressPos100.ToString();
 }
Beispiel #2
0
        private void btDXFOpenA_Click(object sender, EventArgs e)
        {
            openFileDialog1.Filter = "CAD Files|*.dxf";
            openFileDialog1.Title  = "Select a CAD File";

            if (openFileDialog1.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            if (openFileDialog1.FileName != null)
            {
                LoadDXFFilesA         = openFileDialog1.FileName;
                DXFDatA.StartCalcFlag = true;
                if (DXFDatA.FCADImage != null)
                {
                    DXFDatA.FCADImage = null;
                }
                DXFDatA.FCADImage = new CADImage();
                DXFDatA.Base.X    = picDXFIndexA.Width / 2;
                DXFDatA.Base.Y    = picDXFIndexA.Width / 2;

                //FCADImage.Base.Y = Bottom - 400;
                //FCADImage.Base.X = 100;
                DXFDatA.FScale = 1.0f;
                DXFDatA.FCADImage.LoadFromFile(openFileDialog1.FileName);
                //DrawCADImage();
                Bitmap tmp = BlankA;
                //FCADImage.FScale = 4.0f;
                DrawDXFImageCalc(tmp.Width, tmp.Height, ref DXFDatA);
                DrawDXFImage2((Bitmap)tmp, ref DXFDatA);
                picDXFIndexA.Image = (Image)tmp.Clone();
                EF_DXFDataInfo GetEFDXFData = GetEF_DXFData(ref DXFDatA);
                DisplayGetEFData(GetEFDXFData);
            }
        }