Ejemplo n.º 1
0
        private void StartPowerShape()
        {
            if (_powerShape == null)
            {
                _powerShape = new PSAutomation(InstanceReuse.UseExistingInstance);
            }

            _powerShape.Reset();

            _powerShape.FormUpdateOff();
            _powerShape.RefreshOff();
            _powerShape.DialogsOff();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            powerSHAPE = new PSAutomation(Autodesk.ProductInterface.InstanceReuse.CreateNewInstance);
            powerSHAPE.Reset();

            //Creating and selecting model
            psModel = powerSHAPE.Models.CreateEmptyModel();

            //Turning off messages
            powerSHAPE.FormUpdateOff();
            powerSHAPE.RefreshOff();
            powerSHAPE.DialogsOff();

            // Building model
            BuildingBasis();
            BuildingCylinder();
            CuttingCirclesInBase();
            BuildingSidebars();

            // Ending execution
            ClosingSafely();
        }