Results 1 to 1 of 1

Thread: how Can i copy the persistent reactor from Entity to the new Copy?

  1. #1
    Member
    Join Date
    2013-05
    Posts
    7
    Login to Give a bone
    0

    Default how Can i copy the persistent reactor from Entity to the new Copy?

    I have a AcDbline in the model-space And I have add a curstomized persistent reactor to it,Now I want to realize that:
    When I copy the line ,then make the new line have the same persistent reactor attched to it.

    i.e the new persistent reactor class is :

    class AsdkObjectToNotify : public AcDbObject
    {
    virtual void copied(const AcDbObject* dbObj, const AcDbObject* newObj);

    };
    I have override the copied function ,but found newObj is in read - only state.I cann't make it writeable I have tried.

    I have think that May I can use other reactor class to accomplish that

    i.e AcEditorReactor ,AcDbDatabaseReactor ...

    but found all the function 's paramter is const- qualified. I cann't write the object as parameter.

    So will method may help me ?

    THANKS!


    >>>Editing :
    I FOUND ARX.chm said
    "Transient reactor attachments to the original object are not copied to the new object, but persistent reactor attachments are."

    But I have test it,following the above sample, The newly AcDbLine Copy don't copy the original Line's persistent reactor.
    "
    Last edited by 740176597380946; 2013-06-20 at 08:22 AM.

Similar Threads

  1. Replies: 1
    Last Post: 2011-11-16, 12:41 PM
  2. reactor in entity
    By clovis in forum AutoLISP
    Replies: 2
    Last Post: 2008-11-24, 02:34 PM
  3. copy a block reactor
    By rklee in forum AutoLISP
    Replies: 7
    Last Post: 2008-08-07, 12:15 PM
  4. copy text entity values
    By aaronic_abacus in forum AutoLISP
    Replies: 1
    Last Post: 2007-01-09, 05:42 AM
  5. AutoCAD 2005 set default multiple copy, back to single copy
    By saniukt1 in forum AutoCAD Customization
    Replies: 1
    Last Post: 2005-04-13, 01:01 PM

Posting Permissions

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