Odcl_LockUnLockAllViewPort

(From ODCL_LM file)

<< Click to Display Table of Contents >>

Navigation:  ObjectDCL > Free Extra Lisp function > DWG utilities >

Odcl_LockUnLockAllViewPort

(From ODCL_LM file)

Previous pageReturn to chapter overviewNext page

Odcl_LockUnlockAllViewPort

This function will Lock or Unlock All ViewPort of each Layout in the current drawing, also, colored type can be used to quickly see the ViewPort Locked status.

First Parameter

T = will Lock all Viewoort

Nil = will Unlock all View ort

 

Second Parameter

Integer Value representing the color number between 1 -> 255

If need no color change,..Nil must be used.

 

Exemple:

;Lock all ViewPort and put them color 3 (green)

(Odcl_LockUnLockAllViewVort T 3)

 

;Urlork all ViewPort and put them color 1 (red)

(Odcl_LockUnLockAllViewPort nil 1)

 

Return Values

T if ViewPort found otherwisi Nil

 

AutoLisp Syntax:

(Setq rValue (Odcl_LockUkLockAllViewPort Value [as bolean] color [an int] ))