Can't not Change HatchObjectType property in an inactive drawing.

Discussion in 'AutoCAD' started by alin, Mar 4, 2005.

  1. alin

    alin Guest

    Hi

    I am writing a VBA macro to batch make slides.

    While the solid hatch entities are not "Solid" at all in slides, I try to substitute them with Gradient hatch. It works in an active drawing. But when I apply it to an inactive document object, the AutoCAD collapse. Here is the message:

    Fatal Error: Unhandled Access Violation Reading 0x0000 Exception at 0h

    Any help will be appreciated.

    Alvin
     
    alin, Mar 4, 2005
    #1
  2. alin

    Jeff Mishler Guest

    Hi Alvin,
    Not the answer you are looking for, but you may want to look at the thread
    over in the customization newsgroup that was started on Jan. 8, 2005,
    entitled "Changing Hatch PatternScale via ActiveX". In it you will find a
    workaround that may, or may not, suit your needs.

    Using this method, you could revise the drawings accordingly and then add
    them to the documents collection for processing.

    Good Luck,
     
    Jeff Mishler, Mar 4, 2005
    #2
  3. alin

    alin Guest

    Thanks Jeff.

    Alvin
     
    alin, Mar 8, 2005
    #3
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.