<?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: Transparent command with Lisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877756#M157565</link>
    <description>garnax,&lt;BR /&gt;
&lt;BR /&gt;
Are you working in VB/VBA, or Visual LISP? In Visual LISP you can use the&lt;BR /&gt;
(vlax-add-cmd) function to create a function which is transparent in&lt;BR /&gt;
AutoLISP. Unfortunately, if you are working in VB/VBA, I don't know of a way&lt;BR /&gt;
to do it through the command line. You might want to try the VBA Discussion&lt;BR /&gt;
Group. It looks like you might be trying to start a help topic in AutoCAD&lt;BR /&gt;
from VB - If that's the case - you'd be better off with a VB method of&lt;BR /&gt;
starting the Help topic. I suggest going to the VBdesign website and sending&lt;BR /&gt;
an E-mail to Randall Rath: http://vbdesign.hypermart.net&lt;BR /&gt;
&lt;BR /&gt;
He'll probably be able to help. (Sorry - I'm not very well versed yet in&lt;BR /&gt;
VB/VBA...)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com&lt;BR /&gt;
===================&lt;BR /&gt;
&lt;BR /&gt;
garnax &lt;MATS.FORSEN&gt; wrote in message&lt;BR /&gt;
news:ef23a62.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Anyone know if I can do a transparent command with lisp? Ie&lt;BR /&gt;
&amp;gt; (command "'_help") doesn't work. (I'm using AcadUnsupp)&lt;/MATS.FORSEN&gt;</description>
    <pubDate>Mon, 19 Jun 2000 11:45:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-06-19T11:45:37Z</dc:date>
    <item>
      <title>Transparent command with Lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877755#M157564</link>
      <description>Anyone know if I can do a transparent command with lisp? Ie&lt;BR /&gt;
(command "'_help") doesn't work. (I'm using AcadUnsupp)</description>
      <pubDate>Mon, 19 Jun 2000 07:13:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877755#M157564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-19T07:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transparent command with Lisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877756#M157565</link>
      <description>garnax,&lt;BR /&gt;
&lt;BR /&gt;
Are you working in VB/VBA, or Visual LISP? In Visual LISP you can use the&lt;BR /&gt;
(vlax-add-cmd) function to create a function which is transparent in&lt;BR /&gt;
AutoLISP. Unfortunately, if you are working in VB/VBA, I don't know of a way&lt;BR /&gt;
to do it through the command line. You might want to try the VBA Discussion&lt;BR /&gt;
Group. It looks like you might be trying to start a help topic in AutoCAD&lt;BR /&gt;
from VB - If that's the case - you'd be better off with a VB method of&lt;BR /&gt;
starting the Help topic. I suggest going to the VBdesign website and sending&lt;BR /&gt;
an E-mail to Randall Rath: http://vbdesign.hypermart.net&lt;BR /&gt;
&lt;BR /&gt;
He'll probably be able to help. (Sorry - I'm not very well versed yet in&lt;BR /&gt;
VB/VBA...)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com&lt;BR /&gt;
===================&lt;BR /&gt;
&lt;BR /&gt;
garnax &lt;MATS.FORSEN&gt; wrote in message&lt;BR /&gt;
news:ef23a62.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Anyone know if I can do a transparent command with lisp? Ie&lt;BR /&gt;
&amp;gt; (command "'_help") doesn't work. (I'm using AcadUnsupp)&lt;/MATS.FORSEN&gt;</description>
      <pubDate>Mon, 19 Jun 2000 11:45:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877756#M157565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-19T11:45:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877757#M157566</link>
      <description>Hi Phil,&lt;BR /&gt;
&lt;BR /&gt;
Can you go into more detail as to how you can create a transparent lisp&lt;BR /&gt;
command using Visual Lisp?  I tried to do a transparent lisp zoom previous&lt;BR /&gt;
command and it did not work:&lt;BR /&gt;
&lt;BR /&gt;
(defun zp()(command"ZOOM""P"))&lt;BR /&gt;
(vlax-add-cmd "zp" 'zp)&lt;BR /&gt;
&lt;BR /&gt;
Paul&lt;BR /&gt;
&lt;BR /&gt;
Phil Kenewell &lt;PKENEWELL&gt; wrote in message&lt;BR /&gt;
news:ef23a62.0@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; garnax,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Are you working in VB/VBA, or Visual LISP? In Visual LISP you can use the&lt;BR /&gt;
&amp;gt; (vlax-add-cmd) function to create a function which is transparent in&lt;BR /&gt;
&amp;gt; AutoLISP. Unfortunately, if you are working in VB/VBA, I don't know of a&lt;BR /&gt;
way&lt;BR /&gt;
&amp;gt; to do it through the command line. You might want to try the VBA&lt;BR /&gt;
Discussion&lt;BR /&gt;
&amp;gt; Group. It looks like you might be trying to start a help topic in AutoCAD&lt;BR /&gt;
&amp;gt; from VB - If that's the case - you'd be better off with a VB method of&lt;BR /&gt;
&amp;gt; starting the Help topic. I suggest going to the VBdesign website and&lt;BR /&gt;
sending&lt;BR /&gt;
&amp;gt; an E-mail to Randall Rath: http://vbdesign.hypermart.net&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; He'll probably be able to help. (Sorry - I'm not very well versed yet in&lt;BR /&gt;
&amp;gt; VB/VBA...)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Phillip Kenewell&lt;BR /&gt;
&amp;gt; CAD Systems Technician&lt;BR /&gt;
&amp;gt; Air Gage Company&lt;BR /&gt;
&amp;gt; pkenewell@airgage.com&lt;BR /&gt;
&amp;gt; ===================&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; garnax &lt;MATS.FORSEN&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ef23a62.-1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Anyone know if I can do a transparent command with lisp? Ie&lt;BR /&gt;
&amp;gt; &amp;gt; (command "'_help") doesn't work. (I'm using AcadUnsupp)&lt;BR /&gt;
&amp;gt;&lt;/MATS.FORSEN&gt;&lt;/PKENEWELL&gt;</description>
      <pubDate>Wed, 21 Jun 2000 06:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877757#M157566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-21T06:27:49Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877758#M157567</link>
      <description>Paul,&lt;BR /&gt;
