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

Global ID for Curtain Wall Custom Panel

Anonymous
Not applicable
Does anyone know how to get the value of the user ID in the script of a curtain wall custom panel? I've tried using GLOB_ID to no avail (it's value is an empty string). Is there some other parameter or something for this or is it an oversight by GS?
10 REPLIES 10
David Maudlin
Rockstar
Matthew:

I played with this a bit and found that GLOB_ID would work in the 3D Script (using Text 0, 0, GLOB_ID), but not the 2D Script (using Text2 0, 0, GLOB_ID). The GDL Reference Guide also lists CWALL_ID, but that did not work in either script.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
Thanks David. Did you try the master or parameters scripts? I'll give those a shot and see what happens. Seems like these bits aren't quite cooked yet. I'll have to bug the guys in Budapest about it.
Anonymous
Not applicable
I just tried all possible permutations and it seems to be impossible to get the panel ID to appear in plan. Even with a Project2 statement. The 3D script won't get the value of GLOB_ID if GLOB_CONTEXT = 2.

This is stupid. What's the point of the ID if the value is accessible only in the one script were it's not needed?

BTW: the value of CWALL_ID is available to a label associated to the curtain wall. At least this will be useful to my client and perhaps make up a bit for the door ID problem.
ztaskai
Graphisoft Alumni
Graphisoft Alumni
Hi Matthew,

This is an annoying bug indeed. We didn't know about it until now. Now I entered it into our records. I'm not sure it will be fixed in a v14 hotfix though...

Thanks for the report and sorry for the inconvenience!

Regs,
Zsolt Táskai
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...
David Maudlin
Rockstar
Matthew wrote:
I just tried all possible permutations and it seems to be impossible to get the panel ID to appear in plan. Even with a Project2 statement. The 3D script won't get the value of GLOB_ID if GLOB_CONTEXT = 2.
Which would not be what you want anyway, as the 3D text is always outline text.

Zsolt:
Thanks for letting us know that this is now on the "To Do" list.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
David wrote:
Matthew wrote:
I just tried all possible permutations and it seems to be impossible to get the panel ID to appear in plan. Even with a Project2 statement. The 3D script won't get the value of GLOB_ID if GLOB_CONTEXT = 2.
Which would not be what you want anyway, as the 3D text is always outline text.
It was just a fall back option, but you can get filled text in plan by adjusting the Project2{2} arguments. Something like:

FILL "Solid Fill"
Project2{2} 3, 270, 3
Zsolt:
Thanks for letting us know that this is now on the "To Do" list.

David
Yes! Thanks Zsolt for all your attention and help here on the forums. Your participation is noticed and much appreciated.
David Maudlin
Rockstar
Matthew wrote:
David wrote:
Matthew wrote:
I just tried all possible permutations and it seems to be impossible to get the panel ID to appear in plan. Even with a Project2 statement. The 3D script won't get the value of GLOB_ID if GLOB_CONTEXT = 2.
Which would not be what you want anyway, as the 3D text is always outline text.
It was just a fall back option, but you can get filled text in plan by adjusting the Project2{2} arguments. Something like:

FILL "Solid Fill"
Project2{2} 3, 270, 3
Matthew:

I gave this a try, but still got the outline text in the 2D Window.

3D Script:
Pen 4
DEFINE STYLE DMA Optima, 10, 7, 1
Set Style "DMA"
Text .25", 0, "DVM"
2D Script:
FILL "Solid Fill" 
Project2{2} 3, 270, 3
Is there some other code I am missing?

David
Project-Text.gif
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
David wrote:
I gave this a try, but still got the outline text in the 2D Window.

3D Script:
Pen 4
DEFINE STYLE DMA Optima, 10, 7, 1
Set Style "DMA"
Text .25", 0, "DVM"
2D Script:
FILL "Solid Fill" 
Project2{2} 3, 270, 3
Is there some other code I am missing?

David
You need to set a material in 3D to provide the fill. It's easy to overlook. There are a few ways to tweak it, but knowing your skill level these should be obvious to you.

Here's the code I used in 3D:
IF GLOB_CONTEXT = 2 THEN

	DEFINE STYLE "text_3D" "Arial", 2.5*A_, 5, 0
	STYLE "text_3D"

	addx open_wd*0.5    ! the transforms are to place the text to align with the door
	rotz -gs_open_2D    ! so much easier than a door in a regular wall
	add -leaf_wd*0.5, -0.0035*GLOB_SCALE, 0

	MATERIAL text_mat
	PEN text_pen
	Text 0.001, 0, door_ID

	del 3
	END
ENDIF

BTW: Is your DEFINE STYLE working without the quotation marks?
David Maudlin
Rockstar
Matthew wrote:
You need to set a material in 3D to provide the fill. It's easy to overlook.
Yes, that was it.
Matthew wrote:
BTW: Is your DEFINE STYLE working without the quotation marks?
Yes. As it turns out, you can have the quotes or not in either Define Style or Set Style commands, works with any combination.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14