Need help with ARX loading before Xrefs

Discussion in 'AutoCAD' started by 212nyeric, Sep 29, 2004.

  1. 212nyeric

    212nyeric Guest

    I have an ARX that I need to load before the xrefs load. I am using AutoCAD 2004/2005. The ARX helps map autocad to the correct area I keep xrefs.

    The problem is that if users double-click a dwg autocad opens and does not find the xref (because the program has not loaded yet) then the ARX loads.

    But if I first open autocad the ARX loads then double-clicking the dwg or use Autocad's File->Open (because the arx is already loaded) Autocad finds the xrefs with no problem.

    So for now I have been telling users to first open Autocad then use File->Open. But this is not acceptable.

    I have put the ARX load in acad.lsp, acaddoc.lsp, acad.rx & acad.mnl but the xrefs load first.
     
    212nyeric, Sep 29, 2004
    #1
  2. 212nyeric

    mataeux Guest

    one solution is to react to the drawing being saved

    your code will unload all xrefs before it saves. then upon subsequent
    opening, your arx will load and then reload the xrefs

    the only problem there is that you wont be able to distinguish xrefs that
    the user intends to remain unloaded, that is, unless you store (in a
    dictionary?) which xrefs the user set to remain unloaded, all xrefs will be
    loaded





    AutoCAD 2004/2005. The ARX helps map autocad to the correct area I keep
    xrefs.
    find the xref (because the program has not loaded yet) then the ARX loads.
    use Autocad's File->Open (because the arx is already loaded) Autocad finds
    the xrefs with no problem.
    File->Open. But this is not acceptable.
    the xrefs load first.
     
    mataeux, Sep 30, 2004
    #2
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.