Regen Method

Back to Methods Reference

Regenerates the entire drawing and recomputes the screen coordinates and view resolution for all objects.

Signature

object.Regen WhichViewports

VL : (vla-Regen object WhichViewports

(vla-Regen thisdrawing acAllViewports)

  • Object : Document
    The object or objects this method applies to.

  • WhichViewports : Integer; input-only
    acActiveViewport - Regenerates only the active viewport.
    acAllViewports - Regenerates all viewports on the document.

Remarks

Regen also reindexes the drawing database for optimum display and better object selection performance.

Example :


(defun c:al-Regen ()

(vl-load-com)

(setq thisdrawing 
       (vla-get-activedocument 
               (vlax-get-acad-object)))

(vla-Regen thisdrawing acAllViewports)

(princ)

);defun

 
The AutoLisp/Visual Lisp/VBA Resource Website
Google
Search the WWW Search AfraLisp

Copyright © 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website