Jump to content
  • 0

Toggle Zoom Line Thickness preference


wvancampen

Question

I wish there was a keyboard command to toggle the Zoom Line Thickness preference.

I prefer to draw with it off, both to draw more accurately (ie without line thicknesses obscuring others), and also for speed. But I do like to occasionally check how the actual line thicknesses read graphically. Going into the Preferences dialog box is a bit of a pain--a keyboard command would help.

Link to comment

5 answers to this question

Recommended Posts

  • 0

Here is a script to make any preference a plug-in, you can add it to a workspace and asign a shortcut to it.

As it is the script is set to toggle Zoom Line Thickness. The first line is the script or you can copy the whole thing into a script for future needs.

SetPref(9, NOT GetPref(9));

{Set kPref below to the value from the fol-

lowing list to toggle the stated preference:

Click-Drag Mode = 0

Offset Duplicates = 1

Full Screen Cursor = 2

Show Screen Hints = 3

Floating Datum = 4

Snap To Loci = 5

Show Rulers = 6

Show Scroll Bars = 7

No Fill Behind Text = 8

Zoom Line Thickness = 9

Black and White Only = 10

Use Layer Colors = 11

Log Time in Program = 12

Adjust Flipped Text = 13

Show Other Objects While In Group = 14

Show 3D Axis Labels = 15

Use Black Background = 16

Use Eight Selection Handles = 17

Use Sound = 18

Issue Undo Warnings = 19

Opaque SmartCursor = 20

Stop VectorScript on Warnings = 21

Left Palette Margin = 22

Right Palette Margin = 23

Use Save Reminder = 24

Show Parametric Constraints = 25

Display Minor Alerts on Mode Bar = 27

Associate Dimensions = 28

Spell Check Capitalized Words = 29

Spell Check Words in ALL CAPS = 30

Spell Check Mixed Case Words = 31

Spell Check Words With Numbers = 32

Auto Join Walls = 33

Show Page Breaks = 34

Show Grid = 35

Print Grid = 36

Snap To Grid = 37

Snap To Object = 38

Save By Time = 39

Save Confirm = 40

Save To Backup = 41

Palette Docking = 43

Create Dimensions in Dimension Class = 44

Accelerated 2D Navigation = 45

Use Vector Caching = 46

Sketch Hidden Line = 47

Snap to Edge Points = 48

Show Page Boundary = 49

Display Default Content = 130}

Link to comment
  • 0

You can turn Ray's script into a menu command as follows:

- Copy the script.

- Enter the Vectorscript Editor (Tools/Scripts/Vectorscript Plug-in Editor)

- Create a new Command (ie. Menu) item and name it Toggle zoom lines.

- Hit the Script button.

- Paste the script into the script window and hit OK.

- Hit Done.

To add this new Menu Command to your Workspace:

- Open the Workspace Editor

- Switch to Menus and open the Document Context menu

- Find the Toggle Zoom Lines menu item in the Commands list in the LH pane.

- Drag this from the Commands List to your preferred location in the Document Context menu.

- Hit OK.

You should now see this new Command on the Context menu that comes up when you right click in an empty part of the drawing window. If it doesn't appear straight away restart VectorWorks and it should then appear.

This process will work for any of the Commands Ray has included in his comprehensive list (many thanks to Ray for that list).

Link to comment

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
Answer this question...

×   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...