Author Topic: default value for .GetXXX methods. Best practice?  (Read 311 times)

0 Members and 1 Guest are viewing this topic.

ingenieur3d

  • Mosquito
  • Posts: 9
default value for .GetXXX methods. Best practice?
« 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!

ingenieur3d

  • Mosquito
  • Posts: 9
Re: default value for .GetXXX methods. Best practice?
« Reply #1 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

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.