Author Topic: CAN I DISABLE THE EXPLODE COMMAND??  (Read 9744 times)

0 Members and 1 Guest are viewing this topic.

Zydenet

  • Guest
Re: CAN I DISABLE THE EXPLODE COMMAND??
« Reply #30 on: April 01, 2008, 12:55:20 PM »
LMAO, very nice KewlToyZ. How about combining it with a reactor so they can't get around it.

Code: [Select]
(vl-load-com)
(or explodereactor
    (setq explodereactor
           (vlr-command-reactor
             nil
             '((:vlr-commandwillstart . cmdstart)
               (:vlr-commandended . cmdend)
               (:vlr-commandcancelled . cmdcan)
               )
             ) ;_ end of vlr-command-reactor
          ) ;_ end of setq
    ) ;_ end of or

(defun cmdstart (react cmd /)
  (setq speak (vlax-create-object "Sapi.SpVoice"))
  (setq cmd (strcase (car cmd) t))
  (cond
    ((wcmatch cmd "*explode*")
     (vlax-invoke speak "Speak" "I will drag you over hot coals if you do what I think you're about to do" 0)
     )
    )
    (vlax-release-object speak)
  ) ;_ end of defun

(defun cmdend (react cmd /)
  (setq speak (vlax-create-object "Sapi.SpVoice"))
  (setq cmd (strcase (car cmd) t))
   (cond
     ((wcmatch cmd "*explode*")
     (vlax-invoke speak "Speak" "If you exploded any dimensions, m text or peelines, you are gone" 0)
      )
     )
  (vlax-release-object speak)
  ) ;_ end of defun

(defun cmdcan (react cmd /)
  (setq speak (vlax-create-object "Sapi.SpVoice"))
  (setq cmd (strcase (car cmd) t))
  (cond
    ((wcmatch cmd "*explode*")
     (vlax-invoke speak "Speak" "Smart move, canceling out" 0)
     )
    )
    (vlax-release-object speak)
  ) ;_ end of defun
 

deegeecees

  • Guest
Re: CAN I DISABLE THE EXPLODE COMMAND??
« Reply #31 on: April 01, 2008, 12:57:35 PM »
Thats a keeper!

Josh Nieman

  • Guest
Re: CAN I DISABLE THE EXPLODE COMMAND??
« Reply #32 on: April 01, 2008, 01:07:43 PM »
LMAO, very nice KewlToyZ. How about combining it with a reactor so they can't get around it.

Code: [Select]
     (vlax-invoke speak "Speak" "I will drag you over hot coals if you do what I think you're about to do" 0)

     (vlax-invoke speak "Speak" "If you exploded any dimensions, m text or peelines, you are gone" 0)

     (vlax-invoke speak "Speak" "Smart move, canceling out" 0)

 

hahaha I like it.

Zydenet

  • Guest
Re: CAN I DISABLE THE EXPLODE COMMAND??
« Reply #33 on: April 01, 2008, 03:20:13 PM »
I wish I had someone here doing cad to mess with. It's not as funny when I burn myself.
"peelines" I guess I could of used "p lines".

KewlToyZ

  • Guest
Re: CAN I DISABLE THE EXPLODE COMMAND??
« Reply #34 on: April 01, 2008, 05:56:14 PM »
LOL, well if you were up north I would venture a yellow snow reference  :kewl:

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: CAN I DISABLE THE EXPLODE COMMAND??
« Reply #35 on: April 01, 2008, 06:50:24 PM »
This a funny development.  I think the user should be prompted to turn in their resignation. Informed that their severance package will be delivered to them shortly.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

ronjonp

  • Needs a day job
  • Posts: 7529
Re: CAN I DISABLE THE EXPLODE COMMAND??
« Reply #36 on: April 01, 2008, 11:08:40 PM »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Bethrine

  • Guest
Re: CAN I DISABLE THE EXPLODE COMMAND??
« Reply #37 on: April 04, 2008, 01:32:02 AM »
Hmm. I try not to explode anything and if I do I redefine the block if it is applicable to all the blocks used in that drawing. However, fairly often I find one particular piece that needs a dashed line of a different lineweight in the same block so I will explode it and use that one in paticular for that instance. If there is a better way I am all ears! Ah...eyes ;)