cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
ReignBough
Enthusiast

Swap parameters

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

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!