// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // // Creation Date: Mar. 14, 1997 // // Description: // Global function to make sure the options for reverse are set. // // Input Arguments: // Force the factory setting or not. // // Return Value: // None. // global proc reverseSetOptionVars( int $forceFactorySettings ) { // Keep Original option var. This corresponds to the // "-rpo/-replaceOriginal" flag for reverse commands. if ($forceFactorySettings || !`optionVar -exists reverseKeepOriginal`) { optionVar -intValue reverseKeepOriginal 0; } // -nc/-noChanges boolean if ($forceFactorySettings || !`optionVar -exists reverseChanges`) { optionVar -intValue reverseChanges 1; } // -d/-direction int // ----> can be 0|1|2|3 - for reverseSurface command only if ($forceFactorySettings || !`optionVar -exists reverseSurfaceDirection`) { optionVar -intValue reverseSurfaceDirection 0; } }