matejt

Write multipart feature

Discussion created by matejt on Oct 12, 2011
Latest reply on Oct 12, 2011 by matejt
I need to create multipart polyline feature in python.

Firstly, I create insert cursor:

insCur = gp.InsertCursor(MultipartPolylines)
featMultiPartPoly = insCur.NewRow()
# create array
polyLinesArray = gp.CreateObject("Array")

then I loop through polylines and add them to an array:

while rowBcp:[INDENT]featPolyline = rowBcp.shape
polyLinesArray.add(featPolyline.GetPart())
rowBcp = rowsBcp.Next()
[/INDENT]featMultiPartPoly.shape = polyLinesArray
insCur.InsertRow(featMultiPartPoly)

What am I doing wrong, that the resulting shape doesn't show any graphics? Thanks for your thoughts.

Outcomes