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 -
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!