PointCoordinates

Returns or modifies the X, Y, and Z coordinates of a point object.

Syntax

rhinoscriptsyntax.PointCoordinates (object_id, point=None)

rhinoscript.geometry.PointCoordinates (object_id, point=None)

Parameters

object_id

Required.  string or Guid.  The identifier of a point object.

point

Optional.  list of 3 numbers or an On3dPoint.  A new 3-D point location.

Returns

Point3d

If point is not specified, the current 3-D point location if successful.

Point3d

If point is specified, the previous 3-D point location if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

id = rs.GetObject("Select point", rs.filter.point)

point = rs.PointCoordinates(id)

if point: print point

Also See

AddPoint

IsPoint