std-vport-next | ![]() |
STD-VPORT-NEXT is used to switch the focus to the next VPORT. This may be used to iterate over the available viewports.
Note
The list of all available VPORTS is returned by (VPORTS)
The ID of the current VPORT is (CAAR (VPORTS))
;;; return ID of next plan viewport or nil if there's none
(defun next-plan-vport (/ act-vp vp) (setq act-vp (getvar "CVPORT")) (while (and (not (std-view-plan-p)) (/= act-vp (caar (vports))) (std-vport-next)) (if (std-view-plan-p) (setq vp (caar (vports)))) (setvar "CVPORT" act-vp) vp )
None
Nil.
Switches the input focus to the next available AutoCAD VPORT.
(std-require 'STDTBL)
Defined in STDTBL