// =========================================================================== // 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: April 21 1997 // // Description: // Global function to ensure the options for projectCurve are set. // // Input Arguments: // Force the factory setting or not. // // Return Value: // None. // global proc projectCurveSetOptionVars( int $forceFactorySettings ) // // Description : // projectCurve option default setting. // { if ($forceFactorySettings || !`optionVar -exists projectCurveAlongDirection`) { // along active view by default. optionVar -intValue projectCurveAlongDirection 0; } if ($forceFactorySettings || !`optionVar -exists projectCurveRangePartial`){ optionVar -intValue projectCurveRangePartial 0; } // Global or local tolerance. // if( $forceFactorySettings || !`optionVar -exists projectCurveUseGlobalTol` ){ optionVar -intValue projectCurveUseGlobalTol false; } // Tolerance. // if ($forceFactorySettings || !`optionVar -exists projectCurveTolerance`) { optionVar -floatValue projectCurveTolerance 0.01; } }