GetPointCoordinates

Prompts the user to pick or select one or more point objects. Unlike GetObjects, this function does not return a list of point object identifiers. Rather, it returns a list of 3-D point coordinates - one for each selected point object. Note, the list returned is not in any sorted order.

Syntax

rhinoscriptsyntax.GetPointCoordinates (message="selectpoints", preselect=False)

rhinoscript.selection.GetPointCoordinates (message="selectpoints", preselect=False)

Parameters

message

Optional.  String.  A prompt or message.

preselect

Optional.  Boolean.  Allow for the selection of pre-selected objects.  If omitted, pre-selected objects are not accepted (False).

Returns

List

A list of 3-D points, one for each selected point object, if successful.

Example

import rhinoscriptsyntax as rs

points = rs.GetPointCoordinates()

for point in points: print point

Also See

GetObject

GetObjects

GetPoint

GetPoints

PointCoordinates