public override void OnActivate()
        {
            base.OnActivate();
            _fileDialog = new OpenFileDialog {
                Filter = @"*.step|*.step"
            };
            var result = _fileDialog.ShowDialog();

            if (result == DialogResult.Cancel)
            {
                BackToNeutralModifier();
                return;
            }
            SaveCommonCodes.LoadStepFile(_fileDialog.FileName, Document);
            UpdateView();
            RebuildTreeView();
            BackToNeutralModifier();
        }
Exemplo n.º 2
0
 public void ImportFromStep(string path)
 {
     SaveCommonCodes.LoadStepFile(path, Document);
 }