Accessing selected point data

Hey Guys,
I’m currently developing a C# Rhino plugin for curve transformation. I’m having an issue attempting to get access to the points I have selected in Rhino from within the plugin. I can prompt for the selection of a single point with GetPoint(), however I’m hoping to get all the selected points or even selected objects. If someone could point me in the direction of a solution I would greatly appreciate it.
Thanks Alex

Hi Alexander,

If you need to pick point locations, use GetPoint. If you need to pick more than one point location, you will need to call GetPoint more than once.

If you want to select one or more point objects, then use Rhino.Input.Custom.GetObject.

var gp = new GetObject();
gp.SetCommandPrompt("Select points");
gp.GeometryFilter = ObjectType.Point;
gp.GetMultiple(1, 0);

– Dale