Is there event for BRX of selecting object?

Is there event for BRX of selecting object?

Comments

  • please see AcEdInputContextReactor... should be what you need ?
    many greetings !
  • Thanks!!!
    Can you write simple example ?
  • I do not have such example code at hand ... but simply check the web, very likely you can find a number of sample cases ...
    many greetings !

  • I experimented with AsdkInputContextReactor.

    Called  only beginQuiescentState(), endQuiescentState()
    sometimes beginDragSequence(), endDragSequence()
    not others.

    I thinked,  that when I will select object  then will be called   beginEntsel() then endEntsel(). 
    but don't happened.

    Why?   Who was having same problems?

  • How do you (your users) select the entity ? By entsel() function, or by clicking onto the entity ?
    there is also reactor event for "pickfirst selectionset" modified by AcEditorReactor::pickfirstModified() - then your code can retrieve the pickfirst selectionset, to get all the entities actually selected.
    I hope this helps ?P.S: beginEntsel() acts on acedEntSel() only
  • Thanks for help.

    I tried to use AcEditorReactor::pickfirstModified();
    I Created my class.
    Then i added
            ArxDbgEditorReactor::rxInit();
            acrxBuildClassHierarchy();
    into 
           virtual AcRx::AppRetCode On_kInitAppMsg(void* pAppData){}
    as  was showed in  example.

    But when i load arx Autovad crashed.

    How do i must use ArxDbgEditorReactor ?

  • Hi, Oleg,

    it crashes in AutoCAD ?
    It seems best, to send a support request, with your project ... but of course, we primarily care for BricsCAD, not for AutoCAD problems;
    so does it work or crash in BricsCAD as well ?

    Btw., ARX also has tons of examples, with EditorReactors - try to compile their samples, to run in AutoCAD ...
    you can then compare the Autodesk sample EditorReactor with your implementations.
  • Sorry
    Ofcouse i mean BricsCAD and BRX.
    I inserted  copy from my message for other forums   )))
This discussion has been closed.