- for object in e:
- bbox = object.Geometry.GetBoundingBox(True)
- if viewport.IsVisible(bbox):
- if select: object.Select(True)
- object_ids.append(object.Id)
-
- if object_ids and select: scriptcontext.doc.Views.Redraw()
- return object_ids
-
-
- def WindowPick(corner1, corner2, view=None, select=False, in_window=True):
- """Picks objects using either a window or crossing selection
- Parameters:
- corner1, corner2 (point): corners of selection window
- view (bool, optional): view to perform the selection in
- select (bool, optional): select picked objects
- in_window (bool, optional): if False, then a crossing window selection is performed
- Returns:
- list(guid, ...): identifiers of selected objects on success
- Example:
- import rhinoscriptsyntax as rs