<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I pull in variables from another object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172736#M17536</link>
    <description>Depends what is the object structure - especially the place where the calculation take place.&lt;BR /&gt;
&lt;BR /&gt;
if it is in parameters script and if You have subroutines than You have end command already - so place the names of the varaibles to be passed to the caller object - names do not matter but the position matter.&lt;BR /&gt;
&lt;BR /&gt;
the RETURNED_PARAMETERS val1, val2 .... gets the values by position not name in END command in called object.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
    <pubDate>Tue, 06 Dec 2011 14:14:29 GMT</pubDate>
    <dc:creator>Piotr Dobrowolski</dc:creator>
    <dc:date>2011-12-06T14:14:29Z</dc:date>
    <item>
      <title>How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172727#M17527</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;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.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 09:52:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172727#M17527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T09:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172728#M17528</link>
      <description>This is only a pointer to help you find a solution.  The CALL stmt includes and option for RETURNED_PARAMETERS &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;rparam1, rparam2, rparam3, ...&lt;E&gt;&lt;/E&gt; which I think should get them up into the CALLing routine for inspection.  PRINT doesn't work in the Parameter script, (?!) so Andrew Watson's suggestion (&lt;B&gt;GDL Handbook&lt;/B&gt;) is to use the OUTPUT stmt to get data into something else that you can print.&lt;BR /&gt;
&lt;BR /&gt;
  In some cases we have succeeded in moving some code from the Parameter script to the 3D script just in order to use the PRINT capability there. &lt;BR /&gt;
&lt;BR /&gt;
  Also, with Reporting set to Full Report in preferences of your work environment, we have been able to get array output and tests of VALUE lists displayed in the Reports window.  Hope that helps.</description>
      <pubDate>Fri, 25 Feb 2011 21:00:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172728#M17528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-25T21:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172729#M17529</link>
      <description>If I read you correctly you want to be able to use the internal values of the spindles or override them with the parameters from the railing script. This is most easily done by just choosing between two CALL statements with an IF/THEN/ELSE condition, such as:
&lt;PRE&gt;IF use_default_spindle THEN
    CALL spindle_GDL
ELSE
    CALL spindle_GDL PARAMETERS spindle_sz = spindle_sz !!!and so on...
ENDIF&lt;/PRE&gt;

If you really need to know and display the internal defaults of the spindle macro you can use the RETURNED_PARAMETERS function as Didrik suggests.&lt;BR /&gt;
&lt;BR /&gt;
If you want to apply these values to the user parameters in the railing you may be able to use the PARAMETERS statement for this but there may be execution order issues.</description>
      <pubDate>Sat, 26 Feb 2011 09:08:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172729#M17529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-26T09:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172730#M17530</link>
      <description>Thanks for the post. I will try the suggestions out within the next break I have. Can't wait to try them out.</description>
      <pubDate>Mon, 28 Feb 2011 15:51:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172730#M17530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-28T15:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172731#M17531</link>
      <description>Here is more information that may help with what I need to solve this problem.&lt;BR /&gt;
1. I am calling railing and spindles separately.&lt;BR /&gt;
2. when I am using the default sizing it is important to know the values because the spindle spacing is calculated from the width of the spindle. Same for the railing depth. Its value is needed for the final height of the spindles.&lt;BR /&gt;
I can make a simple call and the object is what is should be but without knowing what the called object dimensions are the script can not complete the calculations correctly.</description>
      <pubDate>Mon, 28 Feb 2011 16:06:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172731#M17531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-28T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172732#M17532</link>
      <description>&lt;BLOCKQUOTE&gt;hhd801 wrote:&lt;BR /&gt;2. when I am using the default sizing it is important to know the values because the spindle spacing is calculated from the width of the spindle.&lt;/BLOCKQUOTE&gt;

For this use the RETURNED_PARAMETERS function as Didrik suggests.</description>
      <pubDate>Mon, 28 Feb 2011 21:36:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172732#M17532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-28T21:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172733#M17533</link>
      <description>CALL    TrimPro,																&lt;BR /&gt;
    PARAMETERS A=Cus_Trim_WID,	B=-trim_length,				zzyzx=Cus_Trim_HGT,&lt;BR /&gt;
RETURNED_PARAMETERS Trim_A, TRIM_B, TRIM_C&lt;BR /&gt;
&lt;BR /&gt;
I cannot seem to get this to work. After Returned_Parameters I create the above values. I then Put these same values in the Main parameters interface. Does anyone know what I am missing. I tried reading The GDL Handbook which was worthless to me because it read just like ArchiCad's GDL Reference Guide. GDL Cookbook was the best.</description>
      <pubDate>Tue, 06 Dec 2011 01:25:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172733#M17533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-06T01:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172734#M17534</link>
      <description>Did You use END command in the called object with values You need to get after the "end" in the proper script?&lt;BR /&gt;
