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

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

Anonymous
Not applicable
273 Views
2 Replies
Message 1 of 3

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

Anonymous
Not applicable
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
0 Likes
274 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
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 check out www.cadvault.com "alin" wrote in message news:25196981.1109905770329.JavaMail.jive@jiveforum1.autodesk.com... > 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
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Jeff.

Alvin
0 Likes