To select the viewport(s).
Creating a replacement viewport is probably the best option.Code:Erase All Remove (window everything) Oops
It may be worth setting Maxactvp to a higher value 'tho that is not what it is supposed to control.
|
To select the viewport(s).
Creating a replacement viewport is probably the best option.Code:Erase All Remove (window everything) Oops
It may be worth setting Maxactvp to a higher value 'tho that is not what it is supposed to control.
There is actually a way of getting viewports like this without programming / setting that obscure Visible property.
See my posts #22 & #23 in this thread. It could easily happen if someone's used qselect/filter to erase all polylines on the layout tab (e.g.).
Try the command "Visible" .. works in 2012 for sure. not sure about earlier versions.
-R
That's possibly a new command, not available in 2008 nor 2011.
Anyhow, I've tested TestVP.dwg. Using some lisp:When I do it I get:Code:(setq n 0 ss (ssget "_X" '((0 . "VIEWPORT")))) (while (setq en (ssname ss n)) (setq eo (vlax-ename->vla-object en) n (1+ n)) (princ "\n") (princ n) (princ "\t") (princ (vla-get-Visible eo)) (princ) )Showing that all 3 viewports (the 2 on the page and the page itself) are all visible. Yet one of those is not "visible", selectable or editable - you can only go into its model space.Code:1 :vlax-true 2 :vlax-true 3 :vlax-true
BTW, if you could possibly selecting (e.g. using perhaps the All and remove crossing) then you could VPClip on it and the VPClip delete again. That restores the VP to "normal".
Last edited by irneb; 2011-07-12 at 04:09 PM.
It's definately what's wrong with your Missing Viewport drawing. See this video screen capture:
Thanks for your reply. This does work in the test file.
In the real file there are two invisible viewports and I can only get this to work on one viewport by:
Deleting the other visible viewports,
use 'quickselect' to select viewports
VPCLIP and enter 'last' as the selection option, create a polygon
Have not worked out how to (manually) step through the previous selection list to select the second last element.
If you want to send a copy the file to me with the offending viewports, I will dig on it a bit.
My email is [myname]@gmail.com Just put 'AUGI problem' in the subject
-R
invisibility property - brilliant solution - worked like a charm!! thanks T!!