Refer to the END command description in GDL manual&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 06 Dec 2011 07:49:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172734#M17534</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-12-06T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172735#M17535</link>
      <description>It is nested within a subroutine with a end after all the GoSub commands. Is this what you are referring to?</description>
      <pubDate>Tue, 06 Dec 2011 14:10:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172735#M17535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-06T14:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172736#M17536</link>
      <description>Depends what is the object structure - especially the place where the calculation take place.&lt;BR /&gt;
&lt;BR /&gt;
if it is in parameters script and if You have subroutines than You have end command already - so place the names of the varaibles to be passed to the caller object - names do not matter but the position matter.&lt;BR /&gt;
&lt;BR /&gt;
the RETURNED_PARAMETERS val1, val2 .... gets the values by position not name in END command in called object.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 06 Dec 2011 14:14:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172736#M17536</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-12-06T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172737#M17537</link>
      <description>This is all I have.&lt;BR /&gt;
(3D Script)&lt;BR /&gt;
&lt;BR /&gt;
IF Trim_Default = 1 then&lt;BR /&gt;
ROTz 90																			&lt;BR /&gt;
CALL    TrimPro,																&lt;BR /&gt;
    PARAMETERS A=Cus_Trim_WID,	B=-trim_length, zzyzx=Cus_Trim_HGT,&lt;BR /&gt;
RETURNED_PARAMETERS Trim_A, TRIM_B, TRIM_C   &lt;BR /&gt;
DEL 1																			&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
(Main Parameters) Above Migration button&lt;BR /&gt;
Trim_Default = 1&lt;BR /&gt;
TrimPro = TRM_C045&lt;BR /&gt;
Trim_A =&lt;BR /&gt;
Trim_B =&lt;BR /&gt;
Trim_C =</description>
      <pubDate>Tue, 06 Dec 2011 14:41:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172737#M17537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-06T14:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172738#M17538</link>
      <description>Ok,&lt;BR /&gt;
&lt;BR /&gt;
What is in the called object?&lt;BR /&gt;
&lt;BR /&gt;
Because there You have to put the variables to return after END command there.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 06 Dec 2011 14:53:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172738#M17538</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-12-06T14:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172739#M17539</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
So you are saying my returned_Parameters should be A, B, zzyzx</description>
      <pubDate>Tue, 06 Dec 2011 15:02:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172739#M17539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-06T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172740#M17540</link>
      <description>What You need the returned parameters then?&lt;BR /&gt;
if no calculation is done in called script?&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 06 Dec 2011 16:17:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172740#M17540</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-12-06T16:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172741#M17541</link>
      <description>?????  &lt;BR /&gt;
How would you suggest to write the code? I do not understand.</description>
      <pubDate>Tue, 06 Dec 2011 16:31:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172741#M17541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-06T16:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172742#M17542</link>
      <description>I maybe going down the wrong path.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
The ideal thing would be to write a call within the master script but I have found nothing that supports this.</description>
      <pubDate>Tue, 06 Dec 2011 16:45:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172742#M17542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-06T16:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172743#M17543</link>
      <description>Ok, what values You need to get from the called object?&lt;BR /&gt;
(if it is autoscripted object no calculation is done ther IMHO)&lt;BR /&gt;
&lt;BR /&gt;
Dimensions? but You got them already as You call the object (A=..etc)&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 06 Dec 2011 19:41:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172743#M17543</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-12-06T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172744#M17544</link>
      <description>All I need is A, B and zzyzx</description>
      <pubDate>Tue, 06 Dec 2011 20:34:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172744#M17544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-06T20:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172745#M17545</link>
      <description>If I have the following in 2D of caller:&lt;BR /&gt;

&lt;PRE&gt;call "called1" parameters A=1, zzyzx=3, returned_parameters b
TEXT2 0,0,b&lt;/PRE&gt;

and the following in 2d and 3D of called:&lt;BR /&gt;

&lt;PRE&gt;!3D: 
BLOCK A,B,zzyzx

!2D: 
PROJECT2 3,270,2
END B&lt;/PRE&gt;

It gives me the value of B in 2D of the called object.&lt;BR /&gt;
Important is the B after the END.&lt;BR /&gt;
&lt;BR /&gt;
Sometimes I work with
&lt;PRE&gt;call "called1" parameters A=1, zzyzx=3 returned_parameters b&lt;/PRE&gt;
(no komma before returned...); maybe this makes some difference in your script? For me both works the same.</description>
      <pubDate>Tue, 06 Dec 2011 22:08:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172745#M17545</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2011-12-06T22:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I pull in variables from another object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172746#M17546</link>
      <description>&lt;BLOCKQUOTE&gt;hhd801 wrote:&lt;BR /&gt;All I need is A, B and zzyzx&lt;/BLOCKQUOTE&gt;

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=...&lt;BR /&gt;
just reuse them if needed?&lt;BR /&gt;
Am I missing something?&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 06 Dec 2011 23:35:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-pull-in-variables-from-another-object/m-p/172746#M17546</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-12-06T23:35:25Z</dc:date>
    </item>
  </channel>
</rss>

