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

Formatting A Parameter Script to include a Single Quote 1&qu

Anonymous
Not applicable
I am writing a GDL object that will have a parameter script for common text string choices from a pull down.

i.e.

!!MAIN TEXT
values "MainText" "2x6", "2x8", "2x10", "2x12", "14 TJI 560", custom


The question is how to actually include a single quote in the text string without confusing the syntax of the code?

It would be preferable for the output to be 2"x6" rather than 2x6.

Thanks,

JFA
2 REPLIES 2
jfa_ra wrote:
i.e.

!!MAIN TEXT
values "MainText" "2x6", "2x8", "2x10", "2x12", "14 TJI 560", custom


The question is how to actually include a single quote in the text string without confusing the syntax of the code?
Use a different kind of quotation mark; the single (apostrophe) and the little retrograde accent mark (`) will both work.
VALUES 'MainText' '2"x6"', '2"x8"', ...
It would be preferable for the output to be 2"x6" rather than 2x6.
A bit OT, I would find 2"x8" to be potentially confusing since it should be a nominal dimension. We wouldn't use the inch sign unless it was a true dim. But you should stick with what you and your contractors are accustomed to.
James Murray

Archicad 27 • Rill Architects • macOS • OnLand.info
Anonymous
Not applicable
Cool! Thank you. That was easy.

Cheers,

jfa