Re-lock parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-15
11:10 PM
- last edited on
2023-05-24
11:40 AM
by
Rubia Torres
So, I have created a menu in the parameters list, but have locked them all. A boolean parameter allows the user to unlock these for editing.
My question: how do I automatically re-lock these parameters when the user exits the settings window?
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-16 03:20 AM
if GLOB_CONTEXT <> 5 then Boolean_parameter = 1 Parameters Boolean_parameter = Boolean_parameter endifThat way as soon as to close the object settings the lock parameter should get turned on again.
I haven't tested this but it might work.
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-16 03:42 AM
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-16 01:37 PM
If you use it in v19, Archicad will not benefit of predictive computation.
In v20 GLOB_CONTEXT used in parameters script or master script will have always the value 2.
https://www.archiradar.it/en/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-17 02:37 AM
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-18 09:56 PM
Cheers!
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-18 10:53 PM
Bruce wrote:If you use PARAMETERS command in master script it works as parameters script. It's not written, but I'm quite sure it's so.
Turns out it only affects the parameter script (as you mentioned). If I move the GLOB query into the Master Script, it should still work.
Cheers!
The master script to work fine must not have PARAMETERS command.
I'm sure 95 %
https://www.archiradar.it/en/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-19 12:56 AM
IF GLOB_CONTEXT <> 5 THEN Boolean_parameter = 1
In the parameter script I put:
PARAMETERS Boolean_parameter = Boolean_parameter
Seems to work just fine. Haven't tested it in v19 yet.
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-19 06:42 AM
Bruce wrote:It's not simple.....
In the master script I put:
IF GLOB_CONTEXT <> 5 THEN Boolean_parameter = 1
In the parameter script I put:
PARAMETERS Boolean_parameter = Boolean_parameter
Seems to work just fine. Haven't tested it in v19 yet.
The parameter Boolean_parameter in PARAMETERS script depend from a set in master script; it makes master script working as parameter script.
Let me know your try, It's a huge problem for many GDL developer.
https://www.archiradar.it/en/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-10-19 08:47 AM
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb