Author Topic: (command "regen") crashes autocad  (Read 2801 times)

0 Members and 1 Guest are viewing this topic.

SIDESHOWBOB

  • Guest
(command "regen") crashes autocad
« on: June 21, 2012, 06:55:45 AM »
Calling (command "regen") works once in a lisp script, but the second time I call it - autocad freezes up completely.

Is this expected behaviour and is there a way around it?

Cheers!

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: (command "regen") crashes autocad
« Reply #1 on: June 21, 2012, 07:05:27 AM »
Code: [Select]
;; Regen all
(vla-Regen (vla-get-activedocument (vlax-get-acad-object)) acAllViewports)
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

SIDESHOWBOB

  • Guest
Re: (command "regen") crashes autocad
« Reply #2 on: June 21, 2012, 07:26:38 AM »
Excellent - thank you!