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

Custom parameter values in preview and position field

Anonymous
Not applicable
Does anybody know if there is a way so that Your custom parameter values (height and width) will be the same as in the preview and position Field?
2 REPLIES 2
Barry Kelly
Moderator
If I am understanding your problem correctly you could alter your scripts to used the "A" & "B" parameters instead of your custom height and width.
This way a user can alter them directly from the info box rather than opening the settings.

Or on the parameter script you will need ...

A=custom_width
B=custom_height
PARAMETERS A=A, B=B
LOCK "A", "B"

You will need to lock A & B so the users don't think they can use them to alter the sizes.
If you don't lock them then you will also need to add in your script that whenever they are altered then your custom parameters get altered as well.

i.e.
if GLOB_MODAR_NAME = "A" then
custom_width=A
PARAMETERS custom_width=custom_width
endif

if GLOB_MODAR_NAME = "B" then
custom_height=B
PARAMETERS custom_height=custom_height
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
Anonymous
Not applicable
You are truly a genius Barry. Thank you!
The reason i needed this, is for bimx. It looks to me that bimx reeds dimension from the the preview and position field.
That way my object parameter will show the right values in bimx.