Does anyone know what the limits of the DrawPolyline method of the Document object are? Primarily in terms of the limits on the number of elements allowed to be passed in in the xyArray argument. I'm using it now and on some occasions it die (I'm guessing because there are too many array elements) It errors out with "Invalid Parameter". Any ideas on ways to get around the limits (if that what the problem is). The error tends to appear when I have more than like 10000 elements in the array. Thanks again
Oops... just to clarify, it's actually the DrawPolyLine method of the Page object "adb" wrote: > Does anyone know what the limits of the DrawPolyline method of the Document > object are? Primarily in terms of the limits on the number of elements > allowed to be passed in in the xyArray argument. > I'm using it now and on some occasions it die (I'm guessing because there > are too many array elements) It errors out with "Invalid Parameter". Any > ideas on ways to get around the limits (if that what the problem is). The > error tends to appear when I have more than like 10000 elements in the array. > > Thanks again
DrawPolyLine seems to only be able to support an array that has a maximum of 8186 elements in it, or 4093 x,y coordinate pairs. To get around the limit, I just had to watch for when the array reached the limit, then execute DrawPolyLine with the maxxed out array, then reset the array and start it over continuing with the next element. After all elements were created, I then selected each of the polyline segments and did a Combine or Join on them. That left the shapes not filled though, so I also had to set the FillPattern and Foreground Fill Color as well as setting the NoFill property in the shapesheet to false. "adb" wrote: > Oops... just to clarify, it's actually the DrawPolyLine method of the Page > object > > "adb" wrote: > > > Does anyone know what the limits of the DrawPolyline method of the Document > > object are? Primarily in terms of the limits on the number of elements > > allowed to be passed in in the xyArray argument. > > I'm using it now and on some occasions it die (I'm guessing because there > > are too many array elements) It errors out with "Invalid Parameter". Any > > ideas on ways to get around the limits (if that what the problem is). The > > error tends to appear when I have more than like 10000 elements in the array. > > > > Thanks again