Cylinderical mates prevent correct import of the Onshape assembly

When I try to import an assembly from Onshape that contains a cylindrical mate (e.g., nut and bolt), the import screen sticks with the loading icon (it sticks there after 100%): there is a . USD file is created, but it is empty. Removing the cylindrical mate solves the problem.

The error message on the console during the import of the assembly with the cylindrical mate is the following:

2023-05-05 08:38:13 [51,272ms] [Error] [asyncio] Task exception was never retrieved
future: <Task finished coro=<AssemblyDetailsWidget.build_ui.<locals>.create() done, defined at /isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/widgets/assembly_widget.py:795> exception=ErrorException(Error in 'pxrInternal_v0_20__pxrReserved__::SdfLayer::_WriteToFile' at line 4382 in file /buildAgent/work/ca6c508eae419cf8/USD/pxr/usd/sdf/layer.cpp : 'Cannot create path to write '/isaac-sim/documents_oo/ExampleOnShape/Bolt_example.usd/bolts_200/materials/materials.usd'')>
Traceback (most recent call last):
  File "/isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/widgets/assembly_widget.py", line 796, in create
    self.usd_gen.create_all_stages(self._parts_widget.model._children)
  File "/isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/scripts/usd_generator.py", line 549, in create_all_stages
    self._stages_dir, part, self.stage_unit, self.material_stage
  File "/isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/scripts/usd_generator.py", line 536, in material_stage
    self._material_stage = createInMemoryStage(self._materials_path, self.stage_unit)
  File "/isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/scripts/usd_generator.py", line 157, in createInMemoryStage
    stage = pxr.Usd.Stage.CreateNew(path)
pxr.Tf.ErrorException: 
	Error in 'pxrInternal_v0_20__pxrReserved__::SdfLayer::_WriteToFile' at line 4382 in file /buildAgent/work/ca6c508eae419cf8/USD/pxr/usd/sdf/layer.cpp : 'Cannot create path to write '/isaac-sim/documents_oo/ExampleOnShape/Bolt_example.usd/bolts_200/materials/materials.usd''
2023-05-05 08:38:21 [59,029ms] [Error] [asyncio] Task exception was never retrieved
future: <Task finished coro=<UsdGenerator.set_part_mesh() done, defined at /isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/scripts/usd_generator.py:553> exception=KeyError(3158911651863412844)>
Traceback (most recent call last):
  File "/isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/scripts/usd_generator.py", line 556, in set_part_mesh
    if not sync and not self._parts_stage_dict[part.get_key()].payload:
KeyError: 3158911651863412844
2023-05-05 08:38:38 [75,571ms] [Error] [asyncio] Task exception was never retrieved
future: <Task finished coro=<UsdGenerator.set_part_mesh() done, defined at /isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/scripts/usd_generator.py:553> exception=KeyError(1506753637315839564)>
Traceback (most recent call last):
  File "/isaac-sim/exts/omni.isaac.onshape/omni/isaac/onshape/scripts/usd_generator.py", line 556, in set_part_mesh
    if not sync and not self._parts_stage_dict[part.get_key()].payload:
KeyError: 1506753637315839564

Is this a bug, or am I doing something wrong?

Hi @ozhanozen - Someone from our team will review and respond back to you.

Hi @ozhanozen - Apologies for the delay in response. Please let us know if you are still having any issues or questions after using the latest Isaac Sim release.

Hi @rthaker , it seems like the version 2023.1.0 solved the problem!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.