2016-10-27 05:43 PM
2016-10-28 04:15 AM
REQUEST ("Height_of_style", name, height [, descent, leading])… and then the width of the text string…
STW string_expression)/1000*GLOB_SCALE… and then place a rectangle or fill that is the correct size and location.
rrr = REQUEST ("TEXTBLOCK_INFO",textblock_name, width, height)
2022-12-09 04:00 PM
How do I use this?
REQUEST ("Height_of_style", name, height [, descent, leading])
It's taken from the GDL reference document, but it's not designed for novices like me.
I have this:
REQUEST ("Height_of_style", my_text_style_name, height [, descent, leading])
but I get this error:
Missing comma in parameter list
at mylinenumber in the 3D script of file myfilename.
I don't understand the braces or how you can have a comma after a brace. If I take the section between braces out, I get this error:
Missing comma in parameter list
at mylinenumber in the 3D script of file myfilename.
The guidance could be a lot clearer...
2022-12-09 06:49 PM
In the GDL manual the presence of the brackets are to highlight options [, Optional Values ] that may be omitted from the code line. Either omit everything including the [ ] or just omit the [ ] to set the extra values.
2022-12-12 11:04 AM
Thanks! Makes perfect sense now you have explained it. Getting started with GDL is a bit daunting, but making progress.
2022-12-12 03:43 PM
Thanks a lot - fixed it!
Sometimes it's useful to have guidance, even if it's a bit of a stupid question 😀