lightweight polylines

lightweight polylines

Anonymous
Not applicable
259 Views
3 Replies
Message 1 of 4

lightweight polylines

Anonymous
Not applicable
another dumb question. how do you ask for the number of coordinates in a lwpolyline
i want to inspect all the coordinate elements as in
object.coordinate(index)

ie if i have a polyline caller bounder then i know

bounder.coordinate(0) is the first coordinate

but if i want to run through all the coordinates without dropping off the end. i need to know how manycoordinate(s) there are . i tried ubound but it doesnt like it.
0 Likes
260 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
I don't know if this the *right* answer, but I get a variant array of the
coordinates, and use UBound on that to obtain the number of vertices,
something like:

Dim vCrds as Variant
Dim lVtxCnt as Long
vCrds = oLwPoly.Coordinates
lVtxCnt = (UBound(vCrds) + 1) / 2

wrote in message news:4923688@discussion.autodesk.com...
another dumb question. how do you ask for the number of coordinates in a
lwpolyline
i want to inspect all the coordinate elements as in
object.coordinate(index)

ie if i have a polyline caller bounder then i know

bounder.coordinate(0) is the first coordinate

but if i want to run through all the coordinates without dropping off the
end. i need to know how manycoordinate(s) there are . i tried ubound but it
doesnt like it.
0 Likes
Message 3 of 4

Anonymous
Not applicable
yes, i came to that way of doing it too. (except i forgot to add 1 )

thanks. maybe there is no other way

pau;
0 Likes
Message 4 of 4

Anonymous
Not applicable
Hopefully one of the gurus will chime in, shortly.

wrote in message news:4923696@discussion.autodesk.com...
yes, i came to that way of doing it too. (except i forgot to add 1 )

thanks. maybe there is no other way

pau;
0 Likes