License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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 27 INT (since 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