VBA routine at dwg startup, when opening through Xref Manager

Discussion in 'AutoCAD' started by terencechatfielduk, Oct 21, 2004.

  1. I'm trying to get to run a simple VBA routine at drawing startup, which works fine if a drawing is opened manually, or through the XOPEN command, but which won't work if I open the drawing through the xref manager.

    The manager opens drawings, then unfortunately switches back to the parent drawing the open was done from, so the VBA routine runs but somehow gets confused as to what is happening, with the end result I have to exit the session to get access to it, after which I give up on doing anything VBA related in this way.

    Is there a way around this that would allow VBA routines to run when opening a drawing? I'd preferable like to stop the switching back to the parent drawing (which is mostly pointless, why open a drawing if I don't want to look at it/), if this is possible?
     
    terencechatfielduk, Oct 21, 2004
    #1
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.