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

Profile Request in AC21

Anonymous
Not applicable
Hi,
I have a problem with passing sizes of profile to other parameters:

!(1)
n = REQUEST ("Name_of_Profile", profil, profil_name)

!(2)
dim bbox[4]
n = REQUEST ("Profile_default_boundingbox", profil, bbox[1], bbox[2], bbox[3], bbox[4])

!(3)
w=  bbox[3]-bbox[1]
h=  bbox[4]-bbox[2]

!(4)
parameters width=w
parameters height=h


!--- preview
t=''
t= t+str(w, 4, 2)+'\n'
t= t+str(h, 4, 2)+'\n'
TEXT2   0,
      0,
      t
(1) Reads name of profile
(2) fillup array bbox with coords of boundary box
(3) calculate w-width and h-height of boundary box
(4) pass variables to parameters "width" and "height"

Problem is parameters "width" and "height" show zeros!!
From Reference I know that
The use of most requests in parameter scripts (or master scripts run as parameter script) can result in unstable returned values, therefore should be avoided.

script is placed in MasterScript
Any ideas?
Thanks
Greg
1 REPLY 1
DGSketcher
Legend
I have exactly the same problem, did you find a fix?
Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)