!Restored: Drawing Scale calls for GDL
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-16 08:19 PM
2006-11-16
08:19 PM
8 REPLIES 8
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-16 09:29 PM
2006-11-16
09:29 PM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-16 11:02 PM
2006-11-16
11:02 PM
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.
I think Peter is correct, the only option I know of is to use Title Type.
Tom Waltz
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-16 11:33 PM
2006-11-16
11:33 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-16 11:54 PM
2006-11-16
11:54 PM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-17 12:09 AM
2006-11-17
12:09 AM
I think AC_DrawingScale is what you're looking for. I think it's a text variabel though, not a numeric one.
Tom Waltz

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-17 04:01 AM
2006-11-17
04:01 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-21 12:28 AM
2006-11-21
12:28 AM
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.
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-21 03:35 AM
2006-11-21
03:35 AM
David wrote: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.
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.