def test_pick_element_point(self): selection = Pick() rv = selection.pick_pt_on_element('pick_pt_on_element') self.assertIsInstance(rv, Reference) rv = selection.pick_pt_on_element('pick_pt_on_element', multiple=True) self.assertIsInstance(rv[0], Reference)
def test_pick_element(self): selection = Pick() desk = selection.pick_element('Pick a Desk') self.assertIsInstance(desk, Reference)
def test_pick_elements(self): selection = Pick() desks = selection.pick_element('Pick 2 Desks', multiple=True) self.assertIsInstance(desks[0], Reference)
def test_pick_box(self): selection = Pick() rv = selection.pick_box('PickBox') self.assertIsInstance(rv[0], XYZ)
def test_pick_by_rectangle(self): selection = Pick() rv = selection.pick_by_rectangle('Pick By Rectangle') self.assertIsInstance(rv[0], Element)
def test_pick_pt(self): selection = Pick() rv = selection.pick_pt('pick_pt') self.assertIsInstance(rv, XYZ)
def test_pick_snaps(self): selection = Pick() rv = selection.pick_pt('pick_pt', snap='endpoints') self.assertIsInstance(rv, XYZ)
def test_pick_element_face(self): selection = Pick() rv = selection.pick_face('pick_face') self.assertIsInstance(rv, Reference) rv = selection.pick_face('pick_faces', multiple=True) self.assertIsInstance(rv[0], Reference)