Name_of_plan not adding to parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-20 11:18 AM
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=zxI feel like this should just work but doesn't, Any ideas as to how to solve it?
Thanks
Windows 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-20 11:44 AM
Thanks
Windows 10

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-21 02:53 AM
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-21 03:55 PM
make the request in the master script and assign the result to a variable.
then in parameter script assign the parameter's value to that of the master ...
PS:
1. That is a quick fix
2. Don't make that part of the Master Script run as a parameter script or it will not work


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-22 09:50 AM
make the request in the master script and assign the result to a variable.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)
then in parameter script assign the parameter's value to that of the master ...
GDL object creation: b-prisma.de

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-22 02:19 PM
For instance,
1. You can get "Project Name" from "Project Info" autotext ( <PROJECTNAME> )
2. Project fullname same as in 1 (or create a new field and use it)
3. Project path, also by autotext ( <FILEPATH> + <FILENAME> )


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-22 02:24 PM
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
if GLOB_SCRIPT_TYPE # 5 |GLOB_SCRIPT_TYPE # 6 then
your code snippet
endif


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-23 05:57 PM
if GLOB_SCRIPT_TYPE # 5 |GLOB_SCRIPT_TYPE # 6 thenThis only works for the output in 2D. The error message in Parameter Script appears nevertheless.
GDL object creation: b-prisma.de

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-23 07:10 PM


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-25 02:54 AM
Moonlight wrote:
What about the autotext ? see above my responce
Will not work for James's purpose as he is wanting to reference the return which cannot be done with Autotexts.
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?
Ling.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |