Hello,

I need to create a polyLine that goes through 100 points. Is there any way that I can write the python code which uses the array of points to generate the polyLine?

Thanks-

Farhana

Hello,

I need to create a polyLine that goes through 100 points. Is there any way that I can write the python code which uses the array of points to generate the polyLine?

Thanks-

Farhana

yes you can.

Use the function CreatePolyLine from the module XCoreModeling

This function takes a list of points as input. Points need to be Vec3 objects

smth like:

import XCoreModeling

from s4l_v1.model import Vec3

#points is your array of 100 points with spatial coordinates

points = [Vec3(p) for p in points]

XCoreModeling.CreatePolyline(points)