<?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: Relations betwwen gsm objects in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266307#M10840</link>
    <description>&lt;BLOCKQUOTE&gt;Cosminn wrote:&lt;BR /&gt;Is there a way for an object to read parameters from other object from the floor plan?&lt;/BLOCKQUOTE&gt;
Only possible through the ArchiCAD API (in C/C++).</description>
    <pubDate>Sun, 03 May 2015 14:55:56 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2015-05-03T14:55:56Z</dc:date>
    <item>
      <title>Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266306#M10839</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello everyone&lt;BR /&gt;
&lt;BR /&gt;
Is there a way for an object to read parameters from other object from the floor plan?&lt;BR /&gt;
&lt;BR /&gt;
In other words,&lt;BR /&gt;
&lt;BR /&gt;
For example let's say I have 2 objects, we call them:&lt;BR /&gt;
&lt;BR /&gt;
Object_1 and object_2.&lt;BR /&gt;
&lt;BR /&gt;
Object_1 has a parameter.&lt;BR /&gt;
Parameter name is param_1, and parameter type is, let's say -length-.&lt;BR /&gt;
As a default value we can set 1.50.&lt;BR /&gt;
&lt;BR /&gt;
Object_2 has a parameter as well.&lt;BR /&gt;
Parameter name is param_2 and the  type is also -length-&lt;BR /&gt;
&lt;BR /&gt;
We place both objects on the floor plan.&lt;BR /&gt;
And my question is:&lt;BR /&gt;
&lt;BR /&gt;
Can I create a new parameter in object_2, who can always read the value of param_1 from object_1?&lt;BR /&gt;
&lt;BR /&gt;
My english level is quite poor, so I really hope you'll understand what I've wrote.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 02 May 2015 22:12:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266306#M10839</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-05-02T22:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266307#M10840</link>
      <description>&lt;BLOCKQUOTE&gt;Cosminn wrote:&lt;BR /&gt;Is there a way for an object to read parameters from other object from the floor plan?&lt;/BLOCKQUOTE&gt;
Only possible through the ArchiCAD API (in C/C++).</description>
      <pubDate>Sun, 03 May 2015 14:55:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266307#M10840</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2015-05-03T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266308#M10841</link>
      <description>Thank you Ralph,&lt;BR /&gt;
&lt;BR /&gt;
Do you know someone who can help me?</description>
      <pubDate>Sun, 03 May 2015 15:00:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266308#M10841</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-05-03T15:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266309#M10842</link>
      <description>&lt;BLOCKQUOTE&gt;Cosminn wrote:&lt;BR /&gt;Do you know someone who can help me?&lt;/BLOCKQUOTE&gt;
This is not as straight-forward as GDL. Do you need someone to do the programming for you or do you want instruction? If you want instructions, have you ever used C/C++?</description>
      <pubDate>Sun, 03 May 2015 15:15:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266309#M10842</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2015-05-03T15:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266310#M10843</link>
      <description>I think I need someone to do the programming for me. For sure</description>
      <pubDate>Sun, 03 May 2015 15:29:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266310#M10843</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-05-03T15:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266311#M10844</link>
      <description>I think that some simple link can be achieved by GDL using the TXT output.&lt;BR /&gt;
Obj_1 writes a TXT file with the values of the parameters&lt;BR /&gt;
Obj_2 read the same TXT file and gets the values of the parameters&lt;BR /&gt;
&lt;BR /&gt;
But I think it has limited possibilities.&lt;BR /&gt;
It depends on your needs.</description>
      <pubDate>Mon, 04 May 2015 06:31:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266311#M10844</guid>
      <dc:creator>alemanda</dc:creator>
      <dc:date>2015-05-04T06:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266312#M10845</link>
      <description>Yes it can be done in GDL with a text file as an intermediate link.&lt;BR /&gt;
But the object must be visible on screen to write to or read from the text file.&lt;BR /&gt;
&lt;BR /&gt;
You can bypass this (I think) by using GLOB_USER variables - it is quite a  long time since I tried this.&lt;BR /&gt;
There is a very limited number of these variables and it could be possible that other objects may use them (but pretty unlikely).&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 04 May 2015 06:43:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266312#M10845</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-05-04T06:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266313#M10846</link>
      <description>Thank you so much for your reply.&lt;BR /&gt;
