I am getting the following error when zoomed extents in a layout with 15 viewports:
Command: CVPORT
Enter new value for CVPORT <1>: 3
Cannot set CVPORT to that value.
*Invalid*
The layer is not locked, the viewport is. Unlocking the viewport doesn't solve the problem.
From help:
Type: Integer
Saved in: Drawing
Initial value: 2
You can change this value, which changes the current viewport, if the following conditions are met:
The identification number you specify is that of an active viewport.
A command in progress has not locked cursor movement to that viewport.
Tablet mode is off.
MaxActVP is set to 64.
No command is active.
TABMODE is set to 0.
The objective:
I have found that occasionally my annotative objects don't display/plot. Activating the viewport, unlocking the scale, changing the scale, then changing it back solves the problem. To automate this process I wrote this:
(defun c:RegenAllDetails
(/ doc
) )
(setvar "cannoscale" oldannoscale
) ) ;end progn
) ;end if
)
)
(tolist
(ssget "X" '
((0 .
"VIEWPORT")))) )
)
But it fails on the setvar cvport.
Thanks in advance.
Mike