TheSwamp

CAD Forums => CAD General => CAD Standards => Topic started by: ingenieur3d on January 28, 2021, 03:55:23 AM

Title: default value for .GetXXX methods. Best practice?
Post by: ingenieur3d on January 28, 2021, 03:55:23 AM
Hi!

What would be best practice for default values of command line .GetXXX methods? It appears that the native 'SETVAR' variables set the current value as default, and that is clean: the user that enters will stick to the current value, and also got a useful feedback. If one offers default values, is that to be always followed ? I haven't been able to confirm that this is *the* standard.

Would be curious for your experiences. Thank in advances!
Title: Re: default value for .GetXXX methods. Best practice?
Post by: ingenieur3d on January 29, 2021, 03:20:00 AM
I found a reference to this in the Autodesk help About Entering Commands in the Command Window: https://help.autodesk.com/view/CIV3D/2020/ENU/?guid=GUID-BB0C3E79-66AF-4557-9140-D31B4CF3C9CF (https://help.autodesk.com/view/CIV3D/2020/ENU/?guid=GUID-BB0C3E79-66AF-4557-9140-D31B4CF3C9CF)

It states:
"Sometimes the default option (including the current value) is displayed after the angle-bracketed options. [...] You can press Enter to retain the current setting. If you want to change the setting, type another number and press Enter."

I will follow this and return always current values in the default.