<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reactor question in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830104#M160628</link>
    <description>I wrote a simple reactor to change the ltscale in autocad base on whether or&lt;BR /&gt;
not the user was in model space or paper space.  I did this to keep us from&lt;BR /&gt;
plotting with our linetypes all messed up and at the same time reset the&lt;BR /&gt;
ltscale so that our drawings appear correctly in model space.  It worked&lt;BR /&gt;
well, except for the annoying extra regen.&lt;BR /&gt;
&lt;BR /&gt;
This worked fine in A2K, but seems to interfere with the cached layouts in&lt;BR /&gt;
A2Ki and causes a fatal crash.  I believe it has to do with forcing the&lt;BR /&gt;
regen within the cached layout.  If we set autocad to force regens (under&lt;BR /&gt;
the system tab in preferences) when switching between layouts, we can still&lt;BR /&gt;
use it in A2Ki, however, it would be nice to be able to cache the layouts to&lt;BR /&gt;
speed things up.  Does anyone know a way to test to see if a layout has been&lt;BR /&gt;
chached, or perhaps someone has another suggestion.&lt;BR /&gt;
&lt;BR /&gt;
On a side note, this also appears to interfere with *some* not all excel&lt;BR /&gt;
items that we have pasted into autocad.  The result is that the user cannot&lt;BR /&gt;
switch between layouts until the reactor has been removed.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any suggestions.&lt;BR /&gt;
Lance&lt;BR /&gt;
&lt;BR /&gt;
(defun C:INIT-MAINTAIN-LTSCALE ()&lt;BR /&gt;
    (vl-load-com)&lt;BR /&gt;
&lt;BR /&gt;
;;; Establish reactor&lt;BR /&gt;
    (setq LTSCREACT (vlr-miscellaneous-reactor&lt;BR /&gt;
   "MAINTAINLTSCALE"&lt;BR /&gt;
   '((:vlr-layoutswitched . MAINTAIN-LTSCALE))&lt;BR /&gt;
      ) ;_ End vlr-miscellaneous-reactor&lt;BR /&gt;
    ) ;_ End setq&lt;BR /&gt;
) ;_ End defun&lt;BR /&gt;
&lt;BR /&gt;
(defun MAINTAIN-LTSCALE (REACT-NAME DATA)&lt;BR /&gt;
    (if (= (getvar "tilemode") 1)&lt;BR /&gt;
 (progn&lt;BR /&gt;
     (setvar "ltscale" (getvar "dimscale"))&lt;BR /&gt;
     (vla-regen (vla-get-activedocument (vlax-get-acad-object))&lt;BR /&gt;
         acallviewports&lt;BR /&gt;
     ) ;_ End vla-regen&lt;BR /&gt;
 ) ;_ progn&lt;BR /&gt;
 (progn&lt;BR /&gt;
     (setvar "ltscale" 1)&lt;BR /&gt;
     (vla-regen (vla-get-activedocument (vlax-get-acad-object))&lt;BR /&gt;
         acallviewports&lt;BR /&gt;
     ) ;_ End vla-regen&lt;BR /&gt;
 ) ;_ progn&lt;BR /&gt;
    ) ;_ End if&lt;BR /&gt;
) ;_ End defun</description>
    <pubDate>Mon, 21 Aug 2000 20:51:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-08-21T20:51:16Z</dc:date>
    <item>
      <title>Reactor question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830096#M160620</link>
      <description>Attached is a small jpg of an alert I get when I close a drawing.  Would I&lt;BR /&gt;
get this if a reactor is firing or is there something wrong?&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins</description>
      <pubDate>Tue, 01 Feb 2000 23:25:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830096#M160620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-01T23:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reactor question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830097#M160621</link>
      <description>Dan,&lt;BR /&gt;
&lt;BR /&gt;
I have received this same message as the result of a mistake in AutoLISP&lt;BR /&gt;
programming in which I tried to close the drawing without answering a&lt;BR /&gt;
previous prompt.&lt;BR /&gt;
&lt;BR /&gt;
As I recall, it was difficult to get out of the situation as Esc would not&lt;BR /&gt;
cancel it.  Can't remember what I did, though.&lt;BR /&gt;
&lt;BR /&gt;
Hope this will give you some ideas what to check.&lt;BR /&gt;
--&lt;BR /&gt;
Dave D&lt;BR /&gt;
&lt;BR /&gt;
Dan Elkins &lt;DELKINS&gt; wrote in article&lt;BR /&gt;
&amp;lt;877prf$ngh31@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt; Attached is a small jpg of an alert I get when I close a drawing.  Would&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; get this if a reactor is firing or is there something wrong?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Dan Elkins&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/DELKINS&gt;</description>
      <pubDate>Thu, 03 Feb 2000 01:41:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830097#M160621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-02-03T01:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reactor question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830098#M160622</link>
      <description>I am trying to attach reactors to a copied blockref object which has&lt;BR /&gt;
