BIM Coordinator Program (INT) April 22, 2024

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

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

How to use current Layout ID and name i GDL script

Anonymous
Not applicable
I'm trying to create a GDL object for making revision handling easier. This objects needs to "know" which layout it is placed on (the Layout ID and name).

I know I can use the <LayoutID> to create an autotext in the object, but that is not what i'm after, because I want to be able to store the Layout ID and Layout name in a database.


Is this possible, and how do I do it, or where can I read about it? I have looked through the GDL reference guide but I can't find anything.
7 REPLIES 7
Barry Kelly
Moderator
It is not possible.
You can use autotext in an object but you can never retrieve the value of the autotext itself.
So you can't pass its value onto a parameter or to a database.
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
Thanks for a fast reply.

It's a shame it can't be done.... That means I can only generate lists of layouts based on the built in scheme tools.

The problem is that the layouts have to few parameters. I would be great if they would have a lot of custom parameters that could be used as filters in the schemes. Then one could give the layouts parameters like "part of revision 1", and then generate a list of all layouts in revision 1 etc.
Anonymous
Not applicable
Barry wrote:
It is not possible.
You can use autotext in an object but you can never retrieve the value of the autotext itself.
So you can't pass its value onto a parameter or to a database.
Barry.
I guess it's not possible then to reach the layout's ID in any other way either?
Barry Kelly
Moderator
Not that I am aware of.
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
sinceV6
Advocate
Didn't try it myself, but can't this be used?

n = request ("HomeDB_info", "", n, LayoutNumber, LayoutName, n)

from:
http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/15/DrawingTit...

and page 312 of the GDL documentation.
Anonymous
Not applicable
That above code works well. Thanks! I was trying to solve the very same problem.
sinceV6
Advocate
So it works eh? YAY! Good to know for the next object/title.
Learn and get certified!