Author Topic: VLIDE. How to do...  (Read 1837 times)

0 Members and 1 Guest are viewing this topic.

Pepe

  • Newt
  • Posts: 87
VLIDE. How to do...
« on: April 20, 2009, 01:39:10 PM »
Does anybody knows how:

   a) Check if VLIDE is already working
   b) If it's not, make it run and hide it (just as if you click on upper "x")

Of course, using LISP or VLISP or any queer combination of ACTIVEX commands.

Thanks  :-) !

FengK

  • Guest
Re: VLIDE. How to do...
« Reply #1 on: April 21, 2009, 03:02:02 AM »
My guess is you want to know if VLIDE has been opened in the current AutoCAD session, rather than if VLIDE is currently open. If so, you can check the value of VLISP-COMPILE like this:

(if 'vlisp-compile
  (prompt "\nVLIDE has been opened.")
  (prompt "\nVLIDE has not been opened.")
)

To start VLIDE, you can use (command "VBASTMT" "ThisDrawing.SendCommand \"VLISP \"") or
(command "VBASTMT" "ThisDrawing.SendCommand \"VLIDE \"")

From my previous experience, closing the VLIDE with just lisp is tricky. Because even if the VLIDE is visible, sometime you can't close it without having to reactivate it from within the AutoCAD window. Maybe I had missed something.



Pepe

  • Newt
  • Posts: 87
Re: VLIDE. How to do...
« Reply #2 on: April 21, 2009, 04:35:07 AM »
Thank you for your answer xycadd  :-)!

Your guess was exactly what I was looking for (sorry: my english is not as good and fluid as I would, and sometimes I can't express myself properly  :oops: ).

I've used (C:VLIDE) for open it, and it works. I'll try the way to start it you've post, and compare both (probably yours is better).

Although you consider it tricky, and if it is possible, iId like to have a look on how to close the VLIDE with LISP.
Would you, please, post it?

Thank you very much again!