reactors attached.  First, why don't the reactors go with the copied object&lt;BR /&gt;
in the first place and second, why can't you convert the ename of the newly&lt;BR /&gt;
created object to a vla-object?  I get the following error values when the&lt;BR /&gt;
subr below is called:&lt;BR /&gt;
&lt;BR /&gt;
[0.61] (VL-BT)&lt;BR /&gt;
[1.57] (*ERROR* "Automation Error. Description was not provided.")&lt;BR /&gt;
[2.52] (_call-err-hook #&lt;SUBR&gt; "Automation Error.&lt;BR /&gt;
Description&lt;BR /&gt;
was not provided.")&lt;BR /&gt;
[3.46] (sys-error "Automation Error. Description was not provided.")&lt;BR /&gt;
:ERROR-BREAK.41 nil&lt;BR /&gt;
[4.38] (intelligent-invoke #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
"ObjectIdToObject" 1 24831232)&lt;BR /&gt;
[5.30] (#&lt;SUBR&gt; #&lt;VLA-OBJECT iacaddocument=""&gt;&lt;BR /&gt;
00b91294&amp;gt; "ObjectIdToObject" 24831232)&lt;BR /&gt;
[6.24] (vla-ObjectIDToObject #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt; 24831232)&lt;BR /&gt;
[7.18] (vlax-ename-&amp;gt;vla-object &lt;ENTITY ="" 17ae500=""&gt;)&lt;BR /&gt;
[8.13] (BDR:REACTION-COPIED #&lt;VLA-OBJECT iacadblockreference="" 04024074=""&gt;&lt;BR /&gt;
#&lt;VLR-OBJECT-REACTOR&gt; (&lt;ENTITY ="" 17ae500=""&gt;))&lt;BR /&gt;
:CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)&lt;BR /&gt;
:REACTOR-CALLBACK.3 :REACTOR-CALLBACK&lt;BR /&gt;
&lt;BR /&gt;
As you can see this is my first reactor attempt.  Enlighten me, friends.&lt;BR /&gt;
&lt;BR /&gt;
;BDR:REACTION-COPIED________________________________________________________&lt;BR /&gt;
_____________________________________________________&lt;BR /&gt;
;Reactor callback to attach reactors to a copied border&lt;BR /&gt;
&lt;BR /&gt;
(defun bdr:reaction-copied (notifier-object reactor-object parameter-list /&lt;BR /&gt;
blockname blkref)&lt;BR /&gt;
&lt;BR /&gt;
 (setq&lt;BR /&gt;
  blockname (vlr-data reactor-object)&lt;BR /&gt;
  blkref (vlax-ename-&amp;gt;vla-object (car parameter-list)) ;THE NEWLY CREATED&lt;BR /&gt;
OBJECT&lt;BR /&gt;
 )&lt;BR /&gt;
 (vlr-pers&lt;BR /&gt;
  (vlr-object-reactor&lt;BR /&gt;
   (list blkref)&lt;BR /&gt;
   blockname&lt;BR /&gt;
   '((:vlr-erased . bdr:reaction-erased)(:vlr-copied . bdr:reaction-copied))&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
Cliff Middleton, Tool Engineering Manager&lt;BR /&gt;
General Broach Company&lt;BR /&gt;
ph 517 458 7555 fax 517 458 6821&lt;BR /&gt;
ICQ 31386833&lt;BR /&gt;
&lt;BR /&gt;
Broaching...learn it, live it, love it.&lt;BR /&gt;
www.generalbroach.com&lt;/ENTITY&gt;&lt;/VLR-OBJECT-REACTOR&gt;&lt;/VLA-OBJECT&gt;&lt;/ENTITY&gt;&lt;/VLA-OBJECT&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;</description>
      <pubDate>Tue, 01 Aug 2000 18:17:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830098#M160622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-01T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830099#M160623</link>
      <description>What release of AutoCAD are you using?&lt;BR /&gt;
&lt;BR /&gt;
Cliff Middleton wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I am trying to attach reactors to a copied blockref object which has&lt;BR /&gt;
&amp;gt; reactors attached.  First, why don't the reactors go with the copied object&lt;BR /&gt;
&amp;gt; in the first place and second, why can't you convert the ename of the newly&lt;BR /&gt;
&amp;gt; created object to a vla-object?  I get the following error values when the&lt;BR /&gt;
&amp;gt; subr below is called:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; [0.61] (VL-BT)&lt;BR /&gt;
&amp;gt; [1.57] (*ERROR* "Automation Error. Description was not provided.")&lt;BR /&gt;
&amp;gt; [2.52] (_call-err-hook #&lt;SUBR&gt; "Automation Error.&lt;BR /&gt;
&amp;gt; Description&lt;BR /&gt;
&amp;gt; was not provided.")&lt;BR /&gt;
&amp;gt; [3.46] (sys-error "Automation Error. Description was not provided.")&lt;BR /&gt;
&amp;gt; :ERROR-BREAK.41 nil&lt;BR /&gt;
&amp;gt; [4.38] (intelligent-invoke #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
&amp;gt; "ObjectIdToObject" 1 24831232)&lt;BR /&gt;
&amp;gt; [5.30] (#&lt;SUBR&gt; #&lt;VLA-OBJECT iacaddocument=""&gt;&lt;BR /&gt;
&amp;gt; 00b91294&amp;gt; "ObjectIdToObject" 24831232)&lt;BR /&gt;
&amp;gt; [6.24] (vla-ObjectIDToObject #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt; 24831232)&lt;BR /&gt;
&amp;gt; [7.18] (vlax-ename-&amp;gt;vla-object &lt;ENTITY ="" 17ae500=""&gt;)&lt;BR /&gt;
&amp;gt; [8.13] (BDR:REACTION-COPIED #&lt;VLA-OBJECT iacadblockreference="" 04024074=""&gt;&lt;BR /&gt;
&amp;gt; #&lt;VLR-OBJECT-REACTOR&gt; (&lt;ENTITY ="" 17ae500=""&gt;))&lt;BR /&gt;
&amp;gt; :CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)&lt;BR /&gt;
&amp;gt; :REACTOR-CALLBACK.3 :REACTOR-CALLBACK&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; As you can see this is my first reactor attempt.  Enlighten me, friends.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ;BDR:REACTION-COPIED________________________________________________________&lt;BR /&gt;
&amp;gt; _____________________________________________________&lt;BR /&gt;
&amp;gt; ;Reactor callback to attach reactors to a copied border&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (defun bdr:reaction-copied (notifier-object reactor-object parameter-list /&lt;BR /&gt;
&amp;gt; blockname blkref)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;  (setq&lt;BR /&gt;
&amp;gt;   blockname (vlr-data reactor-object)&lt;BR /&gt;
&amp;gt;   blkref (vlax-ename-&amp;gt;vla-object (car parameter-list)) ;THE NEWLY CREATED&lt;BR /&gt;
&amp;gt; OBJECT&lt;BR /&gt;
&amp;gt;  )&lt;BR /&gt;
&amp;gt;  (vlr-pers&lt;BR /&gt;
&amp;gt;   (vlr-object-reactor&lt;BR /&gt;
&amp;gt;    (list blkref)&lt;BR /&gt;
&amp;gt;    blockname&lt;BR /&gt;
&amp;gt;    '((:vlr-erased . bdr:reaction-erased)(:vlr-copied . bdr:reaction-copied))&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;  )&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Cliff Middleton, Tool Engineering Manager&lt;BR /&gt;
&amp;gt; General Broach Company&lt;BR /&gt;
&amp;gt; ph 517 458 7555 fax 517 458 6821&lt;BR /&gt;
&amp;gt; ICQ 31386833&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Broaching...learn it, live it, love it.&lt;BR /&gt;
&amp;gt; www.generalbroach.com&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
&lt;BR /&gt;
   http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
&lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*               http://www.caddzone.com                 */&lt;BR /&gt;
/*********************************************************/&lt;/ENTITY&gt;&lt;/VLR-OBJECT-REACTOR&gt;&lt;/VLA-OBJECT&gt;&lt;/ENTITY&gt;&lt;/VLA-OBJECT&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;</description>
      <pubDate>Tue, 01 Aug 2000 20:10:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830099#M160623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-01T20:10:02Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830100#M160624</link>
      <description>R15&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
news:39872E9A.9CD8E07B@worldnet.att.net...&lt;BR /&gt;
| What release of AutoCAD are you using?&lt;BR /&gt;
|&lt;BR /&gt;
| Cliff Middleton wrote:&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; I am trying to attach reactors to a copied blockref object which has&lt;BR /&gt;
| &amp;gt; reactors attached.  First, why don't the reactors go with the copied&lt;BR /&gt;
object&lt;BR /&gt;
| &amp;gt; in the first place and second, why can't you convert the ename of the&lt;BR /&gt;
newly&lt;BR /&gt;
| &amp;gt; created object to a vla-object?  I get the following error values when&lt;BR /&gt;
the&lt;BR /&gt;
| &amp;gt; subr below is called:&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; [0.61] (VL-BT)&lt;BR /&gt;
| &amp;gt; [1.57] (*ERROR* "Automation Error. Description was not provided.")&lt;BR /&gt;
| &amp;gt; [2.52] (_call-err-hook #&lt;SUBR&gt; "Automation Error.&lt;BR /&gt;
| &amp;gt; Description&lt;BR /&gt;
| &amp;gt; was not provided.")&lt;BR /&gt;
| &amp;gt; [3.46] (sys-error "Automation Error. Description was not provided.")&lt;BR /&gt;
| &amp;gt; :ERROR-BREAK.41 nil&lt;BR /&gt;
| &amp;gt; [4.38] (intelligent-invoke #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
| &amp;gt; "ObjectIdToObject" 1 24831232)&lt;BR /&gt;
| &amp;gt; [5.30] (#&lt;SUBR&gt; #&lt;VLA-OBJECT iacaddocument=""&gt;&lt;BR /&gt;
| &amp;gt; 00b91294&amp;gt; "ObjectIdToObject" 24831232)&lt;BR /&gt;
| &amp;gt; [6.24] (vla-ObjectIDToObject #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
24831232)&lt;BR /&gt;
| &amp;gt; [7.18] (vlax-ename-&amp;gt;vla-object &lt;ENTITY ="" 17ae500=""&gt;)&lt;BR /&gt;
| &amp;gt; [8.13] (BDR:REACTION-COPIED #&lt;VLA-OBJECT iacadblockreference="" 04024074=""&gt;&lt;BR /&gt;
| &amp;gt; #&lt;VLR-OBJECT-REACTOR&gt; (&lt;ENTITY ="" 17ae500=""&gt;))&lt;BR /&gt;
| &amp;gt; :CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)&lt;BR /&gt;
| &amp;gt; :REACTOR-CALLBACK.3 :REACTOR-CALLBACK&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; As you can see this is my first reactor attempt.  Enlighten me, friends.&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
;BDR:REACTION-COPIED________________________________________________________&lt;BR /&gt;
| &amp;gt; _____________________________________________________&lt;BR /&gt;
| &amp;gt; ;Reactor callback to attach reactors to a copied border&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; (defun bdr:reaction-copied (notifier-object reactor-object&lt;BR /&gt;
parameter-list /&lt;BR /&gt;
| &amp;gt; blockname blkref)&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt;  (setq&lt;BR /&gt;
| &amp;gt;   blockname (vlr-data reactor-object)&lt;BR /&gt;
| &amp;gt;   blkref (vlax-ename-&amp;gt;vla-object (car parameter-list)) ;THE NEWLY&lt;BR /&gt;
CREATED&lt;BR /&gt;
| &amp;gt; OBJECT&lt;BR /&gt;
| &amp;gt;  )&lt;BR /&gt;
| &amp;gt;  (vlr-pers&lt;BR /&gt;
| &amp;gt;   (vlr-object-reactor&lt;BR /&gt;
| &amp;gt;    (list blkref)&lt;BR /&gt;
| &amp;gt;    blockname&lt;BR /&gt;
| &amp;gt;    '((:vlr-erased . bdr:reaction-erased)(:vlr-copied .&lt;BR /&gt;
bdr:reaction-copied))&lt;BR /&gt;
| &amp;gt;   )&lt;BR /&gt;
| &amp;gt;  )&lt;BR /&gt;
| &amp;gt; )&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; --&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; Cliff Middleton, Tool Engineering Manager&lt;BR /&gt;
| &amp;gt; General Broach Company&lt;BR /&gt;
| &amp;gt; ph 517 458 7555 fax 517 458 6821&lt;BR /&gt;
| &amp;gt; ICQ 31386833&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; Broaching...learn it, live it, love it.&lt;BR /&gt;
| &amp;gt; www.generalbroach.com&lt;BR /&gt;
|&lt;BR /&gt;
| --&lt;BR /&gt;
|&lt;BR /&gt;
| Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
|&lt;BR /&gt;
|    http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
|&lt;BR /&gt;
| /*********************************************************/&lt;BR /&gt;
| /*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
| /* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
| /* ----------------------------------------------------- */&lt;BR /&gt;
| /*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
| /*               http://www.caddzone.com                 */&lt;BR /&gt;
| /*********************************************************/&lt;/ENTITY&gt;&lt;/VLR-OBJECT-REACTOR&gt;&lt;/VLA-OBJECT&gt;&lt;/ENTITY&gt;&lt;/VLA-OBJECT&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Wed, 02 Aug 2000 11:19:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830100#M160624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-02T11:19:21Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830101#M160625</link>
      <description>You cannot always access objects through ActiveX during some &lt;BR /&gt;
reactor notifications. In this case, AutoCAD must create&lt;BR /&gt;
a ActiveX wrapper for the new object before it can be accessed&lt;BR /&gt;
through ActiveX, and probably can't do that until after the&lt;BR /&gt;
copy notification is completed.&lt;BR /&gt;
&lt;BR /&gt;
You should collect the enames in list, store themin a global,&lt;BR /&gt;
and then in some later notification (like command-ended) act&lt;BR /&gt;
on the objects.&lt;BR /&gt;
&lt;BR /&gt;
Cliff Middleton wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; R15&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:39872E9A.9CD8E07B@worldnet.att.net...&lt;BR /&gt;
&amp;gt; | What release of AutoCAD are you using?&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | Cliff Middleton wrote:&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; I am trying to attach reactors to a copied blockref object which has&lt;BR /&gt;
&amp;gt; | &amp;gt; reactors attached.  First, why don't the reactors go with the copied&lt;BR /&gt;
&amp;gt; object&lt;BR /&gt;
&amp;gt; | &amp;gt; in the first place and second, why can't you convert the ename of the&lt;BR /&gt;
&amp;gt; newly&lt;BR /&gt;
&amp;gt; | &amp;gt; created object to a vla-object?  I get the following error values when&lt;BR /&gt;
&amp;gt; the&lt;BR /&gt;
&amp;gt; | &amp;gt; subr below is called:&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; [0.61] (VL-BT)&lt;BR /&gt;
&amp;gt; | &amp;gt; [1.57] (*ERROR* "Automation Error. Description was not provided.")&lt;BR /&gt;
&amp;gt; | &amp;gt; [2.52] (_call-err-hook #&lt;SUBR&gt; "Automation Error.&lt;BR /&gt;
&amp;gt; | &amp;gt; Description&lt;BR /&gt;
&amp;gt; | &amp;gt; was not provided.")&lt;BR /&gt;
&amp;gt; | &amp;gt; [3.46] (sys-error "Automation Error. Description was not provided.")&lt;BR /&gt;
&amp;gt; | &amp;gt; :ERROR-BREAK.41 nil&lt;BR /&gt;
&amp;gt; | &amp;gt; [4.38] (intelligent-invoke #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; "ObjectIdToObject" 1 24831232)&lt;BR /&gt;
&amp;gt; | &amp;gt; [5.30] (#&lt;SUBR&gt; #&lt;VLA-OBJECT iacaddocument=""&gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; 00b91294&amp;gt; "ObjectIdToObject" 24831232)&lt;BR /&gt;
&amp;gt; | &amp;gt; [6.24] (vla-ObjectIDToObject #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
&amp;gt; 24831232)&lt;BR /&gt;
&amp;gt; | &amp;gt; [7.18] (vlax-ename-&amp;gt;vla-object &lt;ENTITY ="" 17ae500=""&gt;)&lt;BR /&gt;
&amp;gt; | &amp;gt; [8.13] (BDR:REACTION-COPIED #&lt;VLA-OBJECT iacadblockreference="" 04024074=""&gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; #&lt;VLR-OBJECT-REACTOR&gt; (&lt;ENTITY ="" 17ae500=""&gt;))&lt;BR /&gt;
&amp;gt; | &amp;gt; :CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)&lt;BR /&gt;
&amp;gt; | &amp;gt; :REACTOR-CALLBACK.3 :REACTOR-CALLBACK&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; As you can see this is my first reactor attempt.  Enlighten me, friends.&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; ;BDR:REACTION-COPIED________________________________________________________&lt;BR /&gt;
&amp;gt; | &amp;gt; _____________________________________________________&lt;BR /&gt;
&amp;gt; | &amp;gt; ;Reactor callback to attach reactors to a copied border&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; (defun bdr:reaction-copied (notifier-object reactor-object&lt;BR /&gt;
&amp;gt; parameter-list /&lt;BR /&gt;
&amp;gt; | &amp;gt; blockname blkref)&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt;  (setq&lt;BR /&gt;
&amp;gt; | &amp;gt;   blockname (vlr-data reactor-object)&lt;BR /&gt;
&amp;gt; | &amp;gt;   blkref (vlax-ename-&amp;gt;vla-object (car parameter-list)) ;THE NEWLY&lt;BR /&gt;
&amp;gt; CREATED&lt;BR /&gt;
&amp;gt; | &amp;gt; OBJECT&lt;BR /&gt;
&amp;gt; | &amp;gt;  )&lt;BR /&gt;
&amp;gt; | &amp;gt;  (vlr-pers&lt;BR /&gt;
&amp;gt; | &amp;gt;   (vlr-object-reactor&lt;BR /&gt;
&amp;gt; | &amp;gt;    (list blkref)&lt;BR /&gt;
&amp;gt; | &amp;gt;    blockname&lt;BR /&gt;
&amp;gt; | &amp;gt;    '((:vlr-erased . bdr:reaction-erased)(:vlr-copied .&lt;BR /&gt;
&amp;gt; bdr:reaction-copied))&lt;BR /&gt;
&amp;gt; | &amp;gt;   )&lt;BR /&gt;
&amp;gt; | &amp;gt;  )&lt;BR /&gt;
&amp;gt; | &amp;gt; )&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; --&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; Cliff Middleton, Tool Engineering Manager&lt;BR /&gt;
&amp;gt; | &amp;gt; General Broach Company&lt;BR /&gt;
&amp;gt; | &amp;gt; ph 517 458 7555 fax 517 458 6821&lt;BR /&gt;
&amp;gt; | &amp;gt; ICQ 31386833&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; Broaching...learn it, live it, love it.&lt;BR /&gt;
&amp;gt; | &amp;gt; www.generalbroach.com&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | --&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; |    http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | /*********************************************************/&lt;BR /&gt;
&amp;gt; | /*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt; | /* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt; | /* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt; | /*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt; | /*               http://www.caddzone.com                 */&lt;BR /&gt;
&amp;gt; | /*********************************************************/&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
&lt;BR /&gt;
   http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
&lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*               http://www.caddzone.com                 */&lt;BR /&gt;
/*********************************************************/&lt;/ENTITY&gt;&lt;/VLR-OBJECT-REACTOR&gt;&lt;/VLA-OBJECT&gt;&lt;/ENTITY&gt;&lt;/VLA-OBJECT&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Fri, 04 Aug 2000 15:12:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830101#M160625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-04T15:12:19Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830102#M160626</link>
      <description>Would I have to create a command-reator during the callback from the&lt;BR /&gt;
object-reator to fire another callback on command-ended notification?&lt;BR /&gt;
&lt;BR /&gt;
Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
news:398ADD53.80192011@worldnet.att.net...&lt;BR /&gt;
| You cannot always access objects through ActiveX during some&lt;BR /&gt;
| reactor notifications. In this case, AutoCAD must create&lt;BR /&gt;
| a ActiveX wrapper for the new object before it can be accessed&lt;BR /&gt;
| through ActiveX, and probably can't do that until after the&lt;BR /&gt;
| copy notification is completed.&lt;BR /&gt;
|&lt;BR /&gt;
| You should collect the enames in list, store themin a global,&lt;BR /&gt;
| and then in some later notification (like command-ended) act&lt;BR /&gt;
| on the objects.&lt;BR /&gt;
|&lt;BR /&gt;
| Cliff Middleton wrote:&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; R15&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
| &amp;gt; Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
| &amp;gt; news:39872E9A.9CD8E07B@worldnet.att.net...&lt;BR /&gt;
| &amp;gt; | What release of AutoCAD are you using?&lt;BR /&gt;
| &amp;gt; |&lt;BR /&gt;
| &amp;gt; | Cliff Middleton wrote:&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; I am trying to attach reactors to a copied blockref object which has&lt;BR /&gt;
| &amp;gt; | &amp;gt; reactors attached.  First, why don't the reactors go with the copied&lt;BR /&gt;
| &amp;gt; object&lt;BR /&gt;
| &amp;gt; | &amp;gt; in the first place and second, why can't you convert the ename of&lt;BR /&gt;
the&lt;BR /&gt;
| &amp;gt; newly&lt;BR /&gt;
| &amp;gt; | &amp;gt; created object to a vla-object?  I get the following error values&lt;BR /&gt;
when&lt;BR /&gt;
| &amp;gt; the&lt;BR /&gt;
| &amp;gt; | &amp;gt; subr below is called:&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; [0.61] (VL-BT)&lt;BR /&gt;
| &amp;gt; | &amp;gt; [1.57] (*ERROR* "Automation Error. Description was not provided.")&lt;BR /&gt;
| &amp;gt; | &amp;gt; [2.52] (_call-err-hook #&lt;SUBR&gt; "Automation Error.&lt;BR /&gt;
| &amp;gt; | &amp;gt; Description&lt;BR /&gt;
| &amp;gt; | &amp;gt; was not provided.")&lt;BR /&gt;
| &amp;gt; | &amp;gt; [3.46] (sys-error "Automation Error. Description was not provided.")&lt;BR /&gt;
| &amp;gt; | &amp;gt; :ERROR-BREAK.41 nil&lt;BR /&gt;
| &amp;gt; | &amp;gt; [4.38] (intelligent-invoke #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; "ObjectIdToObject" 1 24831232)&lt;BR /&gt;
| &amp;gt; | &amp;gt; [5.30] (#&lt;SUBR&gt; #&lt;VLA-OBJECT&gt;&lt;BR /&gt;
IAcadDocument&lt;BR /&gt;
| &amp;gt; | &amp;gt; 00b91294&amp;gt; "ObjectIdToObject" 24831232)&lt;BR /&gt;
| &amp;gt; | &amp;gt; [6.24] (vla-ObjectIDToObject #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
| &amp;gt; 24831232)&lt;BR /&gt;
| &amp;gt; | &amp;gt; [7.18] (vlax-ename-&amp;gt;vla-object &lt;ENTITY ="" 17ae500=""&gt;)&lt;BR /&gt;
| &amp;gt; | &amp;gt; [8.13] (BDR:REACTION-COPIED #&lt;VLA-OBJECT iacadblockreference=""&gt;&lt;BR /&gt;
04024074&amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; #&lt;VLR-OBJECT-REACTOR&gt; (&lt;ENTITY ="" 17ae500=""&gt;))&lt;BR /&gt;
| &amp;gt; | &amp;gt; :CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)&lt;BR /&gt;
| &amp;gt; | &amp;gt; :REACTOR-CALLBACK.3 :REACTOR-CALLBACK&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; As you can see this is my first reactor attempt.  Enlighten me,&lt;BR /&gt;
friends.&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt;&lt;BR /&gt;
;BDR:REACTION-COPIED________________________________________________________&lt;BR /&gt;
| &amp;gt; | &amp;gt; _____________________________________________________&lt;BR /&gt;
| &amp;gt; | &amp;gt; ;Reactor callback to attach reactors to a copied border&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; (defun bdr:reaction-copied (notifier-object reactor-object&lt;BR /&gt;
| &amp;gt; parameter-list /&lt;BR /&gt;
| &amp;gt; | &amp;gt; blockname blkref)&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt;  (setq&lt;BR /&gt;
| &amp;gt; | &amp;gt;   blockname (vlr-data reactor-object)&lt;BR /&gt;
| &amp;gt; | &amp;gt;   blkref (vlax-ename-&amp;gt;vla-object (car parameter-list)) ;THE NEWLY&lt;BR /&gt;
| &amp;gt; CREATED&lt;BR /&gt;
| &amp;gt; | &amp;gt; OBJECT&lt;BR /&gt;
| &amp;gt; | &amp;gt;  )&lt;BR /&gt;
| &amp;gt; | &amp;gt;  (vlr-pers&lt;BR /&gt;
| &amp;gt; | &amp;gt;   (vlr-object-reactor&lt;BR /&gt;
| &amp;gt; | &amp;gt;    (list blkref)&lt;BR /&gt;
| &amp;gt; | &amp;gt;    blockname&lt;BR /&gt;
| &amp;gt; | &amp;gt;    '((:vlr-erased . bdr:reaction-erased)(:vlr-copied .&lt;BR /&gt;
| &amp;gt; bdr:reaction-copied))&lt;BR /&gt;
| &amp;gt; | &amp;gt;   )&lt;BR /&gt;
| &amp;gt; | &amp;gt;  )&lt;BR /&gt;
| &amp;gt; | &amp;gt; )&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; --&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; Cliff Middleton, Tool Engineering Manager&lt;BR /&gt;
| &amp;gt; | &amp;gt; General Broach Company&lt;BR /&gt;
| &amp;gt; | &amp;gt; ph 517 458 7555 fax 517 458 6821&lt;BR /&gt;
| &amp;gt; | &amp;gt; ICQ 31386833&lt;BR /&gt;
| &amp;gt; | &amp;gt;&lt;BR /&gt;
| &amp;gt; | &amp;gt; Broaching...learn it, live it, love it.&lt;BR /&gt;
| &amp;gt; | &amp;gt; www.generalbroach.com&lt;BR /&gt;
| &amp;gt; |&lt;BR /&gt;
| &amp;gt; | --&lt;BR /&gt;
| &amp;gt; |&lt;BR /&gt;
| &amp;gt; | Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
| &amp;gt; |&lt;BR /&gt;
| &amp;gt; |    http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
| &amp;gt; |&lt;BR /&gt;
| &amp;gt; | /*********************************************************/&lt;BR /&gt;
| &amp;gt; | /*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
| &amp;gt; | /* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
| &amp;gt; | /* ----------------------------------------------------- */&lt;BR /&gt;
| &amp;gt; | /*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
| &amp;gt; | /*               http://www.caddzone.com                 */&lt;BR /&gt;
| &amp;gt; | /*********************************************************/&lt;BR /&gt;
|&lt;BR /&gt;
| --&lt;BR /&gt;
|&lt;BR /&gt;
| Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
|&lt;BR /&gt;
|    http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
|&lt;BR /&gt;
| /*********************************************************/&lt;BR /&gt;
| /*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
| /* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
| /* ----------------------------------------------------- */&lt;BR /&gt;
| /*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
| /*               http://www.caddzone.com                 */&lt;BR /&gt;
| /*********************************************************/&lt;/ENTITY&gt;&lt;/VLR-OBJECT-REACTOR&gt;&lt;/VLA-OBJECT&gt;&lt;/ENTITY&gt;&lt;/VLA-OBJECT&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/TONY.TANZILLO&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Fri, 04 Aug 2000 16:22:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830102#M160626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-04T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830103#M160627</link>
      <description>You can do it that way or you can just create it in the&lt;BR /&gt;
same scope as the other reactor, and set a flag in the&lt;BR /&gt;
latter, and check/clear the flag in the command-ended&lt;BR /&gt;
reactor. If you chose to create or add the command&lt;BR /&gt;
reactor in another reactor, then you would have to&lt;BR /&gt;
remove it after it handles the command-ended notification.&lt;BR /&gt;
&lt;BR /&gt;
Cliff Middleton wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Would I have to create a command-reator during the callback from the&lt;BR /&gt;
&amp;gt; object-reator to fire another callback on command-ended notification?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:398ADD53.80192011@worldnet.att.net...&lt;BR /&gt;
&amp;gt; | You cannot always access objects through ActiveX during some&lt;BR /&gt;
&amp;gt; | reactor notifications. In this case, AutoCAD must create&lt;BR /&gt;
&amp;gt; | a ActiveX wrapper for the new object before it can be accessed&lt;BR /&gt;
&amp;gt; | through ActiveX, and probably can't do that until after the&lt;BR /&gt;
&amp;gt; | copy notification is completed.&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | You should collect the enames in list, store themin a global,&lt;BR /&gt;
&amp;gt; | and then in some later notification (like command-ended) act&lt;BR /&gt;
&amp;gt; | on the objects.&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | Cliff Middleton wrote:&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; R15&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; Tony Tanzillo &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
&amp;gt; | &amp;gt; news:39872E9A.9CD8E07B@worldnet.att.net...&lt;BR /&gt;
&amp;gt; | &amp;gt; | What release of AutoCAD are you using?&lt;BR /&gt;
&amp;gt; | &amp;gt; |&lt;BR /&gt;
&amp;gt; | &amp;gt; | Cliff Middleton wrote:&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; I am trying to attach reactors to a copied blockref object which has&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; reactors attached.  First, why don't the reactors go with the copied&lt;BR /&gt;
&amp;gt; | &amp;gt; object&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; in the first place and second, why can't you convert the ename of&lt;BR /&gt;
&amp;gt; the&lt;BR /&gt;
&amp;gt; | &amp;gt; newly&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; created object to a vla-object?  I get the following error values&lt;BR /&gt;
&amp;gt; when&lt;BR /&gt;
&amp;gt; | &amp;gt; the&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; subr below is called:&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [0.61] (VL-BT)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [1.57] (*ERROR* "Automation Error. Description was not provided.")&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [2.52] (_call-err-hook #&lt;SUBR&gt; "Automation Error.&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; Description&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; was not provided.")&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [3.46] (sys-error "Automation Error. Description was not provided.")&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; :ERROR-BREAK.41 nil&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [4.38] (intelligent-invoke #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; "ObjectIdToObject" 1 24831232)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [5.30] (#&lt;SUBR&gt; #&lt;VLA-OBJECT&gt;&lt;BR /&gt;
&amp;gt; IAcadDocument&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; 00b91294&amp;gt; "ObjectIdToObject" 24831232)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [6.24] (vla-ObjectIDToObject #&lt;VLA-OBJECT iacaddocument="" 00b91294=""&gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; 24831232)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [7.18] (vlax-ename-&amp;gt;vla-object &lt;ENTITY ="" 17ae500=""&gt;)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; [8.13] (BDR:REACTION-COPIED #&lt;VLA-OBJECT iacadblockreference=""&gt;&lt;BR /&gt;
&amp;gt; 04024074&amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; #&lt;VLR-OBJECT-REACTOR&gt; (&lt;ENTITY ="" 17ae500=""&gt;))&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; :CALLBACK-ENTRY.6 (:CALLBACK-ENTRY)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; :REACTOR-CALLBACK.3 :REACTOR-CALLBACK&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; As you can see this is my first reactor attempt.  Enlighten me,&lt;BR /&gt;
&amp;gt; friends.&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; ;BDR:REACTION-COPIED________________________________________________________&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; _____________________________________________________&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; ;Reactor callback to attach reactors to a copied border&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; (defun bdr:reaction-copied (notifier-object reactor-object&lt;BR /&gt;
&amp;gt; | &amp;gt; parameter-list /&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; blockname blkref)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;  (setq&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;   blockname (vlr-data reactor-object)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;   blkref (vlax-ename-&amp;gt;vla-object (car parameter-list)) ;THE NEWLY&lt;BR /&gt;
&amp;gt; | &amp;gt; CREATED&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; OBJECT&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;  )&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;  (vlr-pers&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;   (vlr-object-reactor&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;    (list blkref)&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;    blockname&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;    '((:vlr-erased . bdr:reaction-erased)(:vlr-copied .&lt;BR /&gt;
&amp;gt; | &amp;gt; bdr:reaction-copied))&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;   )&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;  )&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; )&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; --&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; Cliff Middleton, Tool Engineering Manager&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; General Broach Company&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; ph 517 458 7555 fax 517 458 6821&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; ICQ 31386833&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt;&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; Broaching...learn it, live it, love it.&lt;BR /&gt;
&amp;gt; | &amp;gt; | &amp;gt; www.generalbroach.com&lt;BR /&gt;
&amp;gt; | &amp;gt; |&lt;BR /&gt;
&amp;gt; | &amp;gt; | --&lt;BR /&gt;
&amp;gt; | &amp;gt; |&lt;BR /&gt;
&amp;gt; | &amp;gt; | Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
&amp;gt; | &amp;gt; |&lt;BR /&gt;
&amp;gt; | &amp;gt; |    http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
&amp;gt; | &amp;gt; |&lt;BR /&gt;
&amp;gt; | &amp;gt; | /*********************************************************/&lt;BR /&gt;
&amp;gt; | &amp;gt; | /*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt; | &amp;gt; | /* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt; | &amp;gt; | /* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt; | &amp;gt; | /*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt; | &amp;gt; | /*               http://www.caddzone.com                 */&lt;BR /&gt;
&amp;gt; | &amp;gt; | /*********************************************************/&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | --&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; |    http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
&amp;gt; |&lt;BR /&gt;
&amp;gt; | /*********************************************************/&lt;BR /&gt;
&amp;gt; | /*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
&amp;gt; | /* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
&amp;gt; | /* ----------------------------------------------------- */&lt;BR /&gt;
&amp;gt; | /*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
&amp;gt; | /*               http://www.caddzone.com                 */&lt;BR /&gt;
&amp;gt; | /*********************************************************/&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Checkout the AcadX(tm) ActiveX Extension Library at:&lt;BR /&gt;
&lt;BR /&gt;
   http://www.caddzone.com/acadx/acadx.htm&lt;BR /&gt;
&lt;BR /&gt;
/*********************************************************/&lt;BR /&gt;
/*    Tony Tanzillo     Design Automation Consulting     */&lt;BR /&gt;
/* Programming &amp;amp; Customization for AutoCAD &amp;amp; Compatibles */&lt;BR /&gt;
/* ----------------------------------------------------- */&lt;BR /&gt;
/*            tony.tanzillo@worldnet.att.net             */&lt;BR /&gt;
/*               http://www.caddzone.com                 */&lt;BR /&gt;
/*********************************************************/&lt;/ENTITY&gt;&lt;/VLR-OBJECT-REACTOR&gt;&lt;/VLA-OBJECT&gt;&lt;/ENTITY&gt;&lt;/VLA-OBJECT&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/VLA-OBJECT&gt;&lt;/SUBR&gt;&lt;/TONY.TANZILLO&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Fri, 04 Aug 2000 16:37:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830103#M160627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-04T16:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reactor question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830104#M160628</link>
      <description>I wrote a simple reactor to change the ltscale in autocad base on whether or&lt;BR /&gt;
not the user was in model space or paper space.  I did this to keep us from&lt;BR /&gt;
plotting with our linetypes all messed up and at the same time reset the&lt;BR /&gt;
ltscale so that our drawings appear correctly in model space.  It worked&lt;BR /&gt;
well, except for the annoying extra regen.&lt;BR /&gt;
&lt;BR /&gt;
This worked fine in A2K, but seems to interfere with the cached layouts in&lt;BR /&gt;
A2Ki and causes a fatal crash.  I believe it has to do with forcing the&lt;BR /&gt;
regen within the cached layout.  If we set autocad to force regens (under&lt;BR /&gt;
the system tab in preferences) when switching between layouts, we can still&lt;BR /&gt;
use it in A2Ki, however, it would be nice to be able to cache the layouts to&lt;BR /&gt;
speed things up.  Does anyone know a way to test to see if a layout has been&lt;BR /&gt;
chached, or perhaps someone has another suggestion.&lt;BR /&gt;
&lt;BR /&gt;
On a side note, this also appears to interfere with *some* not all excel&lt;BR /&gt;
items that we have pasted into autocad.  The result is that the user cannot&lt;BR /&gt;
switch between layouts until the reactor has been removed.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any suggestions.&lt;BR /&gt;
Lance&lt;BR /&gt;
&lt;BR /&gt;
(defun C:INIT-MAINTAIN-LTSCALE ()&lt;BR /&gt;
    (vl-load-com)&lt;BR /&gt;
&lt;BR /&gt;
;;; Establish reactor&lt;BR /&gt;
    (setq LTSCREACT (vlr-miscellaneous-reactor&lt;BR /&gt;
   "MAINTAINLTSCALE"&lt;BR /&gt;
   '((:vlr-layoutswitched . MAINTAIN-LTSCALE))&lt;BR /&gt;
      ) ;_ End vlr-miscellaneous-reactor&lt;BR /&gt;
    ) ;_ End setq&lt;BR /&gt;
) ;_ End defun&lt;BR /&gt;
&lt;BR /&gt;
(defun MAINTAIN-LTSCALE (REACT-NAME DATA)&lt;BR /&gt;
    (if (= (getvar "tilemode") 1)&lt;BR /&gt;
 (progn&lt;BR /&gt;
     (setvar "ltscale" (getvar "dimscale"))&lt;BR /&gt;
     (vla-regen (vla-get-activedocument (vlax-get-acad-object))&lt;BR /&gt;
         acallviewports&lt;BR /&gt;
     ) ;_ End vla-regen&lt;BR /&gt;
 ) ;_ progn&lt;BR /&gt;
 (progn&lt;BR /&gt;
     (setvar "ltscale" 1)&lt;BR /&gt;
     (vla-regen (vla-get-activedocument (vlax-get-acad-object))&lt;BR /&gt;
         acallviewports&lt;BR /&gt;
     ) ;_ End vla-regen&lt;BR /&gt;
 ) ;_ progn&lt;BR /&gt;
    ) ;_ End if&lt;BR /&gt;
) ;_ End defun</description>
      <pubDate>Mon, 21 Aug 2000 20:51:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830104#M160628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-21T20:51:16Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830105#M160629</link>
      <description>Lance,&lt;BR /&gt;
&lt;BR /&gt;
Not an answer to your main question, but see the thread "Ah those tricky&lt;BR /&gt;
reactors (revisited)".&lt;BR /&gt;
--&lt;BR /&gt;
Eric S.   eschneider@jensenprecast.com</description>
      <pubDate>Mon, 21 Aug 2000 22:00:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830105#M160629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-21T22:00:56Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830106#M160630</link>
      <description>Isn't that what the PSLTSCALE variable is for?&lt;BR /&gt;
&lt;BR /&gt;
Lance Endres &lt;LENDRES&gt; wrote in message&lt;BR /&gt;
news:C767D79E2E527C30570BC36408644F65@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I wrote a simple reactor to change the ltscale in autocad base on whether&lt;BR /&gt;
or&lt;BR /&gt;
&amp;gt; not the user was in model space or paper space.  I did this to keep us&lt;BR /&gt;
from&lt;BR /&gt;
&amp;gt; plotting with our linetypes all messed up and at the same time reset the&lt;BR /&gt;
&amp;gt; ltscale so that our drawings appear correctly in model space.  It worked&lt;BR /&gt;
&amp;gt; well, except for the annoying extra regen.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This worked fine in A2K, but seems to interfere with the cached layouts in&lt;BR /&gt;
&amp;gt; A2Ki and causes a fatal crash.  I believe it has to do with forcing the&lt;BR /&gt;
&amp;gt; regen within the cached layout.  If we set autocad to force regens (under&lt;BR /&gt;
&amp;gt; the system tab in preferences) when switching between layouts, we can&lt;BR /&gt;
still&lt;BR /&gt;
&amp;gt; use it in A2Ki, however, it would be nice to be able to cache the layouts&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; speed things up.  Does anyone know a way to test to see if a layout has&lt;BR /&gt;
been&lt;BR /&gt;
&amp;gt; chached, or perhaps someone has another suggestion.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; On a side note, this also appears to interfere with *some* not all excel&lt;BR /&gt;
&amp;gt; items that we have pasted into autocad.  The result is that the user&lt;BR /&gt;
cannot&lt;BR /&gt;
&amp;gt; switch between layouts until the reactor has been removed.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for any suggestions.&lt;BR /&gt;
&amp;gt; Lance&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun C:INIT-MAINTAIN-LTSCALE ()&lt;BR /&gt;
&amp;gt;     (vl-load-com)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ;;; Establish reactor&lt;BR /&gt;
&amp;gt;     (setq LTSCREACT (vlr-miscellaneous-reactor&lt;BR /&gt;
&amp;gt;    "MAINTAINLTSCALE"&lt;BR /&gt;
&amp;gt;    '((:vlr-layoutswitched . MAINTAIN-LTSCALE))&lt;BR /&gt;
&amp;gt;       ) ;_ End vlr-miscellaneous-reactor&lt;BR /&gt;
&amp;gt;     ) ;_ End setq&lt;BR /&gt;
&amp;gt; ) ;_ End defun&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun MAINTAIN-LTSCALE (REACT-NAME DATA)&lt;BR /&gt;
&amp;gt;     (if (= (getvar "tilemode") 1)&lt;BR /&gt;
&amp;gt;  (progn&lt;BR /&gt;
&amp;gt;      (setvar "ltscale" (getvar "dimscale"))&lt;BR /&gt;
&amp;gt;      (vla-regen (vla-get-activedocument (vlax-get-acad-object))&lt;BR /&gt;
&amp;gt;          acallviewports&lt;BR /&gt;
&amp;gt;      ) ;_ End vla-regen&lt;BR /&gt;
&amp;gt;  ) ;_ progn&lt;BR /&gt;
&amp;gt;  (progn&lt;BR /&gt;
&amp;gt;      (setvar "ltscale" 1)&lt;BR /&gt;
&amp;gt;      (vla-regen (vla-get-activedocument (vlax-get-acad-object))&lt;BR /&gt;
&amp;gt;          acallviewports&lt;BR /&gt;
&amp;gt;      ) ;_ End vla-regen&lt;BR /&gt;
&amp;gt;  ) ;_ progn&lt;BR /&gt;
&amp;gt;     ) ;_ End if&lt;BR /&gt;
&amp;gt; ) ;_ End defun&lt;BR /&gt;
&amp;gt;&lt;/LENDRES&gt;</description>
      <pubDate>Wed, 23 Aug 2000 12:37:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830106#M160630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-23T12:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reactor question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830107#M160631</link>
      <description>I want to call a lisp routine everytime the user toggles between layouts.  I&lt;BR /&gt;
am new to reactors and would appreciate it if someone could get me started&lt;BR /&gt;
on this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 05 Mar 2002 12:01:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830107#M160631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-05T12:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reactor question</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830108#M160632</link>
      <description>I want to call a lisp routine everytime the user toggles between layouts.  I&lt;BR /&gt;
am new to reactors and would appreciate it if someone could get me started&lt;BR /&gt;
on this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 05 Mar 2002 12:01:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830108#M160632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-05T12:01:57Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830109#M160633</link>
      <description>this one works well for us - CJ&lt;BR /&gt;
&lt;BR /&gt;
;;Place in acaddoc.lsp&lt;BR /&gt;
(if (not *LayoutSwitch*)&lt;BR /&gt;
  (setq *LayoutSwitch* (VLR-Miscellaneous-Reactor nil '((:VLR-layoutSwitched&lt;BR /&gt;
. LayoutSwitched))))&lt;BR /&gt;
  )&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
;;; Layout Switch&lt;BR /&gt;
;;; by Rob Starz&lt;BR /&gt;
;;; modified by CJ Follmer&lt;BR /&gt;
&lt;BR /&gt;
(defun LayoutSwitched (reactor layout / ds)&lt;BR /&gt;
  (if (/= (dictsearch (namedobjdict) "AEC_VARS") nil)&lt;BR /&gt;
    (progn&lt;BR /&gt;
      (setq ds (sa:AecScale))&lt;BR /&gt;
      (if (= ds nil) (setq ds 1.0))&lt;BR /&gt;
      (if (= (nth 0 layout) "Model")&lt;BR /&gt;
        (progn&lt;BR /&gt;
          ;(vla-setvariable doc "ltscale" ds)&lt;BR /&gt;
          ;(vla-setvariable doc "dimscale" ds)&lt;BR /&gt;
          (setvar "ltscale" ds)&lt;BR /&gt;
          (setvar "dimscale" ds)&lt;BR /&gt;
          )&lt;BR /&gt;
        (progn&lt;BR /&gt;
          ;(vla-setvariable doc "ltscale" 1.0)&lt;BR /&gt;
          ;(vla-setvariable doc "dimscale" 1.0)&lt;BR /&gt;
          (setvar "ltscale" 1.0)&lt;BR /&gt;
          (setvar "dimscale" 1.0)&lt;BR /&gt;
          )&lt;BR /&gt;
        )&lt;BR /&gt;
      );end progn&lt;BR /&gt;
    );end if&lt;BR /&gt;
  (princ)&lt;BR /&gt;
  )&lt;BR /&gt;
&lt;BR /&gt;
"Keith" &lt;KEITHKAMMERUD&gt; wrote in message&lt;BR /&gt;
news:8E1F2D1557700D649E983FFBB7348E77@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I want to call a lisp routine everytime the user toggles between layouts.&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; am new to reactors and would appreciate it if someone could get me started&lt;BR /&gt;
&amp;gt; on this.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KEITHKAMMERUD&gt;</description>
      <pubDate>Tue, 05 Mar 2002 14:56:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830109#M160633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-05T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830110#M160634</link>
      <description>oops this won't work for you straight out as it calls some routines that you&lt;BR /&gt;
don't have, but you should get the idea.&lt;BR /&gt;
&lt;BR /&gt;
cj&lt;BR /&gt;
&lt;BR /&gt;
"CJ Follmer" &lt;CJ-SUDA&gt; wrote in message&lt;BR /&gt;
news:B1E9D404BABE96A0C06D0FFB91C52FC3@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; this one works well for us - CJ&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ;;Place in acaddoc.lsp&lt;BR /&gt;
&amp;gt; (if (not *LayoutSwitch*)&lt;BR /&gt;
&amp;gt;   (setq *LayoutSwitch* (VLR-Miscellaneous-Reactor nil&lt;BR /&gt;
'((:VLR-layoutSwitched&lt;BR /&gt;
&amp;gt; . LayoutSwitched))))&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ;;; Layout Switch&lt;BR /&gt;
&amp;gt; ;;; by Rob Starz&lt;BR /&gt;
&amp;gt; ;;; modified by CJ Follmer&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun LayoutSwitched (reactor layout / ds)&lt;BR /&gt;
&amp;gt;   (if (/= (dictsearch (namedobjdict) "AEC_VARS") nil)&lt;BR /&gt;
&amp;gt;     (progn&lt;BR /&gt;
&amp;gt;       (setq ds (sa:AecScale))&lt;BR /&gt;
&amp;gt;       (if (= ds nil) (setq ds 1.0))&lt;BR /&gt;
&amp;gt;       (if (= (nth 0 layout) "Model")&lt;BR /&gt;
&amp;gt;         (progn&lt;BR /&gt;
&amp;gt;           ;(vla-setvariable doc "ltscale" ds)&lt;BR /&gt;
&amp;gt;           ;(vla-setvariable doc "dimscale" ds)&lt;BR /&gt;
&amp;gt;           (setvar "ltscale" ds)&lt;BR /&gt;
&amp;gt;           (setvar "dimscale" ds)&lt;BR /&gt;
&amp;gt;           )&lt;BR /&gt;
&amp;gt;         (progn&lt;BR /&gt;
&amp;gt;           ;(vla-setvariable doc "ltscale" 1.0)&lt;BR /&gt;
&amp;gt;           ;(vla-setvariable doc "dimscale" 1.0)&lt;BR /&gt;
&amp;gt;           (setvar "ltscale" 1.0)&lt;BR /&gt;
&amp;gt;           (setvar "dimscale" 1.0)&lt;BR /&gt;
&amp;gt;           )&lt;BR /&gt;
&amp;gt;         )&lt;BR /&gt;
&amp;gt;       );end progn&lt;BR /&gt;
&amp;gt;     );end if&lt;BR /&gt;
&amp;gt;   (princ)&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Keith" &lt;KEITHKAMMERUD&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:8E1F2D1557700D649E983FFBB7348E77@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I want to call a lisp routine everytime the user toggles between&lt;BR /&gt;
layouts.&lt;BR /&gt;
&amp;gt; I&lt;BR /&gt;
&amp;gt; &amp;gt; am new to reactors and would appreciate it if someone could get me&lt;BR /&gt;
started&lt;BR /&gt;
&amp;gt; &amp;gt; on this.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KEITHKAMMERUD&gt;&lt;/CJ-SUDA&gt;</description>
      <pubDate>Tue, 05 Mar 2002 15:05:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/reactor-question/m-p/830110#M160634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-05T15:05:21Z</dc:date>
    </item>
  </channel>
</rss>

