Example #1
0
        /// <summary>
        /// Unset Kompas 3D object from controller
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CloseCompas3D(object sender, EventArgs e)
        {
            if (!LoadKompas3D.Enabled)
            {
                _kompasApp.DestructApp();

                SetAllInputsEnabledState(false);

                RunButton.Enabled = false;

                LoadKompas3D.Enabled  = true;
                CloseKompas3D.Enabled = false;
            }
        }
Example #2
0
        public void TestDestructKompasApplication()
        {
            var parameters = new List <double>()
            {
                85, 75, 125, 375, 50, 60
            };
            var app = new KompasApplication();

            app.Parameters = parameters;

            app.CreateDocument3D();

            app.DestructApp();
        }
        public void TestDestructKompasApplication()
        {
            var parameters = new List <double>()
            {
                27, 5, 25, 64, 10, 5
            };
            var app = new KompasApplication
            {
                Parameters = parameters
            };

            app.CreateDocument3D();

            app.DestructApp();
        }