Exemple #1
0
 def test_multipart_assembly(self):
     # When imported as an Assembly, each individual mesh
     # is imported as a component Part of the resulting Assembly.
     filename = 'test-files/red_cube_blue_cylinder.step'
     with suppress_stdout_stderr():
         thing = Assembly.importer('step')(filename)
         self.assertEqual(len(thing.components), 2)
         self.assertEqual(len(thing.constraints), 2)
 def test_assembly(self):
     p = ComponentRef()
     v = p.cast(Assembly())
     self.assertIsInstance(v, Assembly)