cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

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 29 • Rill Architects • macOS • OnLand.info
Anonymous
Not applicable
Cool! Thank you. That was easy.

Cheers,

jfa

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!