Active Contributor
Posts: 33
Registered: ‎09-23-2011
Message 1 of 2 (621 Views)

[VB.NET] Autocad 2012 / 2013 Hatch explode (with very small size between lines)

621 Views, 1 Replies
06-29-2012 07:02 AM

Hello everyone !

I've encountered a problem with autocad. For some reasons, i've read that, for sparing some CPU charge, when I draw a hatch with very small space between lines (for my project, i need 0.001 mm of space between lines, coz we use lasers to drill very small holes into materials, and i'm pilotting the lasers with our addon for autocad), the hatch is like a solid hatch, and if i explodes it, it gave me nothing. (but i need the lines from the exploding)

If the space is bigger, if I explodes  the hatch, i've got lines.

So, i'm searching for a method to explode this hatch with very small space.

I found something, but it's veeeeeery long ! I've to move to the center of the hatch, then zoom on it (maximum) then explode the hatch. and with this, i've got my lines. But as I said, it's veeeery long.

I've also read that i needed to use an instruction :

(setenv “MaxHatch” “1000000”)

but the result is the same.

Can someone help me to do this?

Thanks a lot and sorry for my bad english, french is my mothertongue

Adri Dicri



Distinguished Contributor
Posts: 104
Registered: ‎04-21-2011
Message 2 of 2 (598 Views)

Re: [VB.NET] Autocad 2012 / 2013 Hatch explode (with very small size between lin

07-01-2012 10:01 AM in reply to: AdriDicri

Interesting problem. How about creating the lines yourself using the boundary geometry? If you can obtain the boundary curves and then find the interesections with your lines, then this should give you complete control so that you aren't reliant on the inner workings of the AutoCAD explode mechanism.


To get the boundaries you can get the hatch loops from the hatch itself or perhaps use the Editor.TraceBoundary() method as outlined in the following post:


Another alternative might be to scale the hatch and its pattern scale up to a size that can be safely exploded, and then scale the exploded geometry back down to the original size.



You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community