<?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 Extract global coordinates of the local coordinate system in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240562#M11212</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there a way to extract the global coordinates of the local coordinate system in GDL.&lt;BR /&gt;
&lt;BR /&gt;
Sometimes (after numerous ROT and ADD's) it would be nice to know to coordinates og the local coordinate system.&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 23 Jan 2015 18:13:36 GMT</pubDate>
    <dc:creator>David Kj_ller</dc:creator>
    <dc:date>2015-01-23T18:13:36Z</dc:date>
    <item>
      <title>Extract global coordinates of the local coordinate system</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240562#M11212</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there a way to extract the global coordinates of the local coordinate system in GDL.&lt;BR /&gt;
&lt;BR /&gt;
Sometimes (after numerous ROT and ADD's) it would be nice to know to coordinates og the local coordinate system.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:13:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240562#M11212</guid>
      <dc:creator>David Kj_ller</dc:creator>
      <dc:date>2015-01-23T18:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extract global coordinates of the local coordinate syste</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240563#M11213</link>
      <description>&lt;BLOCKQUOTE&gt;David wrote:&lt;BR /&gt;Is there a way to extract the global coordinates of the local coordinate system in GDL.&lt;BR /&gt;
&lt;BR /&gt;
Sometimes (after numerous ROT and ADD's) it would be nice to know to coordinates og the local coordinate system.&lt;/BLOCKQUOTE&gt;

Hi.&lt;BR /&gt;
To use in what way? Solution might depend on the actual need.&lt;BR /&gt;
&lt;BR /&gt;
The 3D view of the object (in the GDL object editor enviroment) will show the current position after the ROTs and ADDs transformations (provided you have them active). For the 2D view, I don't think there's that option.&lt;BR /&gt;
&lt;BR /&gt;
For either one, you could create a small subroutine that draws 2 or 3 lines (for 2D or 3D) to show axis' position and rotation. This has proven quite useful in the 3D script when viewing several points at once that will be used later (to check the positions created in a script).&lt;BR /&gt;
&lt;BR /&gt;
So if you move the coordinate system and you don't see it, you can GOSUB your axis' subroutine and keep modifying the script until you get the position you want, then comment out the GOSUB.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Sat, 24 Jan 2015 00:24:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240563#M11213</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2015-01-24T00:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract global coordinates of the local coordinate syste</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240564#M11214</link>
      <description>Well, to be more precise.&lt;BR /&gt;
&lt;BR /&gt;
I'm working on a automated drain pipe model in 3D.&lt;BR /&gt;
&lt;BR /&gt;
I have a start point i 3D and an end point in 3D.&lt;BR /&gt;
&lt;BR /&gt;
The drain pipe goes from the start point to the end point following certain rules.&lt;BR /&gt;
&lt;BR /&gt;
I would like to check the difference between the end of the pipe and the end point (if any &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;, and being able to extract the global coordinates of the local coordinate system would make that a lot easier &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Sat, 24 Jan 2015 07:15:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240564#M11214</guid>
      <dc:creator>David Kj_ller</dc:creator>
      <dc:date>2015-01-24T07:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract global coordinates of the local coordinate syste</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240565#M11215</link>
      <description>Certain time ago I made an object for this. Take a look if it is useful for You.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/17093i476D1C4B4ADF4B36/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Sewage Pipe_INT16 - Instructions for use.jpg" title="Sewage Pipe_INT16 - Instructions for use.jpg" /&gt;</description>
      <pubDate>Sat, 24 Jan 2015 09:20:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240565#M11215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-24T09:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract global coordinates of the local coordinate syste</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240566#M11216</link>
      <description>For download:&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/15202i01E5B15945AD2F52/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Sewage Pipe_INT Download.jpg" title="Sewage Pipe_INT Download.jpg" /&gt;</description>
      <pubDate>Sat, 24 Jan 2015 09:22:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240566#M11216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-24T09:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract global coordinates of the local coordinate syste</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240567#M11217</link>
      <description>Well, it's a entire drain pipe system i'm working on (a bit more complex &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;, but thank you anyway.&lt;BR /&gt;
&lt;BR /&gt;
I think the conclusion is that you can't get the global coordinates of the local coordinate sytem.</description>
      <pubDate>Sat, 24 Jan 2015 09:53:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240567#M11217</guid>
      <dc:creator>David Kj_ller</dc:creator>
      <dc:date>2015-01-24T09:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract global coordinates of the local coordinate syste</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240568#M11218</link>
      <description>Have you tried Archicad's MEP?</description>
      <pubDate>Sat, 24 Jan 2015 20:52:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240568#M11218</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2015-01-24T20:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract global coordinates of the local coordinate syste</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240569#M11219</link>
      <description>&lt;BLOCKQUOTE&gt;David wrote:&lt;BR /&gt;Well, to be more precise.&lt;BR /&gt;
&lt;BR /&gt;
I'm working on a automated drain pipe model in 3D.&lt;BR /&gt;
&lt;BR /&gt;
I have a start point i 3D and an end point in 3D.&lt;BR /&gt;
&lt;BR /&gt;
The drain pipe goes from the start point to the end point following certain rules.&lt;BR /&gt;
&lt;BR /&gt;
I would like to check the difference between the end of the pipe and the end point (if any &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;, and being able to extract the global coordinates of the local coordinate system would make that a lot easier &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
...I think the conclusion is that you can't get the global coordinates of the local coordinate sytem.&lt;/BLOCKQUOTE&gt;

Well... not exactly. It depends on how you are making the script work. Assuming that you control either the end point or the end of the pipe, you must be able to know or calculate each of the end positions. There is no "give me current axis position" command, but since you are moving the coordinate system to build your object, in essence, you always now the current position. Why don't you give the accumulated transformation values to a variable? It's a little difficult to provide more help without more information; and this is only if I'm understanding what you mean by being able to extract the global coordinates of the local coordinate system....&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Mon, 26 Jan 2015 14:58:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Extract-global-coordinates-of-the-local-coordinate-system/m-p/240569#M11219</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2015-01-26T14:58:43Z</dc:date>
    </item>
  </channel>
</rss>

