Пример #1
0
        private static IntPtr[] CreateChildDialog()
        {
            try
            {
                GUI = new SynthesisGUI(StandardAddInServer.Instance.MainApplication)// pass the main application to the GUI so classes RobotExporter can access Inventor to read the joints
                {
                    Opacity = 0.00d
                };
                GUI.Show();
                GUI.Hide();
                GUI.Opacity = 1.00d;

                return(new IntPtr[] { GUI.JointPaneForm.Handle });
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
                throw;
            }
        }
Пример #2
0
        private static IntPtr[] CreateChildDialog()
        {
            try
            {
                GUI = new SynthesisGUI()
                {
                    Opacity = 0.00d
                };
                GUI.Show();
                GUI.Hide();
                GUI.Opacity = 1.00d;

                return(new IntPtr[] { GUI.JointPaneForm.Handle, GUI.BXDAViewerPaneForm.Handle });
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
                throw;
            }
        }