BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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
Learn and get certified!