Jump to content

Viewport Scaling


cadmando2

Recommended Posts

Using AutoCAD 2004 & 2008

I’m looking at modifying a toolbar.

I’m using a custome Viewport Scale the zoom scale command.

^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/240xp;^C^C_.pspace;

I was wanting to have an option to change the attributes or select a text on the Viewport Label to change with the Viewport Scale. But I would like the option to change the Viewport label or not

Attribute tag is “SCALE”.

Right now the Viewport Scale is in a Macro.

[1:1]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1xp;^C^C_.pspace;

[1:2]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/2xp;^C^C_.pspace;

[1:4]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/4xp;^C^C_.pspace;

[1:8]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/8xp;^C^C_.pspace;

[1:10]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/120xp;^C^C_.pspace;

[1:16]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/16xp;^C^C_.pspace;

[1:20]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/240xp;^C^C_.pspace;

[1:30]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/360xp;^C^C_.pspace;

[1:40]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/480xp;^C^C_.pspace;

[1:50]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/600xp;^C^C_.pspace;

[1:100]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/100xp;^C^C_.pspace;

[2:1]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 2xp;^C^C_.pspace;

[4:1]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 4xp;^C^C_.pspace;

[8:1]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 8xp;^C^C_.pspace;

[10:1]^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 10xp;^C^C_.pspace;

[

[1/128"=1']^C^C_-vports _on _p;;^C^C_-vports_lock_off _p;;^C^C_.mspace;^C^C_zoom /1536xp;^C^C_.pspace;

[1/64"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _ p;;^C^C_.mspace;^C^C_zoom /768xp;^C^C_.pspace;

[1/32"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom /240xp;^C^C_.pspace;

[1/16"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom /192xp;^C^C_.pspace;

[3/32"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off p;;^C^C_.mspace;^C^C_zoom1/128xp;^C^C_.pspace;

[1/8"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/96xp;^C^C_.pspace;

[3/16"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/64xp;^C^C_.pspace;

[1/4"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/48xp;^C^C_.pspace;

[3/8"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/320xp;^C^C_.pspace;

[1/2"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/24xp;^C^C_.pspace;

[3/4"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/16xp;^C^C_.pspace;

[1"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/12xp;^C^C_.pspace;

[3"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/4xp;^C^C_.pspace;

[6"=1']^C^C_-vports _on _p;;^C^C_-vports _lock _off _p;;^C^C_.mspace;^C^C_zoom 1/2xp;^C^C_.pspace;

[

 

This there a lisp routine out there.

Could any one help me?

Link to comment
Share on other sites

Is the Viewport Label only in '08 - I have never heard of doing it in '04... :(

 

But I think this may be better accomplished using LISP rather than a macro imo. :)

 

Cheers

 

Lee

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...