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

How can I pull in variables from another object

Anonymous
Not applicable
Can any one please show by example the simplest way if one How I can display a "called" object's variable values in the Parameters window.

I am trying to set up a railing object in which I am making a call on spindles and railings and I would like to have the option to use the called objects values or input my own values. Any suggestions or ideas would greatly be appreciated.
22 REPLIES 22
Anonymous
Not applicable
This is all I have.
(3D Script)

IF Trim_Default = 1 then
ROTz 90
CALL TrimPro,
PARAMETERS A=Cus_Trim_WID, B=-trim_length, zzyzx=Cus_Trim_HGT,
RETURNED_PARAMETERS Trim_A, TRIM_B, TRIM_C
DEL 1
ENDIF

(Main Parameters) Above Migration button
Trim_Default = 1
TrimPro = TRM_C045
Trim_A =
Trim_B =
Trim_C =
Ok,

What is in the called object?

Because there You have to put the variables to return after END command there.


Best Regards,
Piotr
Anonymous
Not applicable
The called object is a ArchiCad generated Script Using a slab and saving selection as Object. It has nothing in the parameters except A, B and zzyzx.

So you are saying my returned_Parameters should be A, B, zzyzx
What You need the returned parameters then?
if no calculation is done in called script?

Best Regards,
Piotr
Anonymous
Not applicable
?????
How would you suggest to write the code? I do not understand.
Anonymous
Not applicable
I maybe going down the wrong path.

I have a object with multiple objects. The other objects rely on the called objects parameters if the user chooses to use the called objects default values. I need some how to extract the value of the called object so that the other objects can adjust accordingly. The problem I am getting is that sometimes it takes refreshing the object in order for the called object to correctly adjust the other objects. Second problem from this is that in the subroutines I have to build the other objects before I make the called object.
The ideal thing would be to write a call within the master script but I have found nothing that supports this.
Ok, what values You need to get from the called object?
(if it is autoscripted object no calculation is done ther IMHO)

Dimensions? but You got them already as You call the object (A=..etc)

Best Regards,
Piotr
Anonymous
Not applicable
All I need is A, B and zzyzx
Jochen Suehlo
Moderator
If I have the following in 2D of caller:
call "called1" parameters A=1, zzyzx=3, returned_parameters b
TEXT2 0,0,b
and the following in 2d and 3D of called:
!3D: 
BLOCK A,B,zzyzx

!2D: 
PROJECT2 3,270,2
END B
It gives me the value of B in 2D of the called object.
Important is the B after the END.

Sometimes I work with
call "called1" parameters A=1, zzyzx=3 returned_parameters b
(no komma before returned...); maybe this makes some difference in your script? For me both works the same.
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
hhd801 wrote:
All I need is A, B and zzyzx
Besides from what Joachim has written, You have those values already in the main script as You call the object with parameters A=.. ,B=..., zzyzx=...
just reuse them if needed?
Am I missing something?

Best Regards,
Piotr