&lt;BR /&gt;
Using the Command function negates creating a Transparent AutoLISP command.&lt;BR /&gt;
you must use ActiveX for this. Unfortunately, creating a Transparent command&lt;BR /&gt;
in the Multiple Document Environment of AutoCAD 2000 is a little more&lt;BR /&gt;
difficult. First, you have to create a function, Then you have to create a&lt;BR /&gt;
Docmanager reactor to identify when switching between Active documents to&lt;BR /&gt;
prevent a Document Mismatch Error. Then you must create a callback function&lt;BR /&gt;
to redefine the commands for the Active Document. Here's an Example: (Watch&lt;BR /&gt;
out for word-wrap in this E-mail)&lt;BR /&gt;
&lt;BR /&gt;
;; Callback Function to redefine Commands in Active Doc.&lt;BR /&gt;
(defun cmdredef (calbck cmd / return ok)&lt;BR /&gt;
 (foreach x ax:commandslist&lt;BR /&gt;
  (if (and&lt;BR /&gt;
     (member (type (eval (caddr x))) '(SUBR USUBR EXRXSUBR))&lt;BR /&gt;
     (setq ok (apply 'vlax-add-cmd (cdr x)))&lt;BR /&gt;
    )&lt;BR /&gt;
   (setq return (cons ok return))&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
 return&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
;; This Function is Run at top level at load after Functions&lt;BR /&gt;
;; are defined to Create the commands.&lt;BR /&gt;
(defun addmdicmd (lst / old)&lt;BR /&gt;
 (foreach x lst&lt;BR /&gt;
  (vlax-remove-cmd (car x))&lt;BR /&gt;
  (if (setq old (assoc (strcase (car x)) ax:commandslist))&lt;BR /&gt;
   (setq ax:commandslist (subst (cons (strcase (car x)) x) old&lt;BR /&gt;
ax:commandslist))&lt;BR /&gt;
   (setq ax:commandslist (cons (cons (strcase (car x)) x) ax:commandslist))&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
 (if (not agc:addcmdreactor)&lt;BR /&gt;
  (setq agc:addcmdreactor&lt;BR /&gt;
   (vlr-docmanager-reactor&lt;BR /&gt;
       "AX-Commands"&lt;BR /&gt;
       '((:vlr-documentBecameCurrent . cmdredef))&lt;BR /&gt;
   )&lt;BR /&gt;
  )&lt;BR /&gt;
 )&lt;BR /&gt;
 (cmdredef nil nil)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
;; Define Zoom&amp;gt;Extents function.&lt;BR /&gt;
(defun ax-ze ()&lt;BR /&gt;
 (vla-zoomextents (vlax-get-acad-object))&lt;BR /&gt;
 (princ)&lt;BR /&gt;
)&lt;BR /&gt;
;; Add Command "ZE" to Command definitions...&lt;BR /&gt;
(setq ax:cmdlst (cons (list "ZE" 'ax-ze "ZE" 1) ax:cmdlst))&lt;BR /&gt;
&lt;BR /&gt;
;; Define Zoom&amp;gt;Previous function.&lt;BR /&gt;
(defun ax-zp ()&lt;BR /&gt;
 (vla-zoomPrevious (vlax-get-acad-object))&lt;BR /&gt;
 (princ)&lt;BR /&gt;
)&lt;BR /&gt;
;; Add Command "ZP" to Command definitions...&lt;BR /&gt;
(setq ax:cmdlst (cons (list "ZP" 'ax-zp "ZP" 1) ax:cmdlst))&lt;BR /&gt;
&lt;BR /&gt;
;; Run (addmdicmd) to define commands. (must be done last!)&lt;BR /&gt;
(addmdicmd ax:cmdlst)&lt;BR /&gt;
&lt;BR /&gt;
Add the Contents of this in to a LISP file and load the LISP file in your&lt;BR /&gt;
acaddoc.lsp&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps,&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com&lt;BR /&gt;
===================&lt;BR /&gt;
&lt;BR /&gt;
Paul Li - adesknews.autodesk.com &lt;PAULLI_APA&gt; wrote in message&lt;BR /&gt;
news:ef23a62.1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Hi Phil,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Can you go into more detail as to how you can create a transparent lisp&lt;BR /&gt;
&amp;gt; command using Visual Lisp?  I tried to do a transparent lisp zoom previous&lt;BR /&gt;
&amp;gt; command and it did not work:&lt;/PAULLI_APA&gt;</description>
      <pubDate>Wed, 21 Jun 2000 12:50:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877758#M157567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-21T12:50:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877759#M157568</link>
      <description>Hi Phil,&lt;BR /&gt;
&lt;BR /&gt;
This is very helpful.  But is there a way I could call the new ZE and ZP&lt;BR /&gt;
vlisp functions transparently from a LISP function?  For example:&lt;BR /&gt;
&lt;BR /&gt;
(command"_.Line" "0,0" "ZP") ; for a transparent Zoom Previous in the middle&lt;BR /&gt;
of a line command&lt;BR /&gt;
&lt;BR /&gt;
Paul&lt;BR /&gt;
&lt;BR /&gt;
Phil Kenewell &lt;PKENEWELL&gt; wrote in message&lt;BR /&gt;
news:ef23a62.2@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Paul,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Using the Command function negates creating a Transparent AutoLISP&lt;BR /&gt;
command.&lt;BR /&gt;
&amp;gt; you must use ActiveX for this. Unfortunately, creating a Transparent&lt;BR /&gt;
command&lt;BR /&gt;
&amp;gt; in the Multiple Document Environment of AutoCAD 2000 is a little more&lt;BR /&gt;
&amp;gt; difficult. First, you have to create a function, Then you have to create a&lt;BR /&gt;
&amp;gt; Docmanager reactor to identify when switching between Active documents to&lt;BR /&gt;
&amp;gt; prevent a Document Mismatch Error. Then you must create a callback&lt;BR /&gt;
function&lt;BR /&gt;
&amp;gt; to redefine the commands for the Active Document. Here's an Example:&lt;BR /&gt;
(Watch&lt;BR /&gt;
&amp;gt; out for word-wrap in this E-mail)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ;; Callback Function to redefine Commands in Active Doc.&lt;BR /&gt;
&amp;gt; (defun cmdredef (calbck cmd / return ok)&lt;BR /&gt;
&amp;gt;  (foreach x ax:commandslist&lt;BR /&gt;
&amp;gt;   (if (and&lt;BR /&gt;
&amp;gt;      (member (type (eval (caddr x))) '(SUBR USUBR EXRXSUBR))&lt;BR /&gt;
&amp;gt;      (setq ok (apply 'vlax-add-cmd (cdr x)))&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;    (setq return (cons ok return))&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;  )&lt;BR /&gt;
&amp;gt;  return&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ;; This Function is Run at top level at load after Functions&lt;BR /&gt;
&amp;gt; ;; are defined to Create the commands.&lt;BR /&gt;
&amp;gt; (defun addmdicmd (lst / old)&lt;BR /&gt;
&amp;gt;  (foreach x lst&lt;BR /&gt;
&amp;gt;   (vlax-remove-cmd (car x))&lt;BR /&gt;
&amp;gt;   (if (setq old (assoc (strcase (car x)) ax:commandslist))&lt;BR /&gt;
&amp;gt;    (setq ax:commandslist (subst (cons (strcase (car x)) x) old&lt;BR /&gt;
&amp;gt; ax:commandslist))&lt;BR /&gt;
&amp;gt;    (setq ax:commandslist (cons (cons (strcase (car x)) x)&lt;BR /&gt;
ax:commandslist))&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;  )&lt;BR /&gt;
&amp;gt;  (if (not agc:addcmdreactor)&lt;BR /&gt;
&amp;gt;   (setq agc:addcmdreactor&lt;BR /&gt;
&amp;gt;    (vlr-docmanager-reactor&lt;BR /&gt;
&amp;gt;        "AX-Commands"&lt;BR /&gt;
&amp;gt;        '((:vlr-documentBecameCurrent . cmdredef))&lt;BR /&gt;
&amp;gt;    )&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt;  )&lt;BR /&gt;
&amp;gt;  (cmdredef nil nil)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ;; Define Zoom&amp;gt;Extents function.&lt;BR /&gt;
&amp;gt; (defun ax-ze ()&lt;BR /&gt;
&amp;gt;  (vla-zoomextents (vlax-get-acad-object))&lt;BR /&gt;
&amp;gt;  (princ)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; ;; Add Command "ZE" to Command definitions...&lt;BR /&gt;
&amp;gt; (setq ax:cmdlst (cons (list "ZE" 'ax-ze "ZE" 1) ax:cmdlst))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ;; Define Zoom&amp;gt;Previous function.&lt;BR /&gt;
&amp;gt; (defun ax-zp ()&lt;BR /&gt;
&amp;gt;  (vla-zoomPrevious (vlax-get-acad-object))&lt;BR /&gt;
&amp;gt;  (princ)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; ;; Add Command "ZP" to Command definitions...&lt;BR /&gt;
&amp;gt; (setq ax:cmdlst (cons (list "ZP" 'ax-zp "ZP" 1) ax:cmdlst))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ;; Run (addmdicmd) to define commands. (must be done last!)&lt;BR /&gt;
&amp;gt; (addmdicmd ax:cmdlst)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Add the Contents of this in to a LISP file and load the LISP file in your&lt;BR /&gt;
&amp;gt; acaddoc.lsp&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Hope this helps,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Phillip Kenewell&lt;BR /&gt;
&amp;gt; CAD Systems Technician&lt;BR /&gt;
&amp;gt; Air Gage Company&lt;BR /&gt;
&amp;gt; pkenewell@airgage.com&lt;BR /&gt;
&amp;gt; ===================&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Paul Li - adesknews.autodesk.com &lt;PAULLI_APA&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ef23a62.1@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi Phil,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Can you go into more detail as to how you can create a transparent lisp&lt;BR /&gt;
&amp;gt; &amp;gt; command using Visual Lisp?  I tried to do a transparent lisp zoom&lt;BR /&gt;
previous&lt;BR /&gt;
&amp;gt; &amp;gt; command and it did not work:&lt;BR /&gt;
&amp;gt;&lt;/PAULLI_APA&gt;&lt;/PKENEWELL&gt;</description>
      <pubDate>Wed, 21 Jun 2000 17:56:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877759#M157568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-21T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877760#M157569</link>
      <description>Paul,&lt;BR /&gt;
&lt;BR /&gt;
In that case, you do need to define it with (vlax-add-cmd) and all that&lt;BR /&gt;
other stuff, you would just call the original function between calls to&lt;BR /&gt;
(command) like so:&lt;BR /&gt;
&lt;BR /&gt;
(command "._line" "_non" "0,0")&lt;BR /&gt;
(ax-zp)&lt;BR /&gt;
;; If you need to perform additional calls to the line command,&lt;BR /&gt;
;; Just continue the command call where you left off.&lt;BR /&gt;
(command "_non" "2,5"...&lt;BR /&gt;
&lt;BR /&gt;
The Whole purpose of creating LISP Transparent commands is that they can be&lt;BR /&gt;
called from the *command line* WHILE another AutoLISP function is running,&lt;BR /&gt;
without getting a "Can't Reenter AutoLISP" Error.&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com&lt;BR /&gt;
===================&lt;BR /&gt;
&lt;BR /&gt;
Paul Li &lt;PAULLI_APA&gt; wrote in message&lt;BR /&gt;
news:ef23a62.3@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Hi Phil,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This is very helpful.  But is there a way I could call the new ZE and ZP&lt;BR /&gt;
&amp;gt; vlisp functions transparently from a LISP function?  For example:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (command"_.Line" "0,0" "ZP") ; for a transparent Zoom Previous in the&lt;BR /&gt;
middle&lt;BR /&gt;
&amp;gt; of a line command&lt;/PAULLI_APA&gt;</description>
      <pubDate>Wed, 21 Jun 2000 18:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877760#M157569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-21T18:19:38Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877761#M157570</link>
      <description>OOPS:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;In that case, you do need to...&lt;BR /&gt;
&lt;BR /&gt;
should have been:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;In that case, you don't need to&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com</description>
      <pubDate>Wed, 21 Jun 2000 18:21:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877761#M157570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-21T18:21:28Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877762#M157571</link>
      <description>Thanks Phil.  Now, how do I get a list of all the available vla-functions&lt;BR /&gt;
that A2k provides?  Because looking at the code you generated, the new&lt;BR /&gt;
(ax-zp) function calls the vla-zoomPrevious method in  vlax-get-acad-object,&lt;BR /&gt;
right?&lt;BR /&gt;
&lt;BR /&gt;
Paul&lt;BR /&gt;
&lt;BR /&gt;
Phil Kenewell &lt;PKENEWELL&gt; wrote in message&lt;BR /&gt;
news:ef23a62.4@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Paul,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In that case, you do need to define it with (vlax-add-cmd) and all that&lt;BR /&gt;
&amp;gt; other stuff, you would just call the original function between calls to&lt;BR /&gt;
&amp;gt; (command) like so:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (command "._line" "_non" "0,0")&lt;BR /&gt;
&amp;gt; (ax-zp)&lt;BR /&gt;
&amp;gt; ;; If you need to perform additional calls to the line command,&lt;BR /&gt;
&amp;gt; ;; Just continue the command call where you left off.&lt;BR /&gt;
&amp;gt; (command "_non" "2,5"...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The Whole purpose of creating LISP Transparent commands is that they can&lt;BR /&gt;
be&lt;BR /&gt;
&amp;gt; called from the *command line* WHILE another AutoLISP function is running,&lt;BR /&gt;
&amp;gt; without getting a "Can't Reenter AutoLISP" Error.&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Phillip Kenewell&lt;BR /&gt;
&amp;gt; CAD Systems Technician&lt;BR /&gt;
&amp;gt; Air Gage Company&lt;BR /&gt;
&amp;gt; pkenewell@airgage.com&lt;BR /&gt;
&amp;gt; ===================&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Paul Li &lt;PAULLI_APA&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ef23a62.3@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi Phil,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; This is very helpful.  But is there a way I could call the new ZE and ZP&lt;BR /&gt;
&amp;gt; &amp;gt; vlisp functions transparently from a LISP function?  For example:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (command"_.Line" "0,0" "ZP") ; for a transparent Zoom Previous in the&lt;BR /&gt;
&amp;gt; middle&lt;BR /&gt;
&amp;gt; &amp;gt; of a line command&lt;BR /&gt;
&amp;gt;&lt;/PAULLI_APA&gt;&lt;/PKENEWELL&gt;</description>
      <pubDate>Wed, 21 Jun 2000 18:35:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877762#M157571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-21T18:35:10Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877763#M157572</link>
      <description>Paul,&lt;BR /&gt;
&lt;BR /&gt;
All the Visual LISP method are wrappers for the ActiveX components described&lt;BR /&gt;
in the VBA Developer's guide. So AutoDesk did not document them. However,&lt;BR /&gt;
it's fairly easy to derive the Methods from the VBA guide. Translating from&lt;BR /&gt;
the VBA guide to Visual LISP is as follows:&lt;BR /&gt;
&lt;BR /&gt;
object.Method = (vla-&lt;METHOD&gt; &lt;OBJECT&gt;)&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com&lt;BR /&gt;
===================&lt;BR /&gt;
&lt;BR /&gt;
Paul Li &lt;PAULLI_APA&gt; wrote in message&lt;BR /&gt;
news:ef23a62.6@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Thanks Phil.  Now, how do I get a list of all the available vla-functions&lt;BR /&gt;
&amp;gt; that A2k provides?  Because looking at the code you generated, the new&lt;BR /&gt;
&amp;gt; (ax-zp) function calls the vla-zoomPrevious method in&lt;BR /&gt;
vlax-get-acad-object,&lt;BR /&gt;
&amp;gt; right?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Paul&lt;/PAULLI_APA&gt;&lt;/OBJECT&gt;&lt;/METHOD&gt;</description>
      <pubDate>Wed, 21 Jun 2000 21:31:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877763#M157572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-21T21:31:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877764#M157573</link>
      <description>Hi Phil,&lt;BR /&gt;
&lt;BR /&gt;
unfortunately there is another bug in AutoCAD if you&lt;BR /&gt;
use these ActiveX zoom functions.&lt;BR /&gt;
&lt;BR /&gt;
A lot of my functions will crash if they were&lt;BR /&gt;
called after this zoom functions, if they use&lt;BR /&gt;
one of this functions:&lt;BR /&gt;
(setvar) 	-&amp;gt; crashes routine&lt;BR /&gt;
(regapp)	-&amp;gt; returns NIL and therefore crashes routine&lt;BR /&gt;
(entmake)	-&amp;gt; crashes AutoCAD&lt;BR /&gt;
These crashes will not happen every time, only in some&lt;BR /&gt;
circumstances.&lt;BR /&gt;
I have published an example in the thread "ActiveX crashes AutoCAD".&lt;BR /&gt;
Specially some of my arx functions which uses acdbEntMake will&lt;BR /&gt;
crash AutoCAD completely without a chance to save the drawings.&lt;BR /&gt;
&lt;BR /&gt;
This means if you use this ActiveX zoom functions you may crash&lt;BR /&gt;
third party routines. If you don't want to distribute your app&lt;BR /&gt;
and you don't use third party apps and you don't have routines&lt;BR /&gt;
which use the lisp functions above then you can use the ActiveX zooms&lt;BR /&gt;
but else you shouldn't.&lt;BR /&gt;
&lt;BR /&gt;
As a workaround you can use:&lt;BR /&gt;
&lt;BR /&gt;
(defun zp ( / activedoc)&lt;BR /&gt;
 (setq activedoc (vla-get-ActiveDocument (vlax-get-acad-object)))&lt;BR /&gt;
 (vla-SendCommand activedoc "'._zoom _p ")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(defun ze ( / activedoc)&lt;BR /&gt;
 (setq activedoc (vla-get-ActiveDocument (vlax-get-acad-object)))&lt;BR /&gt;
 (vla-SendCommand activedoc "'._zoom _e ")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Stephan</description>
      <pubDate>Wed, 21 Jun 2000 22:50:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877764#M157573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-21T22:50:47Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877765#M157574</link>
      <description>Okay, great...thanks.&lt;BR /&gt;
&lt;BR /&gt;
Paul&lt;BR /&gt;
&lt;BR /&gt;
Phil Kenewell &lt;PKENEWELL&gt; wrote in message&lt;BR /&gt;
news:ef23a62.7@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Paul,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; All the Visual LISP method are wrappers for the ActiveX components&lt;BR /&gt;
described&lt;BR /&gt;
&amp;gt; in the VBA Developer's guide. So AutoDesk did not document them. However,&lt;BR /&gt;
&amp;gt; it's fairly easy to derive the Methods from the VBA guide. Translating&lt;BR /&gt;
from&lt;BR /&gt;
&amp;gt; the VBA guide to Visual LISP is as follows:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; object.Method = (vla-&lt;METHOD&gt; &lt;OBJECT&gt;)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Phillip Kenewell&lt;BR /&gt;
&amp;gt; CAD Systems Technician&lt;BR /&gt;
&amp;gt; Air Gage Company&lt;BR /&gt;
&amp;gt; pkenewell@airgage.com&lt;BR /&gt;
&amp;gt; ===================&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Paul Li &lt;PAULLI_APA&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ef23a62.6@WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks Phil.  Now, how do I get a list of all the available&lt;BR /&gt;
vla-functions&lt;BR /&gt;
&amp;gt; &amp;gt; that A2k provides?  Because looking at the code you generated, the new&lt;BR /&gt;
&amp;gt; &amp;gt; (ax-zp) function calls the vla-zoomPrevious method in&lt;BR /&gt;
&amp;gt; vlax-get-acad-object,&lt;BR /&gt;
&amp;gt; &amp;gt; right?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Paul&lt;BR /&gt;
&amp;gt;&lt;/PAULLI_APA&gt;&lt;/OBJECT&gt;&lt;/METHOD&gt;&lt;/PKENEWELL&gt;</description>
      <pubDate>Thu, 22 Jun 2000 00:00:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877765#M157574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-22T00:00:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877766#M157575</link>
      <description>And:&lt;BR /&gt;
If you use ActiveX zooms you should not&lt;BR /&gt;
use express tools.&lt;BR /&gt;
&lt;BR /&gt;
Load this:&lt;BR /&gt;
(defun c:zp()&lt;BR /&gt;
 (vla-zoomPrevious (vlax-get-acad-object))&lt;BR /&gt;
)&lt;BR /&gt;
then enter:&lt;BR /&gt;
zp&lt;BR /&gt;
and then use btrim or bextend from express tools:&lt;BR /&gt;
-&amp;gt; AutoCAD will crash.&lt;BR /&gt;
&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;
Stephan Koster wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Hi Phil,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; unfortunately there is another bug in AutoCAD if you&lt;BR /&gt;
&amp;gt; use these ActiveX zoom functions.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; A lot of my functions will crash if they were&lt;BR /&gt;
&amp;gt; called after this zoom functions, if they use&lt;BR /&gt;
&amp;gt; one of this functions:&lt;BR /&gt;
&amp;gt; (setvar)        -&amp;gt; crashes routine&lt;BR /&gt;
&amp;gt; (regapp)        -&amp;gt; returns NIL and therefore crashes routine&lt;BR /&gt;
&amp;gt; (entmake)       -&amp;gt; crashes AutoCAD&lt;BR /&gt;
&amp;gt; These crashes will not happen every time, only in some&lt;BR /&gt;
&amp;gt; circumstances.&lt;BR /&gt;
&amp;gt; I have published an example in the thread "ActiveX crashes AutoCAD".&lt;BR /&gt;
&amp;gt; Specially some of my arx functions which uses acdbEntMake will&lt;BR /&gt;
&amp;gt; crash AutoCAD completely without a chance to save the drawings.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; This means if you use this ActiveX zoom functions you may crash&lt;BR /&gt;
&amp;gt; third party routines. If you don't want to distribute your app&lt;BR /&gt;
&amp;gt; and you don't use third party apps and you don't have routines&lt;BR /&gt;
&amp;gt; which use the lisp functions above then you can use the ActiveX zooms&lt;BR /&gt;
&amp;gt; but else you shouldn't.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; As a workaround you can use:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (defun zp ( / activedoc)&lt;BR /&gt;
&amp;gt;  (setq activedoc (vla-get-ActiveDocument (vlax-get-acad-object)))&lt;BR /&gt;
&amp;gt;  (vla-SendCommand activedoc "'._zoom _p ")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (defun ze ( / activedoc)&lt;BR /&gt;
&amp;gt;  (setq activedoc (vla-get-ActiveDocument (vlax-get-acad-object)))&lt;BR /&gt;
&amp;gt;  (vla-SendCommand activedoc "'._zoom _e ")&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Stephan</description>
      <pubDate>Thu, 22 Jun 2000 11:24:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877766#M157575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-22T11:24:28Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877767#M157576</link>
      <description>Stephan,&lt;BR /&gt;
&lt;BR /&gt;
Strange, I have not experienced any Fatal errors (yet) with programs that&lt;BR /&gt;
use (entmake) after These Zooms, nor have I had any problems with the&lt;BR /&gt;
Express Tools (I have the VIP version loaded). However, I have produced a&lt;BR /&gt;
consistent Error with programs using (setvar) - It appears the First call to&lt;BR /&gt;
(setvar) fails after using an ActiveX Zoom method. I have gotten this to&lt;BR /&gt;
repeat consistently in any case.&lt;BR /&gt;
&lt;BR /&gt;
Is it only the ActiveX Zooming methods that cause these bugs, or does this&lt;BR /&gt;
happen with any ActiveX Method? Never mind - I just answered this question&lt;BR /&gt;
as I feared - ANY ActiveX method appears to cause this problem with&lt;BR /&gt;
(setvar). Damn! I'm tired of having a lot of work go down the drain because&lt;BR /&gt;
of Autodesk's poor testing when it comes to new APIs. You listening&lt;BR /&gt;
AutoDesk?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com&lt;BR /&gt;
===================&lt;BR /&gt;
&amp;gt; Not &amp;lt; a Member of the AutoDESK&lt;BR /&gt;
Discussion Forum Moderator Program&lt;BR /&gt;
Stephan Koster &lt;STEPHAN&gt; wrote in message&lt;BR /&gt;
news:3951F76C.2FBB4A66@cadworks.de...&lt;BR /&gt;
&amp;gt; And:&lt;BR /&gt;
&amp;gt; If you use ActiveX zooms you should not&lt;BR /&gt;
&amp;gt; use express tools.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Load this:&lt;BR /&gt;
&amp;gt; (defun c:zp()&lt;BR /&gt;
&amp;gt;  (vla-zoomPrevious (vlax-get-acad-object))&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; then enter:&lt;BR /&gt;
&amp;gt; zp&lt;BR /&gt;
&amp;gt; and then use btrim or bextend from express tools:&lt;BR /&gt;
&amp;gt; -&amp;gt; AutoCAD will crash.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Stephan&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Stephan Koster wrote:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Hi Phil,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; unfortunately there is another bug in AutoCAD if you&lt;BR /&gt;
&amp;gt; &amp;gt; use these ActiveX zoom functions.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; A lot of my functions will crash if they were&lt;BR /&gt;
&amp;gt; &amp;gt; called after this zoom functions, if they use&lt;BR /&gt;
&amp;gt; &amp;gt; one of this functions:&lt;BR /&gt;
&amp;gt; &amp;gt; (setvar)        -&amp;gt; crashes routine&lt;BR /&gt;
&amp;gt; &amp;gt; (regapp)        -&amp;gt; returns NIL and therefore crashes routine&lt;BR /&gt;
&amp;gt; &amp;gt; (entmake)       -&amp;gt; crashes AutoCAD&lt;BR /&gt;
&amp;gt; &amp;gt; These crashes will not happen every time, only in some&lt;BR /&gt;
&amp;gt; &amp;gt; circumstances.&lt;BR /&gt;
&amp;gt; &amp;gt; I have published an example in the thread "ActiveX crashes AutoCAD".&lt;BR /&gt;
&amp;gt; &amp;gt; Specially some of my arx functions which uses acdbEntMake will&lt;BR /&gt;
&amp;gt; &amp;gt; crash AutoCAD completely without a chance to save the drawings.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; This means if you use this ActiveX zoom functions you may crash&lt;BR /&gt;
&amp;gt; &amp;gt; third party routines. If you don't want to distribute your app&lt;BR /&gt;
&amp;gt; &amp;gt; and you don't use third party apps and you don't have routines&lt;BR /&gt;
&amp;gt; &amp;gt; which use the lisp functions above then you can use the ActiveX zooms&lt;BR /&gt;
&amp;gt; &amp;gt; but else you shouldn't.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; As a workaround you can use:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (defun zp ( / activedoc)&lt;BR /&gt;
&amp;gt; &amp;gt;  (setq activedoc (vla-get-ActiveDocument (vlax-get-acad-object)))&lt;BR /&gt;
&amp;gt; &amp;gt;  (vla-SendCommand activedoc "'._zoom _p ")&lt;BR /&gt;
&amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (defun ze ( / activedoc)&lt;BR /&gt;
&amp;gt; &amp;gt;  (setq activedoc (vla-get-ActiveDocument (vlax-get-acad-object)))&lt;BR /&gt;
&amp;gt; &amp;gt;  (vla-SendCommand activedoc "'._zoom _e ")&lt;BR /&gt;
&amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Stephan&lt;/STEPHAN&gt;</description>
      <pubDate>Thu, 22 Jun 2000 12:47:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877767#M157576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-22T12:47:06Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877768#M157577</link>
      <description>Phil,&lt;BR /&gt;
&lt;BR /&gt;
do you think the VIP version of the express tools is&lt;BR /&gt;
different?&lt;BR /&gt;
&lt;BR /&gt;
Please tell me what happens, if you perform these&lt;BR /&gt;
steps:&lt;BR /&gt;
&lt;BR /&gt;
- (defun c:zp()(vla-zoomPrevious (vlax-get-acad-object)))&lt;BR /&gt;
- insert a block&lt;BR /&gt;
- type zp&lt;BR /&gt;
- type bextend and select the insert&lt;BR /&gt;
&lt;BR /&gt;
in my configuration AutoCAD will crash with the message:&lt;BR /&gt;
!scandr.cpp@2328: eLockViolation&lt;BR /&gt;
&lt;BR /&gt;
What do you get?&lt;BR /&gt;
&lt;BR /&gt;
By the way, not only vla-zoom causes this, some other&lt;BR /&gt;
ActiveX methods also, but not every method.&lt;BR /&gt;
&lt;BR /&gt;
I would be happy if somebody has a workaround for&lt;BR /&gt;
this problem.&lt;BR /&gt;
&lt;BR /&gt;
Stephan</description>
      <pubDate>Thu, 22 Jun 2000 13:14:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877768#M157577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-22T13:14:17Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877769#M157578</link>
      <description>Stephan,&lt;BR /&gt;
&lt;BR /&gt;
It appears so - I performed the steps you just gave me and they worked fine&lt;BR /&gt;
with no crash. However, I also have the AutoCAD 2000 Service pack&lt;BR /&gt;
installed - Do you? I don't know if that would make a difference but I guess&lt;BR /&gt;
it's worth asking...&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com&lt;BR /&gt;
===================&lt;BR /&gt;
&lt;BR /&gt;
Stephan Koster &lt;STEPHAN&gt; wrote in message&lt;BR /&gt;
news:39521129.B0A1640A@cadworks.de...&lt;BR /&gt;
&amp;gt; Phil,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; do you think the VIP version of the express tools is&lt;BR /&gt;
&amp;gt; different?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Please tell me what happens, if you perform these&lt;BR /&gt;
&amp;gt; steps:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; - (defun c:zp()(vla-zoomPrevious (vlax-get-acad-object)))&lt;BR /&gt;
&amp;gt; - insert a block&lt;BR /&gt;
&amp;gt; - type zp&lt;BR /&gt;
&amp;gt; - type bextend and select the insert&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; in my configuration AutoCAD will crash with the message:&lt;BR /&gt;
&amp;gt; !scandr.cpp@2328: eLockViolation&lt;/STEPHAN&gt;</description>
      <pubDate>Thu, 22 Jun 2000 13:16:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877769#M157578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-22T13:16:38Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877770#M157579</link>
      <description>Phil,&lt;BR /&gt;
&lt;BR /&gt;
yes, of course I have the service pack installed.&lt;BR /&gt;
My configuration: A2K SP1 with NT 4 SP6&lt;BR /&gt;
The described steps crashes AutoCAD always here.&lt;BR /&gt;
&lt;BR /&gt;
For example I can use this script:&lt;BR /&gt;
---- begin of script&lt;BR /&gt;
(defun c:zp()(vla-zoomPrevious (vlax-get-acad-object)))&lt;BR /&gt;
._line 0,0 100,0&lt;BR /&gt;
&lt;BR /&gt;
._block test 0,0 _last&lt;BR /&gt;
&lt;BR /&gt;
._insert test 0,0&lt;BR /&gt;
&lt;BR /&gt;
_zoom&lt;BR /&gt;
0,0&lt;BR /&gt;
100,100&lt;BR /&gt;
zp&lt;BR /&gt;
_bextend&lt;BR /&gt;
0,0&lt;BR /&gt;
&lt;BR /&gt;
_redraw&lt;BR /&gt;
---- end of script&lt;BR /&gt;
&lt;BR /&gt;
I have unload all my apps, only the express tools&lt;BR /&gt;
stay loaded and the error remains the same.&lt;BR /&gt;
&lt;BR /&gt;
If you can't recreate the error the only explanation&lt;BR /&gt;
is your VIP version of the express tools.&lt;BR /&gt;
&lt;BR /&gt;
Stephan</description>
      <pubDate>Thu, 22 Jun 2000 13:46:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877770#M157579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-22T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877771#M157580</link>
      <description>Oops,&lt;BR /&gt;
&lt;BR /&gt;
better use this script&lt;BR /&gt;
(take care, may crash your running AutoCAD session):&lt;BR /&gt;
---- begin of script&lt;BR /&gt;
(defun c:zp()(vla-zoomPrevious (vlax-get-acad-object)))&lt;BR /&gt;
_zoom&lt;BR /&gt;
-10,-10&lt;BR /&gt;
120,120&lt;BR /&gt;
._line 0,0 100,0&lt;BR /&gt;
&lt;BR /&gt;
._block test 0,0 _last&lt;BR /&gt;
&lt;BR /&gt;
._insert test 0,0&lt;BR /&gt;
&lt;BR /&gt;
_zoom&lt;BR /&gt;
0,0&lt;BR /&gt;
100,100&lt;BR /&gt;
zp&lt;BR /&gt;
_bextend&lt;BR /&gt;
0,0&lt;BR /&gt;
&lt;BR /&gt;
_redraw&lt;BR /&gt;
---- end of script&lt;BR /&gt;
&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;
Stephan Koster wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Phil,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; yes, of course I have the service pack installed.&lt;BR /&gt;
&amp;gt; My configuration: A2K SP1 with NT 4 SP6&lt;BR /&gt;
&amp;gt; The described steps crashes AutoCAD always here.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; For example I can use this script:&lt;BR /&gt;
&amp;gt; ---- begin of script&lt;BR /&gt;
&amp;gt; (defun c:zp()(vla-zoomPrevious (vlax-get-acad-object)))&lt;BR /&gt;
&amp;gt; ._line 0,0 100,0&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ._block test 0,0 _last&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ._insert test 0,0&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; _zoom&lt;BR /&gt;
&amp;gt; 0,0&lt;BR /&gt;
&amp;gt; 100,100&lt;BR /&gt;
&amp;gt; zp&lt;BR /&gt;
&amp;gt; _bextend&lt;BR /&gt;
&amp;gt; 0,0&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; _redraw&lt;BR /&gt;
&amp;gt; ---- end of script&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I have unload all my apps, only the express tools&lt;BR /&gt;
&amp;gt; stay loaded and the error remains the same.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; If you can't recreate the error the only explanation&lt;BR /&gt;
&amp;gt; is your VIP version of the express tools.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Stephan</description>
      <pubDate>Thu, 22 Jun 2000 13:58:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877771#M157580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-22T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877772#M157581</link>
      <description>Stephan,&lt;BR /&gt;
&lt;BR /&gt;
I tried the Script you created and it caused the same error - consistently.&lt;BR /&gt;
I have no idea why it causes an error under those circumstances, but It&lt;BR /&gt;
appears that the VIP Express Tools do not matter. I appears that the error&lt;BR /&gt;
does not occur if any other action is performed after the zoom, but before&lt;BR /&gt;
starting the bextend command. Very frustrating...&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Phillip Kenewell&lt;BR /&gt;
CAD Systems Technician&lt;BR /&gt;
Air Gage Company&lt;BR /&gt;
pkenewell@airgage.com&lt;BR /&gt;
===================&lt;BR /&gt;
&lt;BR /&gt;
Stephan Koster &lt;STEPHAN&gt; wrote in message&lt;BR /&gt;
news:39521B68.51785EB3@cadworks.de...&lt;BR /&gt;
&amp;gt; Oops,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; better use this script&lt;BR /&gt;
&amp;gt; (take care, may crash your running AutoCAD session):&lt;BR /&gt;
&amp;gt; ---- begin of script&lt;BR /&gt;
&amp;gt; (defun c:zp()(vla-zoomPrevious (vlax-get-acad-object)))&lt;BR /&gt;
&amp;gt; _zoom&lt;BR /&gt;
&amp;gt; -10,-10&lt;BR /&gt;
&amp;gt; 120,120&lt;BR /&gt;
&amp;gt; ._line 0,0 100,0&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ._block test 0,0 _last&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ._insert test 0,0&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; _zoom&lt;BR /&gt;
&amp;gt; 0,0&lt;BR /&gt;
&amp;gt; 100,100&lt;BR /&gt;
&amp;gt; zp&lt;BR /&gt;
&amp;gt; _bextend&lt;BR /&gt;
&amp;gt; 0,0&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; _redraw&lt;BR /&gt;
&amp;gt; ---- end of script&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Stephan&lt;/STEPHAN&gt;</description>
      <pubDate>Thu, 22 Jun 2000 14:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/transparent-command-with-lisp/m-p/877772#M157581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-06-22T14:30:04Z</dc:date>
    </item>
  </channel>
</rss>

