GDL
About building parametric objects with GDL.

Stepdown symbol, edit 2D script

Vincent G
Contributor

Hi guys,

 

I'm quite novice with GFL, and mostly working on Revit these days so my knowledge is really rusty.
I got this setdown symbol coded by CI for us, and I'd like the value (manual input) to also allow letters (currently numerical only) in order to have VAR. or some prefix

VincentG_1-1651130373011.png


I'm pretty sure this is dictated by the 2D script, the linerarDimensionFormat. Could you tell me what to replace in order to allow letters + numbers on that setdown value? I've been looking in GDL guides but haven't had luck yet. 

VincentG_2-1651130508319.png

 

 Thank you in advance

1 REPLY 1
Barry Kelly
Moderator

The number (stepSize) is already being converted to a string, so it should be a case of simply typing the text you want in quotes then + then the converted number that is there already.

 

 

BarryKelly_2-1651133645024.png

 

 

Don't forget to add a space after VAR in quotes if you want a gap between that and the number text.

 

If you want the user to be able to alter "VAR ", then create a text parameter and use the parameter name instead of "VAR ".

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

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!