I always include the optional arguments when adding the shape by pointsarray:
shps.AddByPointsArray(pts, ptary, True, 0)
It doesn't seem like that should matter, but I've had success using it like that.
I also specify the oversize values with integers, as in:
In your case it would be
for square oversize type.
- Do you have a reference to the MASKENGINEAUTOMATIONCONTROLLERLib? If not, you need to add one to your project references.
- I declare the mask engine like this (vb):
Public mskeng As MASKENGINEAUTOMATIONCONTROLLERLib.MaskEngine
but I see you are declaring it as type var. Not sure if it matters but worth a try to set it to the right data type.
I have used methods like this many times and had good luck with them. Once you get it right the mask engine is reliable and very powerful.
Patrick thanks very much for the response. Adding the optional arguments for pointsarray is what fixed it for me. Its strange because the arguments added are the default values. I will keep this in mind going forward. Thanks again!