Save event triggered when block inserted from tool palette

Discussion in 'AutoCAD' started by Nathaniel, Jun 8, 2004.

  1. Nathaniel

    Nathaniel Guest

    Can anyone explain why the BeginSave and EndSave events are triggered by a block being inserted via a tool palette? I am trying to have a database synchronization script run (takes about 3 seconds) on the EndSave event but it's completely worthless if it runs every time I drop a block onto the drawing; 3 seconds for every icon is ridiculous.

    It does not trigger if a block is inserted via Insert -> Block, or much else from what I can see, just when a block is inserted from a tool palette.

    Should I be tracking the EndCommand event instead and just filtering out saves, or is there a way to tell AutoCAD 2005 not to "save" (it doesn't actually seem to create a drawing, just triggers the event) when I do this? If I have to track commands, which I'd rather not but may have no choice, can someone list all the commands that cause a drawing to save?

    Thanks!!
    # Nathan
     
    Nathaniel, Jun 8, 2004
    #1
  2. Nathaniel

    Ben Rand Guest

    Could you filter out the following CommandNames using a Select Case?

    DROPGEOM -- when you drag a tool from a toolpalette
    EXECUTETOOL -- when you click a tool on a toolpalette

    Ben Rand
    CAD Manager
    CEntry Constructors & Engineers


    block being inserted via a tool palette? I am trying to have a database
    synchronization script run (takes about 3 seconds) on the EndSave event but
    it's completely worthless if it runs every time I drop a block onto the
    drawing; 3 seconds for every icon is ridiculous.
    else from what I can see, just when a block is inserted from a tool palette.
    saves, or is there a way to tell AutoCAD 2005 not to "save" (it doesn't
    actually seem to create a drawing, just triggers the event) when I do this?
    If I have to track commands, which I'd rather not but may have no choice,
    can someone list all the commands that cause a drawing to save?
     
    Ben Rand, Jun 9, 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.