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
Hi,
You have to go to parameter script and use:

hideparameter "parameter_name"

You can also lock parameters, give them possible values.......
Erich
Booster
IF you want it dependent on another parameter then you want the following:
IF parameter1 THEN HIDEPARAMETER 'parameter2'
This says that if parameter1 is turned on, parameter2 is to be hidden. For this to work, parameter1 must be a boolean value.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
Thx but i am using a text code. I am making a desk and you can choose if you want a door or drawers in the desk. But if you choose door then all the parameters which include drawers must be disabled
Anonymous
Not applicable
also is there a possibility to limit material parameters
David Maudlin
Rockstar
jensvs:

You will want to use an If-Then command, for example:

If Door_Type="None" Then HideParameter "Door_Mat", "Trim_Mat"

You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
I have the parameters
Type_of_Desk choose between "Door" "Drawers"
But i have also a parameter Number_of_Drawer and Material_Drawers
and those parameters must be disabled when you choose "Door"

Can you please send me a script or something

I tried this in the parameter script
IF "Type_of_Desk" = "Door" THEN
HIDEPARAMETER "Number_of_Drawers"
HIDEPARAMETER "Material_Drawer"
ENDIF
Dave Seabury
Advocate
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
AC 19-26 Windows 10 64 bit, Dell Prercision 7820, Xeon Silver 2414R ( 12 Cores), 64 GB Ram, Quadro RTX 4000 8GB
Erich
Booster
jensvs wrote:
I tried this in the parameter script
IF "Type_of_Desk" = "Door" THEN
HIDEPARAMETER "Number_of_Drawers"
HIDEPARAMETER "Material_Drawer"
ENDIF
Given that your parameters are text (i.e. door or drawers) and not boolean, then what you show is fine, other than you have quotes around Type_of_Desk in your code.

You can even simplify this as follows:
IF Type_of_Desk = 'Door' THEN
  HIDEPARAMETER 'Number_of_Drawers', 'Material_Drawer'
ENDIF
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Barry Kelly
Moderator
Also note you wont see the parameters "hide' while you are editing the script.
The parameter list will remain unchanged - you can't tell what is hidden or not until you save the object and use it in Archicad.

A little trick I do though is to also 'LOCK' the parameters.
This you can see while you are editing the script - the locked parameters will turn grey in the parameter list.
IF Type_of_Desk = 'Door' THEN 
   LOCK 'Number_of_Drawers', 'Material_Drawer' 
   HIDEPARAMETER 'Number_of_Drawers', 'Material_Drawer' 
ENDIF
Barry.
One of the forum moderators.
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