it's very simple

Discussion in 'AutoCAD' started by caderudite, Sep 12, 2003.

  1. caderudite

    caderudite Guest

    hi there,
    I want to specify P2 which is 15units X and 15units Y from P1.
    (setq P2 (list (+ (car P1) 15 (+ (cadr P1) 15))))
    what's wrong
    thanks
     
    caderudite, Sep 12, 2003
    #1
  2. caderudite

    Mark Propst Guest

    (setq P2



    (list



     (+ (car P1) 15);<--- needed paren here



     (+ (cadr P1) 15)



    )



    )



     




    "caderudite" <> wrote in message news:...

    hi there,
    I want to specify P2 which is 15units X and 15units Y from P1.
    (setq P2 (list (+ (car P1) 15 (+ (cadr P1) 15))))
    what's wrong
    thanks
     
    Mark Propst, Sep 12, 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.