Reply To: GLOB_​​​ changes

Home Forums Problems and solutions in GDL Others GLOB_​ changes Reply To: GLOB_​​ changes

#2159
Bruce Walker
Participant

Sure: I have developed (beta version anyway) a reasonably complex part that derives its geometry from a set of base parameters. For the most part, these parameters should not have to be, and should not be, altered. But there is the outside possibility that editing would be required.

I dealt with this by locking the parameters, but giving the user the option of unlocking them for editing – a prompt, if you will, that what they were about to do should be done sparingly.

To ensure this ‘safety’ mechanism functioned properly, I re-locked the parameters when the user closed the parameters dialog. This was done by testing the global context. If it wasn’t the parameters dialog, then the parameters got locked.

Attached is a screenshot.

Cheers.

www.brucepwalker.com
https://www.mindmeister.com/65450406

AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb