<?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: Filepath as GDL variable in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26948#M34164</link>
    <description>This could be written as API, but the add-on has to be loaded in every AC-session the object is used in.</description>
    <pubDate>Mon, 10 Jul 2006 11:43:11 GMT</pubDate>
    <dc:creator>Frank Beister</dc:creator>
    <dc:date>2006-07-10T11:43:11Z</dc:date>
    <item>
      <title>Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26945#M34161</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
I need to be able to find the current project filepath as per the autotext &amp;lt;FILEPATH&amp;gt; and store this information in a variable. I am currently using a folder scanning routine that will search predetermined folder locations for the name of the current project to find its location however I now need to be able to find the file location no matter where it is placed.&lt;BR /&gt;
&lt;BR /&gt;
The following GDL will give me the correct information as text, but I need to have this file location as a variable for other use (File I/O etc)&lt;BR /&gt;
 &lt;BR /&gt;
TEXT2 0.0, 0.0, "&amp;lt;FILEPATH&amp;gt;"&lt;BR /&gt;
&lt;BR /&gt;
If anyone knows if this can be accomplished or any other ideas can you please let me know.&lt;BR /&gt;
&lt;BR /&gt;
Kind Regards,&lt;BR /&gt;
Danny&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Jul 2006 09:47:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26945#M34161</guid>
      <dc:creator>Danny Sparks-Cousins</dc:creator>
      <dc:date>2006-07-10T09:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26946#M34162</link>
      <description>AFAIK there is no REQUEST, REQ or GLOBAL to return the full filepath. And autotext can't be read out of GDL. IMHO: No way.</description>
      <pubDate>Mon, 10 Jul 2006 10:31:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26946#M34162</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-07-10T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26947#M34163</link>
      <description>Thats disappointing to hear especially when the &amp;lt;FILEPATH&amp;gt; autotext is so close and can be scripted into text within GDL.&lt;BR /&gt;
&lt;BR /&gt;
Could this functionality be written as a custom API - perhaps a custom GDL REQUEST?</description>
      <pubDate>Mon, 10 Jul 2006 11:13:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26947#M34163</guid>
      <dc:creator>Danny Sparks-Cousins</dc:creator>
      <dc:date>2006-07-10T11:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26948#M34164</link>
      <description>This could be written as API, but the add-on has to be loaded in every AC-session the object is used in.</description>
      <pubDate>Mon, 10 Jul 2006 11:43:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26948#M34164</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-07-10T11:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26949#M34165</link>
      <description>This information can now be obtained via a request in AC10 (although this addition to the existing request is not documented by Graphisoft).&lt;BR /&gt;

&lt;PRE&gt;rrr=REQUEST("Name_of_plan", "", prj_name, prj_fullname, prj_path)
TEXT2 0.0, 0.0, prj_name
TEXT2 0.0, -1.0, prj_fullname
TEXT2 0.0, -2.0, prj_path&lt;/PRE&gt;

The above code will return the short name, full name and project path of the currently open project (assuming the project has been saved).&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps someone.&lt;BR /&gt;
&lt;BR /&gt;
Danny</description>
      <pubDate>Mon, 05 Feb 2007 22:59:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26949#M34165</guid>
      <dc:creator>Danny Sparks-Cousins</dc:creator>
      <dc:date>2007-02-05T22:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26950#M34166</link>
      <description>Great! Where do you have it from? Trial and error? Found in another object? GS itself?</description>
      <pubDate>Tue, 06 Feb 2007 00:18:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26950#M34166</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2007-02-06T00:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26951#M34167</link>
      <description>I found these extra parameters through trial and error. Sometimes I add extra variables to the requests (especially when version upgrades have occured) and this one paid off.</description>
      <pubDate>Tue, 06 Feb 2007 07:07:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26951#M34167</guid>
      <dc:creator>Danny Sparks-Cousins</dc:creator>
      <dc:date>2007-02-06T07:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26952#M34168</link>
      <description>Thanks Danny for finding this!&lt;BR /&gt;
&lt;BR /&gt;
Many times I would like to know the platform where the GDL &lt;BR /&gt;
is running. If I remember right there was a REQUEST for this &lt;BR /&gt;
a long time ago, but nothing working at the moment &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
With Your code the platform is cleared out soonest;&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;rrr=REQUEST("Name_of_plan", "", prj_name, prj_fullname, prj_path) &lt;BR /&gt;
len= strstr(prj_path, prj_fullname)-1&lt;BR /&gt;
ddd= strsub(prj_path,len,1)&lt;BR /&gt;
if ddd=":" then&lt;BR /&gt;
    platform= "It's a MAC"&lt;BR /&gt;
else&lt;BR /&gt;
    platform= "It's a WIN"!--or something even wilder&lt;BR /&gt;
endif&lt;BR /&gt;
TEXT2 0.0, -3.0, platform&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 0.0, 0.0, prj_name&lt;BR /&gt;
TEXT2 0.0, -1.0, prj_fullname&lt;BR /&gt;
TEXT2 0.0, -2.0, prj_path&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Wed, 07 Feb 2007 21:25:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26952#M34168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-07T21:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filepath as GDL variable</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26953#M34169</link>
      <description>…And thanks Frank -&amp;gt; here was Your REQUEST tip alive and kicking!&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=5182&amp;amp;start=0&amp;amp;postdays=0&amp;amp;postorder=desc&amp;amp;highlight=platform" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=5182&amp;amp;start=0&amp;amp;postdays=0&amp;amp;postorder=desc&amp;amp;highlight=platform" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://archicad-talk.graphisoft.com/vie ... t=platform&amp;quot;&amp;gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=5182&amp;amp;start=0&amp;amp;postdays=0&amp;amp;postorder=desc&amp;amp;highlight=platform&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... t=platform"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=5182&amp;amp;start=0&amp;amp;postdays=0&amp;amp;postorder=desc&amp;amp;highlight=platform&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;</description>
      <pubDate>Wed, 07 Feb 2007 21:58:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Filepath-as-GDL-variable/m-p/26953#M34169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-02-07T21:58:10Z</dc:date>
    </item>
  </channel>
</rss>

