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

Swap parameters

ReignBough
Enthusiast
I am creating an object that has a portrait/landscape parameter. When one of these is selected, the corresponding width and height should also change accordingly. Any idea how to do this?

I am using the basic swap:
IF GLOB_MODPAR_NAME = 'param_or' THEN
  tmp = param_wd
  PARAMETERS param_wd = param_ht
  PARAMETERS param_ht = tmp
ENDIF
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
1 REPLY 1
Anonymous
Not applicable
Hello,

I do not know if this serves....depends on
how you want it work;

!--master or value script
if param_or= 'Landscape' then
   xx= a
   yy= b
endif
if param_or= 'Portrait' then
   xx= b
   yy= a
endif

parameters param_wd=xx, param_ht=yy