cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Name_of_plan not adding to parameter

JGoode
Expert
Hello,

I'm trying to add the name of my project to a parameter but for some reason it doesn't fill the field?

Here is my script:
rrr=REQUEST("Name_of_plan", "", prj_name, prj_fullname, prj_path)
zx = prj_fullname
parameters zx=zx
I feel like this should just work but doesn't, Any ideas as to how to solve it?

Thanks
ArchiCAD 23

Windows 10
13 REPLIES 13
Barry Kelly
Moderator
JGoode wrote:
Hello,

I'm trying to add the name of my project to a parameter but for some reason it doesn't fill the field?

Here is my script:
rrr=REQUEST("Name_of_plan", "", prj_name, prj_fullname, prj_path)
zx = prj_fullname
parameters zx=zx
I feel like this should just work but doesn't, Any ideas as to how to solve it?

Thanks
I don't think you can add it to a parameter value.
But there is no problem with the REQUEST and the returned values - except for prj_name - this doesn't seem to do anything.
But the returned vales for prj_fullname & prj_path work just fine in the master or any other script.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Nader Belal
Mentor
@Ling

The second quote doesn't appear to me ... I wonder why ??

@Ling + @JGoode

It can work, if you create custom autotexts, then all you have to do is to concatenate them.
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
Lingwisyer
Guru
Moonlight wrote:
The second quote doesn't appear to me ... I wonder why ??

As in it is blank in the post? Or that you cannot find it in the thread? It is from the GDL forum

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Barry Kelly
Moderator
JGoode wrote:
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?

Use STRSUB to get just part of the fullname.

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.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11