+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Forum Newbie
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2017
    Join Date
    Jan 2017
    Posts
    7

    Default Store multiple groups of objects to paste later in LISP

    Registered forum members do not see this ad.

    Hi again

    Is it possible to have multiple objects/selection sets stored on the clipboard or elsewhere?

    I am looking at a routine in which I would like to copy a bunch of objects to the clipboard at the start of a routine and paste them back in place at the end once the originals have been manipulated by the LISP, however, I would also like to use the clipboard in the middle of the LISP, something like:-

    Copy Group 1
    Copy Group 2
    Paste Group 2
    Paste Group 1

    Can anyone point me in the direction of a command/s that would accomplish this? Does a setq of an ssget store entity info or merely which entities are within the group?

    I was going to head down the route of opening a temp drawing to store the required objects but hoped there would be a simpler solution.

    Hope that make sense.

  2. #2
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    19,186

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Esteban_CAD View Post
    Does a setq of an ssget store entity info or merely which entities are within the group?
    A selection set is a merely collection of entity names (which themselves are pointers to entries in the drawing database): the drawing database stores all data pertaining to an entity, the entity name simply tells you where to find it, and a selection set is a collection of such entity names.

    Assigning a selection set to a variable using set/setq simply stores the memory address of the selection set so that it may be accessed/referenced again later.

    As such, adding or removing entities from a selection set does not change the value of the variables referencing the selection set, and similarly, modifying objects (i.e. changing the data for an entity in the drawing database) does not change the entity names for such objects.
    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

Similar Threads

  1. store multiple custom variables
    By Aftertouch in forum AutoLISP, Visual LISP & DCL
    Replies: 15
    Last Post: 6th Jan 2017, 08:05 am
  2. how to ungroup multiple groups?
    By ktbjx in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 17th Nov 2016, 01:54 pm
  3. Groups Copy and paste
    By wimal in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 7th Jul 2014, 08:18 am
  4. Copy and Paste Breaks Groups
    By tennis4you in forum AutoCAD General
    Replies: 0
    Last Post: 12th Oct 2011, 03:51 am
  5. Searching for a lisp replacing two groups of objects
    By asos2000 in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 20th May 2008, 03:18 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts