Hello,
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/hatch-using-the-autocad-net-api.html but when I run it, Autocad stops with an error fatal
Someone would have an idea of the problem ?
Thanks
hi,
if the value has changed is PatternScale I tested with different values but still the same problem 'eInvalidInput'
Hi,
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 -