<?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: location awareness redux in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68037#M37688</link>
    <description>Thanks Olivier, I see what's happening now. Thanks also for the link to the GDL technical standards document.  Lots of good information there.</description>
    <pubDate>Fri, 22 Apr 2005 06:02:55 GMT</pubDate>
    <dc:creator>David Collins</dc:creator>
    <dc:date>2005-04-22T06:02:55Z</dc:date>
    <item>
      <title>location awareness redux</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68034#M37685</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm trying to create some GDL objects that use location awareness to point to different subroutines of varying complexity. The script below comes direct from the GDL Cookbook, but I'm not having any luck with it. My SmartObjects are still really dumb. &lt;BR /&gt;
&lt;BR /&gt;
Question #1: is the script correct the way I have it? &lt;BR /&gt;
Question #2: what triggers a change? Ctlr+Shft+R doesn't seem to do it.&lt;BR /&gt;
Question #3: "Check Script" informs me that "Use of real types can result in precision problems." That's as vague as it is disturbing. What is this trying to tell me?&lt;BR /&gt;
&lt;BR /&gt;
**********************************&lt;BR /&gt;
!autodist is a distance parameter&lt;BR /&gt;
&lt;BR /&gt;
!check distance from camera&lt;BR /&gt;
!KLM are camera position, XYZ are symbol position&lt;BR /&gt;
dkx = K~ - X~ :IF dkx=0 THEN dkx = 0.001&lt;BR /&gt;
dly = L~ - Y~ &lt;BR /&gt;
dmz = M~ - Z~&lt;BR /&gt;
&lt;BR /&gt;
dr = SQR(dkx^2 + dly^2)                !plan distance&lt;BR /&gt;
dd = SQR(dkx^2 + dly^2 + dmz^2) !distance including height&lt;BR /&gt;
azi = ATN (dly/dkx)                         !azimuth&lt;BR /&gt;
&lt;BR /&gt;
IF dr &amp;gt; autodist THEN&lt;BR /&gt;
GOSUB 100&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF dr &amp;lt; autodist THEN&lt;BR /&gt;
GOSUB 200&lt;BR /&gt;
ENDIF&lt;BR /&gt;
**********************************&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Apr 2005 12:37:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68034#M37685</guid>
      <dc:creator>David Collins</dc:creator>
      <dc:date>2005-04-21T12:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: location awareness redux</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68035#M37686</link>
      <description>&lt;BLOCKQUOTE&gt;David wrote:&lt;BR /&gt;Question #1: is the script correct the way I have it? Question #2: what triggers a change? Ctlr+Shft+R doesn't seem to do it.&lt;/BLOCKQUOTE&gt;

To answer my own questions, the script is fine as is. Shift+Ctrl+Alt+R is needed to force a complete update and rebuild of the model, which just Ctlr+Shft+R doesn't quite manage. Next I'm going to check and see what happens with Caplock+Macro+Shift+Ctrl+Alt+R.&lt;BR /&gt;
&lt;BR /&gt;
I'm still curious about the error message, if someone cares to enlighten me.</description>
      <pubDate>Thu, 21 Apr 2005 15:29:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68035#M37686</guid>
      <dc:creator>David Collins</dc:creator>
      <dc:date>2005-04-21T15:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: location awareness redux</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68036#M37687</link>
      <description>&lt;BLOCKQUOTE&gt;David wrote:&lt;BR /&gt;I'm still curious about the error message, if someone cares to enlighten me.&lt;/BLOCKQUOTE&gt;

David, about the error message, try this&lt;BR /&gt;
&lt;BR /&gt;
EPS = 0.0001     ! master script&lt;BR /&gt;
In your current script replace &lt;BR /&gt;
if dkx = 0 then ...&lt;BR /&gt;
by&lt;BR /&gt;
if abs(dkx) &amp;lt; EPS then ...&lt;BR /&gt;
&lt;BR /&gt;
Refer to this link for more informations&lt;BR /&gt;
&lt;A href="http://download.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/LibDevGuide/TechnicalStandards.html#title31" target="_blank"&gt;&lt;LINK_TEXT text="http://download.graphisoft.com/ftp/tech ... ml#title31"&gt;http://download.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/LibDevGuide/TechnicalStandards.html#title31&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
For previous questions, sorry, i don't know.</description>
      <pubDate>Thu, 21 Apr 2005 17:36:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68036#M37687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-21T17:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: location awareness redux</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68037#M37688</link>
      <description>Thanks Olivier, I see what's happening now. Thanks also for the link to the GDL technical standards document.  Lots of good information there.</description>
      <pubDate>Fri, 22 Apr 2005 06:02:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68037#M37688</guid>
      <dc:creator>David Collins</dc:creator>
      <dc:date>2005-04-22T06:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: location awareness redux</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68038#M37689</link>
      <description>&lt;BLOCKQUOTE&gt;David wrote:&lt;BR /&gt;Thanks Olivier, I see what's happening now. Thanks also for the link to the GDL technical standards document.  Lots of good information there.&lt;/BLOCKQUOTE&gt;

Yes, as you said, a lot of good stuff there.&lt;BR /&gt;
Everyone interested with AC, not only GDL, should read it.&lt;BR /&gt;
Here is the global link&lt;BR /&gt;
&lt;A href="http://download.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/BasicLibrary.html" target="_blank"&gt;&lt;LINK_TEXT text="http://download.graphisoft.com/ftp/tech ... brary.html"&gt;http://download.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/BasicLibrary.html&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Fri, 22 Apr 2005 10:03:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/location-awareness-redux/m-p/68038#M37689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-22T10:03:29Z</dc:date>
    </item>
  </channel>
</rss>

