hi @mkn
here is some example code that exports the currently selected points as a csv file:
def dump_selected_points(fname):
sel = XCoreModeling.GetActiveModel().SelectedEntities
sel = XCoreModeling.CollectEntities(sel)
with open(fname, "w") as file:
for e in sel:
if isinstance(e, XCoreModeling.Vertex):
x = e.Position
file.write("%g, %g, %g\n" % (x[0], x[1], x[2]))