Command exist or not!!! How to find???

Discussion in 'AutoCAD' started by musa.biralo, Sep 4, 2006.

  1. musa.biralo

    musa.biralo Guest

    Hi,
    i want to know if the command exist in the autocad or not. Actually i
    am using separate software(H2ONET) that runs on autocad.
    Let's say abc is a command and i want to know where the autocad can use
    abc command or not....eg..

    (command "abc" "")

    These two separate statements are not usable. Looking for something
    different.

    (if(= command "abc" nil)(alert "Not Found"))

    and

    (atoms-family 0 '("abc")) or
    (atoms-family 0 '("c:abc"))

    Typing abc in the command line works but (atoms-faily 0'("abc")) gives
    me (nil).

    musa.biralo
     
    musa.biralo, Sep 4, 2006
    #1
  2. musa.biralo

    Paul Turvill Guest

    If the command is externally defined, then try
    (if (not c:abc)
    (alert "Not found.")
    )

    In any case you can't use (command ...) with externally defined commands.
    You need to call them like any other function:

    (c:abc)
    ___
     
    Paul Turvill, Sep 5, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.