aced Commands in DBX

Discussion in 'AutoCAD' started by Martin Schmid, Feb 7, 2004.

  1. I have found that aced<> commands are not available in DBX... I suppose this
    makes sense...

    What I need to do get the value variable (i.e., acedGetVar) in the
    'drawable' function of a DBX

    Would it be possible to do this instead:

    1. In an ARX have a reactor that sets a variable.
    2. In the 'drawable' of my DBX, have it read from that variable?
    -- is there some way to check what the DBX host appiclation is... i.e.,
    if it is not acad, and the arx is unavailable, do nothing?

    How would I structure my code such that the DBX can read a variable from the
    ARX space?
     
    Martin Schmid, Feb 7, 2004
    #1
  2. You may find more appropriate information and receive better
    responses by posting future object arx related questions in the
    object arx discussion group, available at:


    By NNTP discussion group reader at
    news://discussion.autodesk.com/autodesk.autocad.objectarx
    By HTTP (web-based) interface at
    http://discussion.autodesk.com/forum.jspa?forumID=34
     
    Jason Piercey, Feb 7, 2004
    #2
  3. Tony, thanks for the response...
    That is what I reasoned to be the case...
    Ok... you answered my quesiton #2.. that it is possible... but how would I
    go about doing this? It seems that now my ARX is Statically linked to my
    DBX (i.e., in the link settings for my ARX, I have my <whatever>.lib listed
    from my DBX)... I need some help on how to dynamically link my DBX to my
    ARX...

    Thanks for your insight...
     
    Martin Schmid, Feb 7, 2004
    #3
  4. Use GetProcAddress() with the module handle of the
    ARX library to get a pointer to a function. Since
    you can't assume that the ARX is loaded, you have
    to dynamically link to it.
     
    Tony Tanzillo, Feb 7, 2004
    #4
  5. I suppose the other option is to build this custom entity entirely within
    the ARX so I don't have to mess w/ the dynamic linking.. since it is not DBX
    safe anyway, there would be no significant advantage to segregating UI from
    the DBExtension code (would there?). Other than the fact that the Wizard
    will build the necessary skeleton code for me in the DBX, I can always have
    a parallel project, and copy over what I need.
     
    Martin Schmid, Feb 8, 2004
    #5
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.