Beispiel #1
0
        private void openIGESToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();

            dlg.Filter = "IGES File(*.iges;*.igs)|*.iges;*.igs";

            if (DialogResult.OK == dlg.ShowDialog())
            {
                CADBrower browser = new CADBrower(dlg.SafeFileName, this.treeViewStp, this.renderView);
                AnyCAD.Exchange.IgesReader reader = new AnyCAD.Exchange.IgesReader();
                reader.Read(dlg.FileName, browser);
            }

            renderView.View3d.FitAll();
        }
Beispiel #2
0
        private void openIGESToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();
            dlg.Filter = "IGES File(*.iges;*.igs)|*.igs;*.igesp|All Files(*.*)|*.*";

            if (DialogResult.OK == dlg.ShowDialog())
            {
                this.treeViewStp.Nodes.Clear();
                this.renderView.ClearScene();

                CADBrower browser = new CADBrower(this.treeViewStp, this.renderView);
                AnyCAD.Exchange.IgesReader reader = new AnyCAD.Exchange.IgesReader();
                reader.Read(dlg.FileName, browser);
            }

            renderView.View3d.FitAll();
        }
Beispiel #3
0
        private void openIGESToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();

            dlg.Filter = "STEP File(*.stp;*.step)|*.stp;*.step|All Files(*.*)|*.*";

            if (DialogResult.OK == dlg.ShowDialog())
            {
                this.treeViewStp.Nodes.Clear();
                this.renderView.ClearScene();

                CADBrower browser = new CADBrower(this.treeViewStp, this.renderView);
                AnyCAD.Exchange.IgesReader reader = new AnyCAD.Exchange.IgesReader();
                reader.Read(dlg.FileName, browser);
            }

            renderView.View3d.FitAll();
        }