Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2006 Viewport Scale Codes

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
213 Views, 10 Replies

2006 Viewport Scale Codes

Please help.
I don't have 2006! But I am trying to help a friend who does.

Can someone please check the list below to see if I have the viewport scale codes correct for 2006. Also are there any missing. WHY is this not documented by AUTODESK and yes I meant to shout!!!! Sorry.

Please don't cut and paste from the 2006 help file as my understanding is that the values there are for 2005!

For example, does the lisp variable acVp11 evaluate to 12 and represent the viewport metric scale 1:100
and does the lisp var acVp22 evaluate to 23 and represent imperial scale 1/8":1' (1:96)

;| The following is for information purposes only.
It is a list of the changes to viewport scale variables from 2005 to 2006
acVpScaleToFit enum = 0
acVpCustomScale enum = 1
acVp1_1 => acVp1 => Scale = 1.0 => 2005 enum = 2 => 2006 enum = 2
acVp1_2 => acVp2 => Scale = 2.0 => 2005 enum = 3 => 2006 enum = 3
acVp1_4 => acVp3 => Scale = 4.0 => 2005 enum = 4 => 2006 enum = 4
acVp1_8 => acVp4 => Scale = 8.0 => 2005 enum = 5 => 2006 enum = 5
acVp1_10 => acVp5 => Scale = 10.0 => 2005 enum = 6 => 2006 enum = 6
acVp1_16 => acVp6 => Scale = 16.0 => 2005 enum = 7 => 2006 enum = 7
acVp1_20 => acVp7 => Scale = 20.0 => 2005 enum = 8 => 2006 enum = 8
acVp1_30 => acVp8 => Scale = 30.0 => 2005 enum = 9 => 2006 enum = 9
acVp1_40 => acVp9 => Scale = 40.0 => 2005 enum = 10 => 2006 enum = 10
acVp1_50 => acVp10 => Scale = 50.0 => 2005 enum = 11 => 2006 enum = 11
acVp1_100 => acVp11 => Scale = 100.0 => 2005 enum = 12 => 2006 enum = 12
acVp2_1 => acVp12 => Scale = 0.5 => 2005 enum = 13 => 2006 enum = 13
acVp4_1 => acVp13 => Scale = 0.25 => 2005 enum = 14 => 2006 enum = 14
acVp8_1 => acVp14 => Scale = 0.125 => 2005 enum = 15 => 2006 enum = 15
acVp10_1 => acVp15 => Scale = 0.1 => 2005 enum = 16 => 2006 enum = 16
acVp100_1 => acVp16 => Scale = 0.01 => 2005 enum = 17 => 2006 enum = 17
acVp1_128in_1ft => acVp17 => Scale = 1536.0 => 2005 enum = 18 => 2006 enum = 18
acVp1_64in_1ft => acVp18 => Scale = 768.0 => 2005 enum = 19 => 2006 enum = 19
acVp1_32in_1ft => acVp19 => Scale = 384.0 => 2005 enum = 20 => 2006 enum = 20
acVp1_16in_1ft => acVp20 => Scale = 192.0 => 2005 enum = 21 => 2006 enum = 21
acVp3_32in_1ft => acVp21 => Scale = 128.0 => 2005 enum = 22 => 2006 enum = 22
acVp1_8in_1ft => acVp22 => Scale = 96.0 => 2005 enum = 23 => 2006 enum = 23
acVp3_16in_1ft => acVp23 => Scale = 64.0 => 2005 enum = 24 => 2006 enum = 24
acVp1_4in_1ft => acVp24 => Scale = 48.0 => 2005 enum = 25 => 2006 enum = 25
acVp3_8in_1ft => acVp25 => Scale = 32.0 => 2005 enum = 26 => 2006 enum = 26
acVp1_2in_1ft => acVp26 => Scale = 24.0 => 2005 enum = 27 => 2006 enum = 27
acVp3_4in_1ft => acVp27 => Scale = 16.0 => 2005 enum = 28 => 2006 enum = 28
acVp1in_1ft => acVp28 => Scale = 12.0 => 2005 enum = 29 => 2006 enum = 29
acVp1and1_2in_1ft => acVp29 => Scale = 8.0 => 2005 enum = 30 => 2006 enum = 30
acVp3in_1ft => acVp30 => Scale = 4.0 => 2005 enum = 31 => 2006 enum = 31
acVp6in_1ft => acVp31 => Scale = 2.0 => 2005 enum = 32 => 2006 enum = 32
acVp1ft_1ft => acVp32 => Scale = 1.0 => 2005 enum = 33 => 2006 enum = 33
|;

