License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.
SOLVED!

Return "value" of generated parameter

Anonymous
Not applicable
Is it possible to read the value of a generated data created from a GDL expression.

For example I´m creating a simple object with the value (parameter) A and B
In the GDL-script i have the parameter C with i s scripted to be C="A"+"B" (just text)
When making a schedule with the parameter C as one of the fields it returns no value - which in one way seems logical since I haven't given any value to the parameter C. But is there a workaround to have the value "A"+"B" show up in the schedule?
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator
You have set the value of your variable "C" in your GDL script.
But you have not set the value of the parameter (if that makes sense).

In you GDL parameter script (or it could be the master script) you should have ...
C = "A" + "B"
PARAMETERS C = C
C needs to be a text parameter of course.
The result for C will be "AB".

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

View solution in original post

2 REPLIES 2
Solution
Barry Kelly
Moderator
You have set the value of your variable "C" in your GDL script.
But you have not set the value of the parameter (if that makes sense).

In you GDL parameter script (or it could be the master script) you should have ...
C = "A" + "B"
PARAMETERS C = C
C needs to be a text parameter of course.
The result for C will be "AB".

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
Anonymous
Not applicable
Thank´s Barry!

It´s all in the details.

You can't imagine all the work this will save me!

/Fredrik