custom commands won't work in series

Discussion in 'AutoCAD' started by Laurie Comerford, Oct 13, 2004.

  1. Hi,

    Try each of them in a single command.
    eg
    (command "fup")
    (command "pup")

    or whatever

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Oct 13, 2004
    #1
  2. Laurie Comerford

    The Cad Man Guest

    I have four custom routines that I want to envoke using a single routine.
    Here it is:

    (defun c:attupied ()
    (command "fup" "pup" "dateup" "plotdate")
    (command "regen"));;

    For some reason it gives me an error for each of the commands saying that it
    has no function definition.

    I autoload fup, pup, dateup, plotdate and they work fine when typing the
    command in the command line by itself, but won't run through (command "").

    Anyone know what could cause this.

    Each routine starts
    (defun c:routinename ()
     
    The Cad Man, Oct 13, 2004
    #2
  3. Laurie Comerford

    The Cad Man Guest

    Same deal....
    I ended up with
    (defun c:attupied ()
    (c:pup)
    (c:fup)
    (c:dateup)
    etc.

    This works, but are there any unforseen problems with this?
     
    The Cad Man, Oct 13, 2004
    #3
  4. Hi,

    Yes - but since they are unforseen we don't know what they are

    No - You can't give this answer as there may be unforseen problems.

    Maybe - Now you know as much as anyone

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Oct 13, 2004
    #4
  5. Laurie Comerford

    Tom Smith Guest

    They aren't "commands." Call them as lisp functions.

    (defun c:attupied ()
    (c:fup)
    (c:pup)
    (c:dateup)
    (c:plotdate)
    (command "regen")
    (princ)
    )
     
    Tom Smith, Oct 13, 2004
    #5
  6. Laurie Comerford

    The Cad Man Guest

    lol...yeh.

    The commands run fine by themselves when typed into the command line. I
    need them to run in series. When I use the (command "routine") it says
    command unknown. If I just type in "routine" it works fine.

    Anyone know what could cause this?
     
    The Cad Man, Oct 13, 2004
    #6
  7. Laurie Comerford

    The Cad Man Guest

    thanks.
     
    The Cad Man, Oct 13, 2004
    #7
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.