Thanks
S Message was edited by: Sherm
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: Anonymous

I have prepared the attached lisp to help.
If you run the lisp (c:vps) and select a viewport it will return the name of the variable corresponding to the viewport scale.
It will tell you if the scale is not in my list!

Cheers
S
Message 3 of 11
Anonymous
in reply to: Anonymous

Oops!

There was an error in the lisp.
I have attached a new one.
I have also prepared two drawings, one imperial and one metric. If you open up the drawings and run the lisp, picking the viewports one by one it will display the scale values for each viewport.
Maybe someone has 15mins to fill in the blank text in each viewport and post the updated drawings?

Thanks
S
Message 4 of 11
Anonymous
in reply to: Anonymous

Hi Sherm I had your private mail and I answer here:


SCALE = "TO FIT"
05 CODE = acVpCustomScale
05 CODE VAL = 1
06 CODE = acVpCustomScale

SCALE = 1:150
05 CODE = acVpCustomScale
05 CODE VAL = 1
06 CODE = acVpCustomScale

--------------------------------
All other values:

06 CODE = acVp(05 CODE VAL - 1)
06 CODE VAL = 05 CODE VAL
--------------------------------


Exmples:

SCALE = 1:1
05 CODE = acVp1_1
05 CODE VAL = 2
06 CODE = acVp1
06 CODE VAL = 2

SCALE = 8:1
05 CODE = acVp8_1
05 CODE VAL = 15
06 CODE = acVp14
06 CODE VAL = 15


In Imperial Vps there are some exceptions:

05 CODE VAL = 33
06 CODE = acVp1
06 CODE VAL = 2

05 CODE VAL = 32
06 CODE = acVp2
06 CODE VAL = 3

05 CODE VAL = 31
06 CODE = acVp3
06 CODE VAL = 4

05 CODE VAL = 30
06 CODE = acVp4
06 CODE VAL = 5

05 CODE VAL = 28
06 CODE = acVp6
06 CODE VAL = 7


All other have the same rule:

06 CODE = acVp(05 CODE VAL - 1)
06 CODE VAL = 05 CODE VAL


HTH

--

Marc'Antonio Alessi
http://xoomer.virgilio.it/alessi
(strcat "NOT a " (substr (ver) 8 4) " guru.")

--
Message 5 of 11
Anonymous
in reply to: Anonymous

Thats great, thanks

So based on what you've said are the following symbol names valid in 2006?
acVp27
acVp29
acVp30
acVp31
acVp32


Also to my other question. What are the following symbol names for?
acVp33 to acVp100

thanks
S Message was edited by: Sherm
Message 6 of 11
Anonymous
in reply to: Anonymous

> So based on what you've said are the following symbol names valid in 2006?
Yes:
acVp27 > 06 CODE VAL = 28
acVp29 > 06 CODE VAL = 30
acVp30 > 06 CODE VAL = 31
acVp31 > 06 CODE VAL = 32
acVp32 > 06 CODE VAL = 33


> Also to my other question. What are the following symbol names for?
> acVp33 to acVp100

Command:

(progn
(foreach forelm (atoms-family 1)
(if (= "ACVP" (substr forelm 1 4))
(princ (strcat "\n" forelm " = " (itoa (eval (read forelm)))))
)
)
(princ)
)

>
ACVPSCALETOFIT = 0
ACVP100 = 101
ACVPCUSTOMSCALE = 1
ACVP99 = 100
ACVP98 = 99
ACVP97 = 98
ACVP96 = 97
ACVP95 = 96
ACVP94 = 95
ACVP93 = 94
ACVP92 = 93
ACVP91 = 92
ACVP90 = 91
ACVP89 = 90
ACVP88 = 89
ACVP87 = 88
ACVP86 = 87
ACVP85 = 86
ACVP84 = 85
ACVP83 = 84
ACVP82 = 83
ACVP81 = 82
ACVP80 = 81
ACVP79 = 80
ACVP78 = 79
ACVP77 = 78
ACVP76 = 77
ACVP75 = 76
ACVP74 = 75
ACVP73 = 74
ACVP72 = 73
ACVP71 = 72
ACVP70 = 71
ACVP69 = 70
ACVP68 = 69
ACVP67 = 68
ACVP66 = 67
ACVP65 = 66
ACVP64 = 65
ACVP63 = 64
ACVP62 = 63
ACVP61 = 62
ACVP60 = 61
ACVP59 = 60
ACVP58 = 59
ACVP57 = 58
ACVP56 = 57
ACVP55 = 56
ACVP54 = 55
ACVP53 = 54
ACVP52 = 53
ACVP51 = 52
ACVP50 = 51
ACVP49 = 50
ACVP48 = 49
ACVP47 = 48
ACVP46 = 47
ACVP45 = 46
ACVP44 = 45
ACVP43 = 44
ACVP42 = 43
ACVP41 = 42
ACVP40 = 41
ACVP39 = 40
ACVP38 = 39
ACVP37 = 38
ACVP36 = 37
ACVP35 = 36
ACVP34 = 35
ACVP33 = 34
ACVP32 = 33
ACVP31 = 32
ACVP30 = 31
ACVP29 = 30
ACVP28 = 29
ACVP27 = 28
ACVP26 = 27
ACVP25 = 26
ACVP24 = 25
ACVP23 = 24
ACVP22 = 23
ACVP21 = 22
ACVP20 = 21
ACVP19 = 20
ACVP18 = 19
ACVP17 = 18
ACVP16 = 17
ACVP15 = 16
ACVP14 = 15
ACVP13 = 14
ACVP12 = 13
ACVP11 = 12
ACVP10 = 11
ACVP9 = 10
ACVP8 = 9
ACVP7 = 8
ACVP6 = 7
ACVP5 = 6
ACVP4 = 5
ACVP3 = 4
ACVP2 = 3
ACVP1 = 2

--

Marc'Antonio Alessi
http://xoomer.virgilio.it/alessi
(strcat "NOT a " (substr (ver) 8 4) " guru.")

--
Message 7 of 11
Anonymous
in reply to: Anonymous

Thanks Marc'Antonio,

I understand the values now.

But what do they represent. What are acVp33 to acVp100 used for?

Do they represent "standard" scales that aren't in my list above?

If the symbols acVP27, acVp29 - acVp32 are not used for the imperial scales 16, 8, 4, 2 and 1, then have they been reassigned to something else?

I appreciate Marc'Antonio that you might not know the answers to these questions but surely AUTODESK does?!?

Thanks
S
Message 8 of 11
evillispmonkey
in reply to: Anonymous

Arent there other scales out there beyond just metric and imperial. i.e. Astronomical units and the like? Well nevermind then. I took a look at what your talking about and i'm guessing that the ones out there beyond the standards are set up for user custom vport scales as there May be someones use to have up to only god knows how many view ports each with a custom scale to show multitudinous view of different details in something as complex as say a complete assembly of a supertanker or something radiculous like that.

J Message was edited by: evillispmonkey
Message 9 of 11
Anonymous
in reply to: Anonymous

Basically here's how it works.
There are 32 standard scales. 16 metric, 16 imperial.
Everything else is considered "custom".
At least that was the case prior to 2006.

What I am trying to establish is an acurate and complete list for 2006. What has changed and what hasn't? Are there new "standard scales" and if so what are their corresponding variables and codes! Someone somewhere must know! Why doesn't AutoDesk answer these questions!

Marc'Antonio has shown us what the codes are BUT I still don't know what they mean or stand for or relate to (apart from my list in the OP)

I cannot believe it is proving to be so difficult!
S
Message 10 of 11
evillispmonkey
in reply to: Anonymous

they are user defined. Meaning empty values untill Defined by the user. Thus they dont have a specific default value except for possibly 1:1

hth
J
Message 11 of 11
Anonymous
in reply to: Anonymous

> I appreciate Marc'Antonio that you might not know the answers to these
> questions but surely AUTODESK does?!?

Yes, I do not know the answers.

Sorry.


Cheers.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost