I encounter a problem with the hatch command when I use the pattern 'ZIGZAG'
I tested the code http://adndevblog.typepad.com/autocad/2012/07/hatc
Someone would have an idea of the problem ?
try to move the line with .PatternScale after the line with .SetHatchPattern.
Reason: there was a change between AutoCAD version 2011 and 2012 (maybe between 2010 and 2011, not really sure about that and I have no chance now to look at it) with the hatch .Rotation property, the order of the lines (first set rotation, then set hatchpattern or first set hatchpattern and then set rotation) is relevant to the version of AutoCAD, maybe the same is valid for the pattern scale.
HTH, - alfred -
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.