Regen Method

Back to Methods Reference

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


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.


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

Example :

(defun c:al-Regen ()


(setq thisdrawing 

(vla-Regen thisdrawing acAllViewports)



The AutoLisp/Visual Lisp/VBA Resource Website
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