Let the code to modify some parameters
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-13 06:21 PM
‎2005-10-13
06:21 PM
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_pannI 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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-13 07:34 PM
‎2005-10-13
07:34 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-14 08:59 AM
‎2005-10-14
08:59 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-14 10:45 AM
‎2005-10-14
10:45 AM
Right gerd...
So it's complex to do...
It's a sin!!!
Thank you
Marco

So it's complex to do...

It's a sin!!!
Thank you
Marco
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-18 02:44 PM
‎2005-10-18
02:44 PM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-10-18 03:30 PM
‎2005-10-18
03:30 PM
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
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