&lt;BR /&gt;
If you have time to write a code for that [as a sample], would be very helpful for me. I'll learn from that code and from guide as well.&lt;BR /&gt;
&lt;BR /&gt;
Again, thank you</description>
      <pubDate>Mon, 04 May 2015 06:49:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266313#M10846</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-05-04T06:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266314#M10847</link>
      <description>Sure.&lt;BR /&gt;
Here is s quick couple of objects where 'Object 2' will change based on the size of 'Object 1'.&lt;BR /&gt;
&lt;BR /&gt;
I have done this using 'GLOB_USER' variables.&lt;BR /&gt;
You must issue a 'Rebuild and Regenerate" (CTRL+ALT+SHIFT+R) after stretching object 1 in plan.&lt;BR /&gt;
This doesn't work in 3D - you must R&amp;amp;R in plan.&lt;BR /&gt;
&lt;BR /&gt;
Instead of using the GLOB_USER value you can write to a text file.&lt;BR /&gt;
I don't have time at the moment to script this - maybe I can do it later if no-one beats me to it.&lt;BR /&gt;
&lt;BR /&gt;
I think even with the text file you must do R&amp;amp;R and both objects need to be visible in your plan.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 04 May 2015 07:22:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266314#M10847</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-05-04T07:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266315#M10848</link>
      <description>Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
I'll have a look over it.</description>
      <pubDate>Mon, 04 May 2015 08:01:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266315#M10848</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-05-04T08:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266316#M10849</link>
      <description>Indeed Barry,&lt;BR /&gt;
&lt;BR /&gt;
Works properly. I really liked. This will save many problems and also time.&lt;BR /&gt;
&lt;BR /&gt;
What if I have 2 or more Objects_1 and one objects_2. Will be possible to read from all of them? If yes, what is the condition?&lt;BR /&gt;
&lt;BR /&gt;
Thank you</description>
      <pubDate>Mon, 04 May 2015 10:22:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266316#M10849</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-05-04T10:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266317#M10850</link>
      <description>Unfortunately you can only have one object_1.&lt;BR /&gt;
You can have as many object_2 as you want but they will all follow the parameters of object_1&lt;BR /&gt;
&lt;BR /&gt;
This is where the GLOB_USER variables will be very restrictive because there are only 10 numeric variables available (and another 10 string variables which I think can be used for numbers as well).&lt;BR /&gt;
&lt;BR /&gt;
You will have a similar problem with the text output although you will have much better control of what you can output to and read from the file.&lt;BR /&gt;
&lt;BR /&gt;
You could add some control to object_1 to say output to variables 1,2 &amp;amp; 3 or variables 4, 5 &amp;amp; 6 (7,8 &amp;amp; 9 etc.) - assuming you are controlling 3 variables - it could be any number.&lt;BR /&gt;
i.e. add a parameter to say use variables 'group 1' or 'group 2' or 'group 3' etc.&lt;BR /&gt;
The object_2 you can tell it to read 'group 1' or 'group 2' or 'group 3' etc.&lt;BR /&gt;
&lt;BR /&gt;
But I really think you could get into a terrible mess - especially if you want other people to use your objects.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If you only have one object_1 then it is pretty straight forward as you can have as many object_2 as you want react to it.&lt;BR /&gt;
More difficult if you have more object_1 as they need to output to different variables and then you have to tell each object_2 which variables to read.&lt;BR /&gt;
&lt;BR /&gt;
I hope I have explained this clearly enough (it has been a long day).&lt;BR /&gt;
&lt;BR /&gt;
If you want more than one object_1 then I probably would not try this with GDL.&lt;BR /&gt;
Maybe it will work with an API add-on if you can create a link between objects but I don't know as I have no idea about coding add-ons.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 04 May 2015 13:05:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266317#M10850</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-05-04T13:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266318#M10851</link>
      <description>Your information was very helpful Barry.&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much.</description>
      <pubDate>Mon, 04 May 2015 13:10:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266318#M10851</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-05-04T13:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266319#M10852</link>
      <description>@Barry : &lt;BR /&gt;
