Plotting with layout Changed Events

Discussion in 'AutoCAD' started by Alan Neal, Jul 10, 2003.

  1. Alan Neal

    Alan Neal Guest

    I was curious as to whether other people have had problems in Autocad 2004
    with sudden crashes using the layout changed event. I am using a program
    that remembers layout names and saves layer color and linetypes based on
    the layout name. During normal layout switching it works fine, but when
    plotting multiple sheets, something is going awry when autocad changes the
    layout to plot. My guess is that plot is not waiting for the VBA commands
    to run? Anybody know a good alternative to this? I am looking for the
    color and linetype changes to be made per layout, since Autodesk hasn't put
    in a layer control by layout setting. (so that we can emphasize different
    layers on different sheets in a document without a different file for each
    sheet)
     
    Alan Neal, Jul 10, 2003
    #1
  2. How are you plotting the layouts - one at a time, or all at once by
    specifying to use all within the call to plotting? If the latter, switch
    to plotting one at a time with a call to Win32 API's SLEEP to slow
    things down.

    Also, is this a full vb app or vba? It is possible that it will never
    work if you are using vba since the event might not fire until the
    plotting app is finished.
    ___________________________
    Mike Tuersley
    AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Jul 11, 2003
    #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.