move pline vertices -- vl-every? mapcar?

Discussion in 'AutoCAD' started by liftedaxis, Jul 31, 2004.

  1. liftedaxis

    liftedaxis Guest

    i know there's a slick way to do this with little code, but it's late on a friday. hoping someone out there can just fart this out in my direction.
    i want to move a polyline, given two points as reference.
    so for each 10 group, modify it based on:
    (polar (cdr (assoc 10 plinex) (angle p1 p2) (distance p1 p2))

    just can't figure out if i'm doing this right....

    thanks for any help!

    --Jeremiah
     
    liftedaxis, Jul 31, 2004
    #1
  2. liftedaxis

    liftedaxis Guest

    okay, i just have to say, with the system blanking out that one word of my choice, it makes it look especially foul.
    i used the f - a - r - t word, not the S word it looks like all blanked out.

    --J
     
    liftedaxis, Jul 31, 2004
    #2
  3. liftedaxis

    liftedaxis Guest

    hey, i figured it out! in case anyone's interested:

    (setq plinex (mapcar '(lambda (x)
    (if (= (car x) 10)
    (append (list 10) (polar (cdr x) (angle p1 p2) (distance p1 p2)))
    x
    ) ; if
    ) ; lambda
    plinex) ; mapcar
    ) ; setq
     
    liftedaxis, Jul 31, 2004
    #3
  4. liftedaxis

    David Bethel Guest

    Why not (command "_.MOVE" ..... ?

    -David
     
    David Bethel, Jul 31, 2004
    #4
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.