You said :&lt;BR /&gt;
"Yes it can be done in GDL with a text file as an intermediate link. &lt;BR /&gt;
But the object must be visible on screen to write to or read from the text file." &lt;BR /&gt;
&lt;BR /&gt;
If you'll have time to write a sample script for this, or maybe you can let me know which part from the guide should I looking for this, will help a lot.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, a Script is a Script &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your time&lt;BR /&gt;
&lt;BR /&gt;
Regards, &lt;BR /&gt;
&lt;BR /&gt;
Daniel</description>
      <pubDate>Thu, 30 Jul 2015 13:07:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266319#M10852</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-07-30T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266320#M10853</link>
      <description>Try this.&lt;BR /&gt;
&lt;BR /&gt;
You can still only have one 'object_1' in you plan otherwise you will have multiple objects trying to write different information to the same text file.&lt;BR /&gt;
&lt;BR /&gt;
You can have as many 'object_2' as you want and they will all change when you alter object one on screen.&lt;BR /&gt;
You must do a 'Rebuild and Regenerate' command (CTRL+ALT+SHIFT+R) if you change object_1 in plan.&lt;BR /&gt;
If you do it in 3D window then it should all be live.&lt;BR /&gt;
&lt;BR /&gt;
I have set the objects so they will create and read from an '.XLS' file that has the same name as your Archicad file but with the added name of '_object_sizes.xls'&lt;BR /&gt;
It will be located in the same folder as your Archicad file.&lt;BR /&gt;
&lt;BR /&gt;
I assume it will work if you are using a MAC - but I am not 100% sure.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Forget what I said before about using GLOB_USER variables.&lt;BR /&gt;
Graphisoft have discontinued their use from version 19 so they will be completely useless.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 31 Jul 2015 06:52:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266320#M10853</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-07-31T06:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266321#M10854</link>
      <description>Thank you so much.&lt;BR /&gt;
I'll try it.&lt;BR /&gt;
Seems to be exactly what I need. Those Global Variables was worked properly. But I need to try this as well. What I need is:&lt;BR /&gt;
5-10 Objects to read from One object, this can be an assembly.&lt;BR /&gt;
And I need few assemblies like this in on project. @40 assemblies.&lt;BR /&gt;
Do you think will work? I mean will make the project process harder?&lt;BR /&gt;
&lt;BR /&gt;
Again Thank you!!!</description>
      <pubDate>Fri, 31 Jul 2015 09:12:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266321#M10854</guid>
      <dc:creator>Cosminn</dc:creator>
      <dc:date>2015-07-31T09:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Relations betwwen gsm objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266322#M10855</link>
      <description>I would forget the GLOB_USER variables.&lt;BR /&gt;
That will only work up to version 18.&lt;BR /&gt;
From 19 onwards they will no longer work.&lt;BR /&gt;
&lt;BR /&gt;
I am not sure exactly what you are trying to do but it should work.&lt;BR /&gt;
If you have got 40 assemblies then you will need 40 master objects ('object_1' but of course with unique names).&lt;BR /&gt;
Each one of those objects will need to write to a unique text file - that is where you can customise the file name in the file path.&lt;BR /&gt;
&lt;BR /&gt;
Otherwise you could write to just the one text file but you would need unique names for the fields being written and read.&lt;BR /&gt;
i.e. master_1 would have to save 'length_1', 'width_1' and 'height_1'.&lt;BR /&gt;
master_2 would have to save 'length_2', 'width_2' and 'height_2'&lt;BR /&gt;
master_3 would have to save 'length_3', 'width_3' and 'height_3'&lt;BR /&gt;
etc.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 31 Jul 2015 09:27:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Relations-betwwen-gsm-objects/m-p/266322#M10855</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2015-07-31T09:27:35Z</dc:date>
    </item>
  </channel>
</rss>

