AutoCAD/Viewport Boundary

Advertisement


Question
QUESTION: Is there any way to map the Paperspace Viewport mapping boundary other than zoom window option in the Mspace of the current Viewport.. Help me to overcome this hurdle.

thanks in advance
Dharani

ANSWER: The most important part of the viewport is the scale factor of the model space within.  That is achieved with the XP option of the zoom command while in the viewport.  So with the viewport unlocked, and in model space, type zoom and 1xp to make the scale factor of the model space equal to that of paper space.  Or type Zoom .5xp to make the scale factor of model space half of that of paper space.  So whatever you plot paper space, your model space viewport will be relative to that.  

Next is to stretch out or in the viewport boundary to fit what you want to see within it.  If you have a title block now is the time to insert it and to a scale that will be compatible with drafting standards and will encompasss all of the viewport that you want to see on paper.  Try not to to odd scaling like 1/48 (which is also 1/4" = 1'-0")  for Architectural drawing, but create title blocks that are 48 times as large as the size of paper you want to plot it on.  This is to keep Linetype Scale at a reasonable value for both Model and Paper space work.  I have not found PSLTSCALE system variable to be very reliable.

If you need further assistance, please keep the conversation going.

Keep in touch
Bill DeShawn
http://my.sterling.net/~bdeshawn



---------- FOLLOW-UP ----------

QUESTION: Hi Bill,
  Thanks for your information on this. Is there any other way through VBA for mapping the modalspace area otherthan the following
mspace=true and zoom window the xp area with in the veiwport modelspace area.

thanks
Dharani


Answer
How about LISP?

(defun c:z1 ()
  (if (= (getvar "ctab") "Model")
     (princ "Cannot run from Model Tab!  ")
     (progn (command "_.mspace") (command "_.zoom" "1xp"))
  )
  (command "_.pspace")
  (princ)
)
(alert "Unlock Viewport to Run.  Lock Viewport after running.")

(defun c:vpl () (command "_.mview" "lo" "on" pause "")(princ)); locks viewport
(defun c:vpu () (command "_.mview" "lo" "off" pause "")(princ)); unlocks viewport


Keep in touch.
Bill DeShawn
http://my.sterling.net/~bdeshawn

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill DeShawn

Expertise

I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.

Experience

I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.

Publications
I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at http://my.sterling.net/~bdeshawn

©2012 About.com, a part of The New York Times Company. All rights reserved.