cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL
About building parametric objects with GDL.

STRTOUPPER(string_expression) not working with autotext

ArchiTecht
Participant

I would like to use autotext for the subset name and layout name in different locations, some of which I would like to be all caps and other locations I would like to be lowercase. The gdl function that turns strings into all caps works just fine with all my other autotext, but not with the subset name or layout name. Has anyone else had this issue? Is there a work around?

STRTOUPPER(<SUBSETNAME>)

STRTOUPPER(<LAYOUTNAME>)

 

Heather, AC 28, Windows 10 

3 REPLIES 3
Jochen Suehlo
Moderator

You theoretically can use 

STRTOUPPER("<SUBSETNAME>")
Unfortunately, however, it is generally not possible to perform any text operations or comparison operations in AutoText, which is why small letters remain small.
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

Yes, the filling of autotext content is invisible to GDL.  A frustration to be sure.

Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Bruce
Advisor

This from the GDL Reference Guide:

 

"It’s not part of GDL itself. Archicad will substitute all references to autotext fields in whatever GDL output it finds them. For example, if you
write <PROJECTSTATUS> in the parameter string of a text2 command, Archicad will nicely replace it with the actual value. All this is invisible
to GDL – consequently the size and other attributes of the text are not measurable."

Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb