Hello to all,
I have a question concerning nodes in Polylines.
1. Is it possible to get the number of nodes in a Polyline?
2. in the next step I would like to get the coordinates for all the nodes which are
building a polyline.
Due to the amount of polylines it´s not possible to do
Title: RE: MI Nodes in Polylines
1. Is it possible to get the number of nodes in a Polyline?
Getting the number of nodes for a pline is found through ObjectInfo.
Dim bObject As Object
Dim nNumNodes As Integer
bObject = PolylineTable.Obj
nNumNodes = ObjectInfo(bObject, OBJ_INFO_NPNTS
Title: RE: MI Nodes in Polylines
You
cannot use
nNumNodes = ObjectInfo(bObject,
OBJ_INFO_NPNTS)
as the
upper boundary for the loop where you extarct the nodes x and y. The
statement
Xcoord = ObjectNodeX(bObject,1, nCntr)
will
create an error if a polyline contains more than one segment