We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

!Restored: Drawing Scale calls for GDL

Anonymous
Not applicable
Is there a variable other than GLOBAL_SCALE that can make the transition from model to layout environments. I want to have a display of the scale factor of a drawing but when I take the code into layout, the value returned is 1 (corresponding to the 1:1 layout environment). How do you store/reference the original drawing scale? And I don't want to do it with autotext...I want a numeric return.
8 REPLIES 8
Anonymous
Not applicable
Tom,
Would a title type serve your purpose ?
I believe some title types access and display the
original scale of the window the drawing was created from.
Peter Devlin
TomWaltz
Participant
Do you mean you want an object in the layout to refer to the scale of a drawing?

I think Peter is correct, the only option I know of is to use Title Type.
Tom Waltz
Anonymous
Not applicable
I am creating a graphic scale within a title type and want to have the numeric feet appear beside the tick marks on the graphic scale. So, somehow I need to be able to get the scale of the drawing as a number that I then can manipulate to serve the graphic scale. (PS: I don't like the NCS objects graphically, thus the GDL effort). Global_scale variable references the window its in, so it works in AC model but in layout reverts to 1:1. There's got to be an original drawing scale factor variable (not autotext) somewhere to be able to use!
Anonymous
Not applicable
I agree, as you say, "There's got to be an
original drawing scale factor variable" or
I assume there must be.
I have not taken the time to slog through
one of the title type scripts to find it.
I would have to memorize all those
gs_this and ac_that so that I could recognize
the variable when I saw it.
Assuming it is a global, request, or function call.
Peter Devlin
TomWaltz
Participant
I think AC_DrawingScale is what you're looking for. I think it's a text variabel though, not a numeric one.
Tom Waltz
owen
Newcomer
Yes there are global variables available now which will return values such as the drawing scale. It cannot be done with Autotext - autotext does not work in GDL as it is something AC itself converts after the GDL is run. Can't remember the complete explanation but do a search on TitleType or similar .... i posted a Titletype object which has functions in the script you could use, and the thread it is in talks about this stuff. Sorry too busy right now to find it myself
cheers,

Owen Sharp

Design Technology Manager
fjmt | francis-jones morehen thorp

iMac 27" i7 2.93Ghz | 32GB RAM | OS 10.10 | Since AC5
David Larrew
Booster
I just went through this exercise...

Unfortunately, there isn't a "scale factor" (real number) variable available. You will need to do some GDL scripting to convert the "AC_DrawingScale" (string) variable to the scale factor (real number) variable.
David Larrew, AIA, GDLA, GSRC

Architectural Technology Specialist

a r c h i S O L U T I O N S



WIN7-10/ OSX 10.15.7

AC 5.1-25 USA
owen
Newcomer
David wrote:
I just went through this exercise...

Unfortunately, there isn't a "scale factor" (real number) variable available. You will need to do some GDL scripting to convert the "AC_DrawingScale" (string) variable to the scale factor (real number) variable.
oops forgot about the string conversion .. i hadn't had the need to use it as a real number yet so had not reached that hurdle. Thanks for the heads up.
cheers,

Owen Sharp

Design Technology Manager
fjmt | francis-jones morehen thorp

iMac 27" i7 2.93Ghz | 32GB RAM | OS 10.10 | Since AC5