Using <LAYOUTID> as a string in object
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-01-29 04:43 AM
2007-01-29
04:43 AM
Does anyone know how I can use the layout ID to get the results I want? Or, is there another way to do this that I haven't thought of. I can post the object, but it's still rough.
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-01-29 07:57 AM
2007-01-29
07:57 AM
Sorry, but GDL doesn't have the ability to actually get the value of the project info, so your object cannot process the value of information in it.
It's been a wish list item ever since AC10 came out and we could place objects on layouts.
It's been a wish list item ever since AC10 came out and we could place objects on layouts.
Tom Waltz
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-01-29 11:19 AM
2007-01-29
11:19 AM
It will not really help, but some layout informations are available if you generate optionial parameters in the parameter list. E.g. AC_DrawingGUID.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-01-31 10:25 PM
2007-01-31
10:25 PM
Try this.
nome2 = "A.02.1"
ii = REQUEST ("HomeDB_info", "", homeDBIntId, homeDBUserId, homeDBName, homeContext)
stringa = "<LAYOUTID>"
TEXT2 0,0, stringa
IF GLOB_CONTEXT = 8 THEN
IF homeDBUserId = NOME2 THEN TEXT2 0,.01,"I'm happy"
n = SPLIT (homeDBUserId, "A. %n ",aaaa, bbbb)
TEXT2 0,-.01,aaaa
TEXT2 0,-.02,bbbb
ENDIF
Put this code/object onto Layout.
If Layout's UserID = A.02.1 ..... You will be happy😉
CU mirco
nome2 = "A.02.1"
ii = REQUEST ("HomeDB_info", "", homeDBIntId, homeDBUserId, homeDBName, homeContext)
stringa = "<LAYOUTID>"
TEXT2 0,0, stringa
IF GLOB_CONTEXT = 8 THEN
IF homeDBUserId = NOME2 THEN TEXT2 0,.01,"I'm happy"
n = SPLIT (homeDBUserId, "A. %n ",aaaa, bbbb)
TEXT2 0,-.01,aaaa
TEXT2 0,-.02,bbbb
ENDIF
Put this code/object onto Layout.
If Layout's UserID = A.02.1 ..... You will be happy
CU mirco
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-03 02:29 PM
2011-08-03
02:29 PM
Brilliant! Why can't the GDL user guide actually explain how most things work. They never show a very basic example so you can figure out the proper syntax and usage. Posted a bit of your script in my object and voila! Thank you very much.
Many Thanks, JP
John Peterson, AIA
Dalgliesh Gilpin Paxton Architects
Archicad 7-21 US
PC and iMac
John Peterson, AIA
Dalgliesh Gilpin Paxton Architects
Archicad 7-21 US
PC and iMac
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-03 06:05 PM
2011-08-03
06:05 PM
Well actually now none of it works. With a project index, I can't add a parameters from seleted objects like you can in schedules. In schedules, it won't scan Layouts for objects. POS!
Many Thanks, JP
John Peterson, AIA
Dalgliesh Gilpin Paxton Architects
Archicad 7-21 US
PC and iMac
John Peterson, AIA
Dalgliesh Gilpin Paxton Architects
Archicad 7-21 US
PC and iMac

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-04 06:55 AM
2011-08-04
06:55 AM
I guess I'm running into the same thing...
I've been trying to break the TITLE of a DRAWING into Main and SubTitles separated by a special character (like "/")...
My syntax is correct, but it's not splitting the one title into two..
I've been trying to break the TITLE of a DRAWING into Main and SubTitles separated by a special character (like "/")...
My syntax is correct, but it's not splitting the one title into two..
Duane
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-04 07:17 AM
2011-08-04
07:17 AM
Since I've asked this question several times in other places and received no answer.. maybe I'll ask it here...
Is it not possible to get and display BOTH the LAYOUT ID and the VIEW ID of a drawing placed on a layout?
I want to keep my VIEW ID's for details as they are in my MASTER DETAIL setup... But when placed in a project I want to obviously show the ID by Layout in the bubble and have a small piece of text in the title that is the Master ID (ID by View ID)...
Is it not possible to get and display BOTH the LAYOUT ID and the VIEW ID of a drawing placed on a layout?
I want to keep my VIEW ID's for details as they are in my MASTER DETAIL setup... But when placed in a project I want to obviously show the ID by Layout in the bubble and have a small piece of text in the title that is the Master ID (ID by View ID)...
Duane
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop
Visual Frontiers
AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop