2023-08-28 08:49 AM
Hi,
I have a simple Text/Autotext label. It is set as autotext, reading the associated element ID. I would like to override it based on the content of the autotext. Override works for "Text Content" but there is no "Autotext Content" criteria.
Since labels don't have properties, that path is not possible.
I went down the rabbit hole of modifying one custom GDL label and played around with GLOB_ID which should be the element ID. I plugged it in the interface script. First field (globID IN) is a parameter (glob_ID_IN), then I do GLOB_ID = glob_ID_IN, and in the next line I print the GLOB_ID. It Prints whatever I input so I am assuming I am actually changing the ID of the label? But perhaps not since GO is still not overriding the label.
2023-08-28 08:50 AM
2023-09-03 11:50 AM
GLOB_ID is a read-only parameter in GDL.
It is not possible to set the value of GLOB_ID, and therefore the value of the Library Part's Element ID from the GDL Script.
2023-09-04 01:57 AM - edited 2023-11-30 10:54 PM
Thanks Laszlo
I've come up with a few alternative solutions. Janky AF but that's nothing new.
1. Add " " as text before and after the autotext and set condition "Text Content" - "Starts with" a space and "Ends with" a space.
2. Create a unique line type, apply to a line that is switched off for the label, then set this unique line type as criteria for GO
3. Use any of the Plan/Section attributes: Arrowhead Pen/ Pen/ Pointer Pen/ Text Pen, same as with 2.