<?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: X Y co-ordinates of the object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114619#M18291</link>
    <description>&lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;!!!!! Master script Part !!!!!&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
----&lt;BR /&gt;
If bUpdate then&lt;BR /&gt;
		Xx1	= SYMB_POS_X - Ooffsetx		!X co-ord&lt;BR /&gt;
		Yy1	= SYMB_POS_Y - Ooffsety		!Y co-ord&lt;BR /&gt;
Endif&lt;BR /&gt;
&lt;BR /&gt;
Parameters Xx1 = Xx1&lt;BR /&gt;
Parameters Yy1 = Yy1&lt;BR /&gt;
&lt;BR /&gt;
Xx1Last = Xx1	&lt;BR /&gt;
Yy1Last = Yy1	&lt;BR /&gt;
&lt;BR /&gt;
if bUpdate then &lt;BR /&gt;
		Xx1 = Xx1&lt;BR /&gt;
		Yy1 = Yy1&lt;BR /&gt;
	else &lt;BR /&gt;
		Xx1 = Xx1Last&lt;BR /&gt;
		Yy1 = Yy1Last&lt;BR /&gt;
Endif   	&lt;BR /&gt;
      ~~~~~~~~~~~~~	~~~~~~~~~~~~~~~  &lt;BR /&gt;
           &lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;  2D script part :&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
text2 0.2, (-r1+0.1), 	"x: "+ PreX + str ("%.2", Xx1*100)&lt;BR /&gt;
text2 0.2, (-r1-0.05),	"y: "+ PreY + str ("%.2", Yy1*100)	&lt;BR /&gt;
&lt;BR /&gt;
Text output comes correct But the taken parameters Xx1 &amp;amp; Yy1 in the schedule, are showing the valuae incorrect (i.e. it considers the value of 'SYMB_POS_X' and 'SYMB_POS_Y' as zero)&lt;BR /&gt;
&lt;BR /&gt;
can anyone help on this please?</description>
    <pubDate>Wed, 25 May 2011 08:55:27 GMT</pubDate>
    <dc:creator>dhaval7shah</dc:creator>
    <dc:date>2011-05-25T08:55:27Z</dc:date>
    <item>
      <title>X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114615#M18287</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;&lt;FONT color="#7600ff"&gt;How can I get X-Y co-ordinates of an Object, through its own GDL script?&lt;BR /&gt;
I also want to take the same data in to Schedules. Can anybody show me some example of such scripts.&lt;BR /&gt;
(I tried with e.g. x1 = SYMB_POS_X , but i think i dont know how to use this Global parameter?)&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;/FONT&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2010 10:23:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114615#M18287</guid>
      <dc:creator>dhaval7shah</dc:creator>
      <dc:date>2010-10-12T10:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114616#M18288</link>
      <description>In you gdl object you should define two parameters and assign to them the value of SYMB_POS_X and SYMB_POS_Y. Then you should add these two parameters as filter in your schedule.&lt;BR /&gt;
Hope it is useful.</description>
      <pubDate>Wed, 13 Oct 2010 11:49:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114616#M18288</guid>
      <dc:creator>alemanda</dc:creator>
      <dc:date>2010-10-13T11:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114617#M18289</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
If I remember right, the object's coordinates are always zero in the schedules  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Wed, 13 Oct 2010 21:11:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114617#M18289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-13T21:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114618#M18290</link>
      <description>Does this post about the GLOB_WORLD_ORIGO_OFFSET help?&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=33878" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... hp?t=33878"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=33878&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 14 Oct 2010 02:05:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114618#M18290</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2010-10-14T02:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114619#M18291</link>
      <description>&lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;!!!!! Master script Part !!!!!&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
----&lt;BR /&gt;
If bUpdate then&lt;BR /&gt;
		Xx1	= SYMB_POS_X - Ooffsetx		!X co-ord&lt;BR /&gt;
		Yy1	= SYMB_POS_Y - Ooffsety		!Y co-ord&lt;BR /&gt;
Endif&lt;BR /&gt;
&lt;BR /&gt;
Parameters Xx1 = Xx1&lt;BR /&gt;
Parameters Yy1 = Yy1&lt;BR /&gt;
&lt;BR /&gt;
Xx1Last = Xx1	&lt;BR /&gt;
Yy1Last = Yy1	&lt;BR /&gt;
&lt;BR /&gt;
if bUpdate then &lt;BR /&gt;
		Xx1 = Xx1&lt;BR /&gt;
		Yy1 = Yy1&lt;BR /&gt;
	else &lt;BR /&gt;
		Xx1 = Xx1Last&lt;BR /&gt;
		Yy1 = Yy1Last&lt;BR /&gt;
Endif   	&lt;BR /&gt;
      ~~~~~~~~~~~~~	~~~~~~~~~~~~~~~  &lt;BR /&gt;
           &lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;  2D script part :&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
text2 0.2, (-r1+0.1), 	"x: "+ PreX + str ("%.2", Xx1*100)&lt;BR /&gt;
text2 0.2, (-r1-0.05),	"y: "+ PreY + str ("%.2", Yy1*100)	&lt;BR /&gt;
&lt;BR /&gt;
Text output comes correct But the taken parameters Xx1 &amp;amp; Yy1 in the schedule, are showing the valuae incorrect (i.e. it considers the value of 'SYMB_POS_X' and 'SYMB_POS_Y' as zero)&lt;BR /&gt;
&lt;BR /&gt;
can anyone help on this please?</description>
      <pubDate>Wed, 25 May 2011 08:55:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114619#M18291</guid>
      <dc:creator>dhaval7shah</dc:creator>
      <dc:date>2011-05-25T08:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114620#M18292</link>
      <description>&lt;BLOCKQUOTE&gt;Juha wrote:&lt;BR /&gt;If I remember right, the object's coordinates are always zero in the schedules  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt; &lt;/BLOCKQUOTE&gt;

True. &lt;BR /&gt;
Curiously, they do show correctly in basic component lists. &lt;BR /&gt;
GDL oddities. Don't know if this can help.</description>
      <pubDate>Thu, 26 May 2011 15:51:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114620#M18292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-26T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114621#M18293</link>
      <description>yes, in Lists the co-ordinates cam correct, but there is still a limitation, when i duplicate the objects, i need to refresh one of its parameter to get the Xx1 &amp;amp; yy1 refreshed into the list. Otherwise they show duplicate co-ordinates.&lt;BR /&gt;
&lt;BR /&gt;
Also somehow i could manage to show this X_Y co-ord values into schedules, but then the text out put is having the problem.&lt;BR /&gt;
Can we use the PUT function here? do you buddies know how to use it?&lt;BR /&gt;
(by the way this exercise is to prepare a co-ord table for Setting out points)</description>
      <pubDate>Thu, 26 May 2011 17:22:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114621#M18293</guid>
      <dc:creator>dhaval7shah</dc:creator>
      <dc:date>2011-05-26T17:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114622#M18294</link>
      <description>As Juha said, I don't know a way to display x, y coords in schedules.&lt;BR /&gt;
Basic component list is the only possibility I can see for the moment.&lt;BR /&gt;
&lt;BR /&gt;
May be Karl or other folks could tell you more.&lt;BR /&gt;
&lt;BR /&gt;
Just in case,&lt;BR /&gt;

&lt;PRE&gt;!!! ----- Master Script -----
	x = xOff + SYMB_POS_X + GLOB_WORLD_ORIGO_OFFSET_X 
	y = yOff + SYMB_POS_Y + GLOB_WORLD_ORIGO_OFFSET_Y 
	z = zOff + SYMB_POS_Z

!!! ----- Property Script -----
	component "X Location", x, 'm' 
	component "Y Location", y, 'm' 
	component "Z Location", z, 'm'&lt;/PRE&gt;

No need to declare x, y, z  as parameters., x, y will return 0.</description>
      <pubDate>Thu, 26 May 2011 18:25:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114622#M18294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-26T18:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114623#M18295</link>
      <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;
&lt;PRE&gt;!!! ----- Master Script -----
	x = xOff + SYMB_POS_X + GLOB_WORLD_ORIGO_OFFSET_X 
	y = yOff + SYMB_POS_Y + GLOB_WORLD_ORIGO_OFFSET_Y 
	z = zOff + SYMB_POS_Z

!!! ----- Property Script -----
	component "X Location", x, 'm' 
	component "Y Location", y, 'm' 
	component "Z Location", z, 'm'&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
Thanks Olivier. Do i need to define these components in database too ? and then add them in the 'components' window ?</description>
      <pubDate>Thu, 02 Jun 2011 12:44:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114623#M18295</guid>
      <dc:creator>dhaval7shah</dc:creator>
      <dc:date>2011-06-02T12:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: X Y co-ordinates of the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114624#M18296</link>
      <description>Not needed.&lt;BR /&gt;
Document &amp;gt; Shedules and Lists &amp;gt; Component Lists &amp;gt; Basic. That's all.&lt;BR /&gt;
Export under the format you need.&lt;BR /&gt;
&lt;BR /&gt;
To separate different objects, you can sort them by ID, for eg.&lt;BR /&gt;

&lt;PRE&gt;!!! ----- Property Script -----
	component GLOB_ID + " X Location", x, 'm' 
	! etc...&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jun 2011 18:12:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/X-Y-co-ordinates-of-the-object/m-p/114624#M18296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-03T18:12:21Z</dc:date>
    </item>
  </channel>
</rss>

