+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Senior Member
    Computer Details
    flowerrobot's Computer Details
    Operating System:
    Windowns 7
    Computer:
    Lenovo W520
    Discipline
    Mechanical
    flowerrobot's Discipline Details
    Occupation
    Cad Manger
    Discipline
    Mechanical
    Using
    Mechanical 2013
    Join Date
    Sep 2007
    Location
    Sydney
    Posts
    384

    Default Selection set get

    Registered forum members do not see this ad.

    Currently trying to work with reactors and not having much success.
    • Im trying to log every new entity created and errased.
    As far as i can work out, a reactor fires at the start and the end, Thus if you use the line command, It will be logged the start, But if you draw 6 lines then cancell the end/cancell reactors will fire, Thus this causes entlast to not grab every enitity created.Have i missed a reactor type that will fire every time a object is created/removed ?
    • Get a selection set.
    When a start reactor begins, alot of the time you have yet to make a selection set, hence you carnt get the active selection selection set, so do how you go about getting the previouse selection set?

    Thanks guys
    Flower

  2. #2
    Senior Member
    Computer Details
    JohnM's Computer Details
    Operating System:
    xp pro
    Using
    AutoCAD 2006
    Join Date
    Feb 2009
    Location
    houston, texas
    Posts
    380

    Default

    Maybe this will give you some ideas, it’s thrown together and needs more work but it might get you in the right direction.

    The problem about retrieving entity information when something is undone , canceled or erased is that the reactor will return the entity name but the entity information will be nil.

    Code:
     
    (vl-load-com)
    (defun OAcb (a b / nent)  
    (setq nent (vl-princ-to-string(cadr b)))
    (princ (strcat nent " Added to Drawing"))
      );_defun
    (defun OEcb (a b / delent)
    (setq delent (vl-princ-to-string(cadr b)))
    (princ (strcat delent " Deleted From Drawing"))
      );_defun
    (if (not (= (type OArct) 'VLR-AcDb-Reactor))
     (progn
    (setq OArct(vlr-acdb-reactor nil '((:vlr-objectAppended . OAcb))))
    (setq OErct(vlr-acdb-reactor nil '((:vlr-objectErased . OEcb))))
    );_progn
      );_if

  3. #3
    Senior Member
    Computer Details
    flowerrobot's Computer Details
    Operating System:
    Windowns 7
    Computer:
    Lenovo W520
    Discipline
    Mechanical
    flowerrobot's Discipline Details
    Occupation
    Cad Manger
    Discipline
    Mechanical
    Using
    Mechanical 2013
    Join Date
    Sep 2007
    Location
    Sydney
    Posts
    384

    Default

    Thank you my friend this should set me well on my way for atleast the first issue thanks!!

    Flower

  4. #4
    Senior Member
    Computer Details
    JohnM's Computer Details
    Operating System:
    xp pro
    Using
    AutoCAD 2006
    Join Date
    Feb 2009
    Location
    houston, texas
    Posts
    380

    Default

    what are you trying to do?

  5. #5
    Senior Member
    Computer Details
    flowerrobot's Computer Details
    Operating System:
    Windowns 7
    Computer:
    Lenovo W520
    Discipline
    Mechanical
    flowerrobot's Discipline Details
    Occupation
    Cad Manger
    Discipline
    Mechanical
    Using
    Mechanical 2013
    Join Date
    Sep 2007
    Location
    Sydney
    Posts
    384

    Default

    Registered forum members do not see this ad.

    Im currently trying to modify the refedit structure. Well more so trying to replicate Acad's Mec Refedit Block structure. Where you can edit a block then once completed,Change the name and base point, Thus for this to happen i have workout tow methods (if you can see a simpler method please let me kno)

    Monitor every created and distroyed item and namespace change. Thus at the end, Replicated these into a new block

    Or

    Create a back of up of the original ,then once complete take the new block table and create a new one identical then replace the table with the backed up information

    Im currently just in the exploring stage.
    Still having trubble identifying the exact block entity being editied

Similar Threads

  1. selection preview effect - selection preview filtering
    By dusko in forum AutoCAD Beginners' Area
    Replies: 6
    Last Post: 18th Jun 2008, 08:43 am
  2. No Selection!
    By alijahed in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 7
    Last Post: 19th Mar 2008, 04:45 am
  3. Selection??
    By StykFacE in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 4th May 2007, 12:03 am
  4. delay in selection of objects/selection windows
    By RedRobMol in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 31st May 2005, 01:34 pm
  5. VBA Selection Set
    By j_r_auden in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 23rd Feb 2005, 09:48 am

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