std-vport-next


Synopsis

(std-vport-next)

Description

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))

Example

;;; 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
)

Arguments

None

Return Value

Nil.

Side Effects

Switches the input focus to the next available AutoCAD VPORT.

Module

(std-require 'STDTBL)

Defined in STDTBL