<?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: Name_of_plan not adding to parameter in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273990#M1987</link>
    <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to add the name of my project to a parameter but for some reason it doesn't fill the field?&lt;BR /&gt;
&lt;BR /&gt;
Here is my script:
&lt;PRE&gt;rrr=REQUEST("Name_of_plan", "", prj_name, prj_fullname, prj_path)
zx = prj_fullname
parameters zx=zx&lt;/PRE&gt;

I feel like this should just work but doesn't, Any ideas as to how to solve it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks
&lt;/BLOCKQUOTE&gt;

I don't think you can add it to a parameter value.&lt;BR /&gt;
But there is no problem with the REQUEST and the returned values - except for prj_name - this doesn't seem to do anything.&lt;BR /&gt;
But the returned vales for prj_fullname &amp;amp; prj_path work just fine in the master or any other script.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Mon, 25 Nov 2019 02:28:44 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2019-11-25T02:28:44Z</dc:date>
    <item>
      <title>Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273980#M1977</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to add the name of my project to a parameter but for some reason it doesn't fill the field?&lt;BR /&gt;
&lt;BR /&gt;
Here is my script:
&lt;PRE&gt;rrr=REQUEST("Name_of_plan", "", prj_name, prj_fullname, prj_path)
zx = prj_fullname
parameters zx=zx&lt;/PRE&gt;

I feel like this should just work but doesn't, Any ideas as to how to solve it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Nov 2019 10:18:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273980#M1977</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2019-11-20T10:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273981#M1978</link>
      <description>So I've just read that using it in a parameter script will return an empty string. Is there any other way to get the project name?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 20 Nov 2019 10:44:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273981#M1978</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2019-11-20T10:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273982#M1979</link>
      <description>There are quite a few commands which do not work in the Parameter Script... Do you actually need the result to be visible in the Parameter Script? It will still impact all of your other scripts.</description>
      <pubDate>Thu, 21 Nov 2019 01:53:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273982#M1979</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-11-21T01:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273983#M1980</link>
      <description>@jGoode&lt;BR /&gt;
&lt;BR /&gt;
make the request in the master script and assign the result to a variable.&lt;BR /&gt;
&lt;BR /&gt;
then in parameter script assign the parameter's value to that of the master ...&lt;BR /&gt;
&lt;BR /&gt;
PS:&lt;BR /&gt;
1. That is a quick fix&lt;BR /&gt;
2. Don't make that part of the Master Script run as a parameter script or it will not work</description>
      <pubDate>Thu, 21 Nov 2019 14:55:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273983#M1980</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-21T14:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273984#M1981</link>
      <description>&lt;BLOCKQUOTE&gt;make the request in the master script and assign the result to a variable.&lt;BR /&gt;
&lt;BR /&gt;
then in parameter script assign the parameter's value to that of the master ...&lt;/BLOCKQUOTE&gt;

This does not work in the Master Script because then the Master Script is used as Parameter Script and you get an error in the Parameter Script. (ARCHICAD 22)</description>
      <pubDate>Fri, 22 Nov 2019 08:50:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273984#M1981</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2019-11-22T08:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273985#M1982</link>
      <description>Then I could suggest to you another method.&lt;BR /&gt;
&lt;BR /&gt;
For instance,&lt;BR /&gt;
&lt;BR /&gt;
1. You can get "Project Name" from "Project Info" autotext ( &amp;lt;PROJECTNAME&amp;gt; )&lt;BR /&gt;
2. Project fullname same as in 1 (or create a new field and use it)&lt;BR /&gt;
3. Project path, also by autotext ( &amp;lt;FILEPATH&amp;gt; + &amp;lt;FILENAME&amp;gt; )</description>
      <pubDate>Fri, 22 Nov 2019 13:19:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273985#M1982</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-22T13:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273986#M1983</link>
      <description>Another suggestion,&lt;BR /&gt;
