<?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 Measure distance between two points - command in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251038#M11282</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi, &lt;BR /&gt;
&lt;BR /&gt;
Quick simple question.&lt;BR /&gt;
&lt;BR /&gt;
Is there a command allowing to quickly measure distance between two points  defined by X and Y?&lt;BR /&gt;
 .... something like this "DIST":&lt;BR /&gt;
&lt;BR /&gt;
DIST 10, 20, 30, 50 , distance&lt;BR /&gt;
&lt;BR /&gt;
PRINT distance       != 36,1&lt;BR /&gt;
&lt;BR /&gt;
If there no such command than is there a simpler method than this? :&lt;BR /&gt;
&lt;BR /&gt;
distance = sqr(  (30-10)*(30-10) + (50-20)*(50-20) )&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 05 Mar 2015 14:12:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-05T14:12:39Z</dc:date>
    <item>
      <title>Measure distance between two points - command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251038#M11282</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi, &lt;BR /&gt;
&lt;BR /&gt;
Quick simple question.&lt;BR /&gt;
&lt;BR /&gt;
Is there a command allowing to quickly measure distance between two points  defined by X and Y?&lt;BR /&gt;
 .... something like this "DIST":&lt;BR /&gt;
&lt;BR /&gt;
DIST 10, 20, 30, 50 , distance&lt;BR /&gt;
&lt;BR /&gt;
PRINT distance       != 36,1&lt;BR /&gt;
&lt;BR /&gt;
If there no such command than is there a simpler method than this? :&lt;BR /&gt;
&lt;BR /&gt;
distance = sqr(  (30-10)*(30-10) + (50-20)*(50-20) )&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Mar 2015 14:12:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251038#M11282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-05T14:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure distance between two points - command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251039#M11283</link>
      <description>&lt;BLOCKQUOTE&gt;philips wrote:&lt;BR /&gt;Hi, &lt;BR /&gt;
&lt;BR /&gt;
Quick simple question.&lt;BR /&gt;
&lt;BR /&gt;
Is there a command allowing to quickly measure distance between two points  defined by X and Y?&lt;BR /&gt;
 .... something like this "DIST":&lt;BR /&gt;
&lt;BR /&gt;
DIST 10, 20, 30, 50 , distance&lt;BR /&gt;
&lt;BR /&gt;
PRINT distance       != 36,1 &lt;/BLOCKQUOTE&gt;

Hello.&lt;BR /&gt;
&lt;BR /&gt;
No.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Or none that I'm aware of.&lt;BR /&gt;
Finding the hypotenuse is the simple way of knowing the distance between two points.&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;philips wrote:&lt;BR /&gt;
If there no such command than is there a simpler method than this? :&lt;BR /&gt;
&lt;BR /&gt;
distance = sqr(  (30-10)*(30-10) + (50-20)*(50-20) )&lt;/BLOCKQUOTE&gt;

You could only simplify with:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;distance = sqr(  (30-10)^2 + (50-20)^2 )
&lt;/PRE&gt;
or
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;distance = sqr(  (30-10)**2 + (50-20)**2 )
&lt;/PRE&gt;

but that's about it.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Thu, 05 Mar 2015 15:11:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251039#M11283</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2015-03-05T15:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Measure distance between two points - command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251040#M11284</link>
      <description>It would be really nice to have such a command, especially when it comes to measuring distance between two points defined in 3D by X, Y, Z. &lt;BR /&gt;
 &lt;BR /&gt;
Measuring is very useful when trying to do such a thing (point attracted cones):&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68431iF65562A7DBC82559/image-size/large?v=v2&amp;amp;px=999" border="0" alt="screen.JPG" title="screen.JPG" /&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:55:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251040#M11284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-19T09:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Measure distance between two points - command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251041#M11285</link>
      <description>Hi,&lt;BR /&gt;
you can always use a subroutine with some variables to store input and output or a macro object with seven parameters, six input and a returned parameter for the result.</description>
      <pubDate>Fri, 20 Mar 2015 14:14:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251041#M11285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-20T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Measure distance between two points - command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251042#M11286</link>
      <description>Basically, for measuring distance in 3D, its not that difficult as it is: &lt;BR /&gt;
 
&lt;PRE&gt; 
distance = sqr ( (x2-x1)^2 + (y2-y1)^2 + (z2 - z1)^2 ) 
&lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
but still it would be nice to make it more simple. &lt;BR /&gt;
 &lt;BR /&gt;
Next question: &lt;BR /&gt;
 &lt;BR /&gt;
Is it possible to request position of any other object selected by its unique ID?  &lt;BR /&gt;
What I'm thinking of is to treat a secondary object outside the GDL object to work as a attractor influencing parameters of this GDL Object... &lt;BR /&gt;
 &lt;BR /&gt;
For the above example I used a moveable hotspot inside the GDL Object as the attractor. This is why I can make many options of it a few seconds:&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68278i90575BDA2B4A5651/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Przechwytywanie 2.JPG" title="Przechwytywanie 2.JPG" /&gt;</description>
      <pubDate>Fri, 20 Mar 2015 16:05:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251042#M11286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-20T16:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Measure distance between two points - command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251043#M11287</link>
      <description>GDL Objects cannot be aware of each other directly, there is no such functionality as far as I know.&lt;BR /&gt;
I don't know if the following could be done but one object could write the information needed by the other object into a file, and the other object could read it.&lt;BR /&gt;
After the first object wrote the data, you would probably have to regenerate the other object to read the data from the file.&lt;BR /&gt;
But I don't know if this would work as I have not tried it myself, it is just an idea.</description>
      <pubDate>Fri, 20 Mar 2015 16:25:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Measure-distance-between-two-points-command/m-p/251043#M11287</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2015-03-20T16:25:53Z</dc:date>
    </item>
  </channel>
</rss>

