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
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.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register