2007-02-16 03:28 PM
2007-02-16 04:05 PM
2007-02-16 04:16 PM
2007-02-16 04:28 PM
2007-02-16 04:32 PM
2007-02-16 04:42 PM
2007-02-16 04:50 PM
TomWaltz wrote:Right, Hence my posting here in the GDL forum.
Without GDL... that might not be possible. You would need to tie the scale to the viewport somehow, which most objects cannot do without some scripting.
2007-02-17 07:28 PM
drwg_scale = -1
IF STRSTR(AC_DrawingScale, `0"`) > 0 THEN 100
IF STRSTR(AC_DrawingScale, `1"`) = 1 THEN 200
IF STRSTR(AC_DrawingScale, `:`) > 0 THEN 300
100: ! ARCHITECTURAL SCALES
IF STRSTR(AC_DrawingScale, `1/128"`) = 1 THEN drwg_scale = 1536
IF STRSTR(AC_DrawingScale, `1/64"`) = 1 THEN drwg_scale = 768
IF STRSTR(AC_DrawingScale, `1/32"`) = 1 THEN drwg_scale = 384
IF STRSTR(AC_DrawingScale, `1/16"`) = 1 THEN drwg_scale = 192
IF STRSTR(AC_DrawingScale, `3/32"`) = 1 THEN drwg_scale = 128
IF STRSTR(AC_DrawingScale, `1/8"`) = 1 THEN drwg_scale = 96
IF STRSTR(AC_DrawingScale, `3/16"`) = 1 THEN drwg_scale = 64
IF STRSTR(AC_DrawingScale, `1/4"`) = 1 THEN drwg_scale = 48
IF STRSTR(AC_DrawingScale, `3/8"`) = 1 THEN drwg_scale = 32
IF STRSTR(AC_DrawingScale, `1/2"`) = 1 THEN drwg_scale = 24
IF STRSTR(AC_DrawingScale, `3/4"`) = 1 THEN drwg_scale = 16
IF STRSTR(AC_DrawingScale, `1"`) = 1 THEN drwg_scale = 12
IF STRSTR(AC_DrawingScale, `1 1/2"`) = 1 THEN drwg_scale = 8
IF STRSTR(AC_DrawingScale, `3"`) = 1 THEN drwg_scale = 4
IF STRSTR(AC_DrawingScale, `6"`) = 1 THEN drwg_scale = 2
IF STRSTR(AC_DrawingScale, `1'`) = 1 THEN drwg_scale = 1
GOTO 1000
200: ! ENGINEERING SCALES
IF STRSTR(AC_DrawingScale, `1'`) > 0 THEN drwg_scale = 12
IF STRSTR(AC_DrawingScale, `2'`) > 0 THEN drwg_scale = 24
IF STRSTR(AC_DrawingScale, `5'`) > 0 THEN drwg_scale = 60
IF STRSTR(AC_DrawingScale, `10'`) > 0 THEN drwg_scale = 120
IF STRSTR(AC_DrawingScale, `20'`) > 0 THEN drwg_scale = 240
IF STRSTR(AC_DrawingScale, `30'`) > 0 THEN drwg_scale = 360
IF STRSTR(AC_DrawingScale, `40'`) > 0 THEN drwg_scale = 480
IF STRSTR(AC_DrawingScale, ` 50'`) > 0 THEN drwg_scale = 600
IF STRSTR(AC_DrawingScale, `100'`) > 0 THEN drwg_scale = 1200
IF STRSTR(AC_DrawingScale, `200'`) > 0 THEN drwg_scale = 2400
IF STRSTR(AC_DrawingScale, `=500'`) > 0 THEN drwg_scale = 6000
IF STRSTR(AC_DrawingScale, `1000'`) > 0 THEN drwg_scale = 12000
IF STRSTR(AC_DrawingScale, `1250'`) > 0 THEN drwg_scale = 15000
IF STRSTR(AC_DrawingScale, `2500'`) > 0 THEN drwg_scale = 30000
GOTO 1000
300: ! METRIC SCALES
n = STRSTR(AC_DrawingScale, `:`)
r = SPLIT(STRSUB(AC_DrawingScale, n, 5), "%n", drwg_scale)
ML_graphic_scale = 0
1000: ! DONE WITH SCALES 😞