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

Let the code to modify some parameters

Anonymous
Not applicable
Hi all,

how is it possible to modify the parameters from the code?

For example:

I have an integer parameter called "cmp_num_pann".

Into the code I've:


MATERIAL mat_pan
PEN penna

l_pann=0.978
num_pann=CEIL(A)

!PRINT num_pann
FOR k=1 TO num_pann
	PRISM_             89,            ZZYZX,
			0.292171901647, 
............................. .............. ..........................,

0.004419152401375,     15,
			0.3417754728342, -0.004419152401375,     15,
			0.3417754728342, 0.0003987855887901,     15,
			0.292171901647, 0.0003987855887901,     -1
	ADDx l_pann
NEXT k
DEL num_pann
I would like to have "cmp_num_pann"=num_pann so into the dialog I can see num_pann value.
I know the GLOB_MODPAR_NAME command but it does not work in this situation.

Could you help me, please?

Thank you
Marco
5 REPLIES 5
Anonymous
Not applicable
Marco,
I am unclear about what you want to do.
If you want to modify a parameter value in the parameter list you can
do so using the PARAMETERS command in the Parameters Script.
Find the description of this command in the GDL manual.
Peter Devlin
gerd
Participant
hi,

If I understand your problem right, you want to change a parameter value in the user interface from 3d skript.
this will not work fine, because of the order of working on the skripts inside archicad
the parameters command can be used in parameters skript or in the master script. you should make sure to change and define the parameter first and afterwards to use it in 3d / 2d / master skript

best regards, g
Anonymous
Not applicable
Right gerd...

So it's complex to do...

It's a sin!!!

Thank you
Marco
Anonymous
Not applicable
In your object's Master script

l_pann=0.978
num_pann=CEIL(A)
! -- new value named "n_panels" - integer type - --
PARAMETERS n_panels = num_pann


Interactive schedules (abaco interattivo ITA) use : " Additional values " (Parametri addizionali ITA) = n_panels (inside) in your object.

below an example .

CU mirco
www.3dsmile.it

PS Sorry but I don't have a lot of time to explain
Anonymous
Not applicable
Mirco,

thank you very much for your precious help...
This way to calculate is very interesting and, with this simple but clear example, I'm sure to resolve my problem and Claudio's one!!!

Very clear Mirco... for the fourth time, thank you very very much!

By the way, I forgot: is it possible to open .iss files using a text editor? It seems a binary file... I wrote text editor, but can Archicad open .iss with an internal editor?

Regards,
PWD