lisp for copy/pasting at origin

Discussion in 'AutoCAD' started by Mike Shick, Feb 2, 2005.

  1. Mike Shick

    Mike Shick Guest

    does anyone have a lisp routine for copying an object at with origin as
    the base point (without having to enter 0,0)?

    likewise, does does anyone have a lisp routine for pasting an object at
    the origin as the base point (without having to enter 0,0)?

    thanks.

    mike
     
    Mike Shick, Feb 2, 2005
    #1
  2. Mike Shick

    James Allen Guest

    Hi Mike,
    If it isn't part of something else you're building, just use "Copy"
    [copyclip], and "Paste to Original Coordinates" [pasteorig]. No lisp
    needed.

    In lisp:
    (vl-cmdf "_.copyclip")
    (vl-cmdf "_.pasteorig")
    Or if I've done too much interpreting:
    (vl-cmdf "_.copybase" '(0 0 0))
    (vl-cmdf "_.pasteclip" '(0 0 0))
     
    James Allen, Feb 2, 2005
    #2
  3. Mike Shick

    Mike Shick Guest

    thanks, james.
     
    Mike Shick, Feb 2, 2005
    #3
  4. Mike Shick

    Mike Shick Guest

    actually, i cannot get pasteorig to everytime...it only pastes some of
    the time.

    ???
     
    Mike Shick, Feb 2, 2005
    #4
  5. Mike Shick

    James Allen Guest

    Yeah, I had noticed that too.
    From help: "PASTEORIG functions only when the Clipboard contains AutoCAD
    data from a drawing other than the current drawing."

    James
     
    James Allen, Feb 2, 2005
    #5
  6. Which never has made much sense to me. Often I'll
    want to paste items from layout to layout within the
    same file at the same origin. Wonder what the logic
    is there?
     
    Jason Piercey, Feb 2, 2005
    #6
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.