Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

How to hide parameters

Anonymous
Not applicable
Hey i am searching for a way to hide parameters. This is because i want to disable parameters if another parameter is on
can someone help
thx a lot
11 REPLIES 11
Anonymous
Not applicable
Dave wrote:
Jensvs

You jumped over Erich's Comment.....

This says that if parameter1 is turned on, parameter2 is to be hidden. For this to work, parameter1 must be a boolean value.

For your desk you need to create a Boolean value for the doors and or drawers. If the only two options are drawers or doors then try something like this (assuming you are using a VALUES script in the master script)

Parameters

desk_type Abc
desk_drawers Boolean
desk_doors Boolean

Master Script

dt_1 = "Doors"
dt_2 = "Drawers"

VALUES "desk_type" "Doors", "Drawers"

Parameters Script

IF desk_type = dt_1 THEN
PARAMETERS desk_doors = 1
PARAMETERS desk_drawers = 0
ENDIF

IF desk_type = dt_2 THEN
PARAMETERS desk_doors = 0
PARAMETERS desk_drawers = 1
ENDIF

Then you set up what parameters you want hidden or showing based on the values of desk_door and desk_drawers

IF desk_drawer = 1 THEN
HIDEPARAMETERS .................
ENDIF

Hope that helps.

David


Thx David
I have done what you said

But i have this code

IF Type_Drawer_Left = "Drawers" THEN
MATERIAL Material_Drawers_Left
IF Number_of_Drawers_Left = "1" THEN
BLOCK Width_Desk_Left, .015, Height_Desk-.105
ADDX (Width_Desk_Left/2)-.02
ADDZ .05
ROTX 90
MATERIAL Material_Handle
CYLIND .01, .004
ADDZ .01
ELBOW .02, 180, .004
DEL 1
ADDX .04
CYLIND .01, .004
ENDIF

and in the place of "Drawers" must be a number and i dont know what number
David Maudlin
Rockstar
Jens:

The code you posted should work, except you need another EndIf command as you have 2 If statements.

If you zip the object and attach it to your post, others will be able to look at the code without needing to guess at the parameters and other aspects of the object.

Thanks for adding the signature.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14