&lt;BR /&gt;
it's idea is simple, where you run your snippet when only if the master script is not run as master or parameter scripts, just add&lt;BR /&gt;
&lt;BR /&gt;
if GLOB_SCRIPT_TYPE # 5 |GLOB_SCRIPT_TYPE # 6 then&lt;BR /&gt;
&lt;BR /&gt;
your code snippet&lt;BR /&gt;
&lt;BR /&gt;
endif</description>
      <pubDate>Fri, 22 Nov 2019 13:24:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273986#M1983</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-22T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273987#M1984</link>
      <description>&lt;BLOCKQUOTE&gt;if GLOB_SCRIPT_TYPE # 5 |GLOB_SCRIPT_TYPE # 6 then&lt;/BLOCKQUOTE&gt;
This only works for the output in 2D. The error message in Parameter Script appears nevertheless.</description>
      <pubDate>Sat, 23 Nov 2019 16:57:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273987#M1984</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2019-11-23T16:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273988#M1985</link>
      <description>What about the autotext ? see above my responce</description>
      <pubDate>Sat, 23 Nov 2019 18:10:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273988#M1985</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-23T18:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273989#M1986</link>
      <description>&lt;BLOCKQUOTE&gt;Moonlight wrote:&lt;BR /&gt;
What about the autotext ? see above my responce
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Will not work for James's purpose as he is wanting to reference the return which cannot be done with Autotexts.&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;What I want to achieve involves cutting up the name of the project to get the first 5 numbers of the project name. I have no use for it to be outputted in 2D / 3D. It’s not necessarily needing to store it as a parameter but I do need to be able to use the string (like a parameter). I don’t know if there is a way of doing so?&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Mon, 25 Nov 2019 01:54:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273989#M1986</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-11-25T01:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273990#M1987</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to add the name of my project to a parameter but for some reason it doesn't fill the field?&lt;BR /&gt;
&lt;BR /&gt;
Here is my script:
&lt;PRE&gt;rrr=REQUEST("Name_of_plan", "", prj_name, prj_fullname, prj_path)
zx = prj_fullname
parameters zx=zx&lt;/PRE&gt;

I feel like this should just work but doesn't, Any ideas as to how to solve it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks
&lt;/BLOCKQUOTE&gt;

I don't think you can add it to a parameter value.&lt;BR /&gt;
But there is no problem with the REQUEST and the returned values - except for prj_name - this doesn't seem to do anything.&lt;BR /&gt;
But the returned vales for prj_fullname &amp;amp; prj_path work just fine in the master or any other script.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 25 Nov 2019 02:28:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273990#M1987</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-11-25T02:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273991#M1988</link>
      <description>@Ling&lt;BR /&gt;
&lt;BR /&gt;
The second quote doesn't appear to me ... I wonder why ??&lt;BR /&gt;
&lt;BR /&gt;
@Ling +  @JGoode&lt;BR /&gt;
&lt;BR /&gt;
It can work, if you create custom autotexts, then all you have to do is to concatenate them.</description>
      <pubDate>Mon, 25 Nov 2019 07:28:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273991#M1988</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-25T07:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273992#M1989</link>
      <description>&lt;BLOCKQUOTE&gt;Moonlight wrote:&lt;BR /&gt;
The second quote doesn't appear to me ... I wonder why ??&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
As in it is blank in the post? Or that you cannot find it in the thread? It is from the &lt;A href="http://gdl.graphisoft.com/forums/topic/read-name-of-project#post-18409" target="_blank"&gt;GDL forum&lt;/A&gt;</description>
      <pubDate>Mon, 25 Nov 2019 07:52:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273992#M1989</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-11-25T07:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Name_of_plan not adding to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273993#M1990</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;What I want to achieve involves cutting up the name of the project to get the first 5 numbers of the project name. I have no use for it to be outputted in 2D / 3D. It’s not necessarily needing to store it as a parameter but I do need to be able to use the string (like a parameter). I don’t know if there is a way of doing so?&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Use STRSUB to get just part of the fullname.&lt;BR /&gt;
&lt;BR /&gt;
You still can't set it as a parameter, but you can use it in a TEXT2 command, or I have used this to create text files for various outputs, so they have the same name as my Archicad file.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 25 Nov 2019 07:57:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Name-of-plan-not-adding-to-parameter/m-p/273993#M1990</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-11-25T07:57:57Z</dc:date>
    </item>
  </channel>
</rss>

