Пример #1
0
 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)
Пример #2
0
 def test_pick_element(self):
     selection = Pick()
     desk = selection.pick_element('Pick a Desk')
     self.assertIsInstance(desk, Reference)
Пример #3
0
 def test_pick_elements(self):
     selection = Pick()
     desks = selection.pick_element('Pick 2 Desks', multiple=True)
     self.assertIsInstance(desks[0], Reference)
Пример #4
0
 def test_pick_box(self):
     selection = Pick()
     rv = selection.pick_box('PickBox')
     self.assertIsInstance(rv[0], XYZ)
Пример #5
0
 def test_pick_by_rectangle(self):
     selection = Pick()
     rv = selection.pick_by_rectangle('Pick By Rectangle')
     self.assertIsInstance(rv[0], Element)
Пример #6
0
 def test_pick_pt(self):
     selection = Pick()
     rv = selection.pick_pt('pick_pt')
     self.assertIsInstance(rv, XYZ)
Пример #7
0
 def test_pick_snaps(self):
     selection = Pick()
     rv = selection.pick_pt('pick_pt', snap='endpoints')
     self.assertIsInstance(rv, XYZ)
Пример #8
0
 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)
Пример #9
0
 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)
Пример #10
0
 def test_pick_element(self):
     selection = Pick()
     desk = selection.pick_element('Pick a Desk')
     self.assertIsInstance(desk, Reference)
Пример #11
0
 def test_pick_elements(self):
     selection = Pick()
     desks = selection.pick_element('Pick 2 Desks', multiple=True)
     self.assertIsInstance(desks[0], Reference)
Пример #12
0
 def test_pick_by_rectangle(self):
     selection = Pick()
     rv = selection.pick_by_rectangle('Pick By Rectangle')
     self.assertIsInstance(rv[0], Element)
Пример #13
0
 def test_pick_box(self):
     selection = Pick()
     rv = selection.pick_box('PickBox')
     self.assertIsInstance(rv[0], XYZ)
Пример #14
0
 def test_pick_snaps(self):
     selection = Pick()
     rv = selection.pick_pt('pick_pt', snap='endpoints')
     self.assertIsInstance(rv, XYZ)
Пример #15
0
 def test_pick_pt(self):
     selection = Pick()
     rv = selection.pick_pt('pick_pt')
     self.assertIsInstance(rv, XYZ)
Пример #16
0
 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)