AnsweredAssumed Answered

ArcGIS PRO: ArcPy: Creating a 3D polyline, visible in Map_3D?

Question asked by matthiasBuehler on Aug 12, 2016
Latest reply on Aug 15, 2016 by matthiasBuehler

Hi,

I am using this code to create a polylineZM in PRO, but I cannot see it in Map_3D (3d viewport).

I do have x,y,z coordinates..

 

Could somebody help me with this?

Any input welcome!

Matt

 

def write_polyLine(data,outfile):

  array = arcpy.Array()

  point = arcpy.Point()

  features=[]

  for feature in data:

  for part in feature:

  point.X=part[0]

  point.Y=part[1]

  point.Z=part[2]

  array.add(point)

  MP=arcpy.Polyline(array,None,True,True)

  array.removeAll()

  features.append(MP)

  arcpy.CopyFeatures_management(features, outfile, "", "0", "0", "0")

 

Outcomes