private void StartPowerShape() { if (_powerShape == null) { _powerShape = new PSAutomation(InstanceReuse.UseExistingInstance); } _powerShape.Reset(); _powerShape.FormUpdateOff(); _powerShape.RefreshOff(); _powerShape.DialogsOff(); }
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(); }