initiating lisp routine withing a routine

Discussion in 'AutoCAD' started by willie R, Dec 17, 2003.

  1. willie R

    willie R Guest

    I am trying to initialize a lisp routine while I am in another routine. I
    am doing this with the call to command. can anyone help me. everything
    runs fine till I try to reference the exchprop lisp routine. I am in
    autocad 2002 and I have the exchprop.lsp loaded in my startup suite.

    (defun c:c2 (/ curlay ss1 )
    (setq curlay (getvar "clayer"))
    (setq ss1 (ssget))
    (command "copy" ss1 "" "0,0" "0,0")
    (command "EXCHPROP" "p" "")(princ)
    )
    (princ)
     
    willie R, Dec 17, 2003
    #1
  2. willie R

    David Kampe Guest

    Drop the "command" call to EXCHPROP
    command is for AutoCad native commands

    (defun c:c2 (/ curlay ss1 )
    or use (c:EXCHPROP)

    ddk
     
    David Kampe, Dec 17, 2003
    #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.