30 Second Functions
When is it faster to write the function than to even find out how to do it in the help. Well ok, I did actually search and didn't find out how, but here is what would have been faster.
I use handwheels, I wanted an easy way to switch the z input from the footdisk to the right handwheel and back. There is probably a way to pass an argument into a macro but I couldn't find it so enter....
zhand.py
print 'z handwheel'The beauty of VrCfg is that it modifies the environment in real time just like calling any of the functions that would do the same thing via a dialog box.
VrCfg().SetHwLocZ (2)
Saying anything else would just not have a point, except, always be thinking of ways to extend the usefulness of existing processes.
No comments:
Post a Comment