diff --git a/.DS_Store b/.DS_Store index e592e1d..682d871 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/examples/basic_usage.ipynb b/examples/basic_usage.ipynb index 0abb928..8f1c48c 100644 --- a/examples/basic_usage.ipynb +++ b/examples/basic_usage.ipynb @@ -308,7 +308,7 @@ " with document_resource.lock() as document:\n", " print(\"find the first part with part children:\")\n", " #root=find_part_by_name(document.root_node, \"nx00001\")\n", - " root=find_part_with_components(document.root_node)\n", + " root=find_component_partusage(document.root_node)\n", "\n", "if not root:\n", " print(\"##SYSML_JSON##\" + json.dumps({\"components\": []}), flush=True)\n", diff --git a/src/.DS_Store b/src/.DS_Store index 71db6b3..e233f08 100644 Binary files a/src/.DS_Store and b/src/.DS_Store differ diff --git a/src/onshape_api/__pycache__/onshape_helper.cpython-313.pyc b/src/onshape_connector/__pycache__/onshape_helper.cpython-313.pyc similarity index 100% rename from src/onshape_api/__pycache__/onshape_helper.cpython-313.pyc rename to src/onshape_connector/__pycache__/onshape_helper.cpython-313.pyc diff --git a/src/onshape_api/onshape_helper.py b/src/onshape_connector/onshape_helper.py similarity index 100% rename from src/onshape_api/onshape_helper.py rename to src/onshape_connector/onshape_helper.py diff --git a/tests/onshape_export.py b/tests/onshape_export.py index 1655206..8511241 100644 --- a/tests/onshape_export.py +++ b/tests/onshape_export.py @@ -22,7 +22,7 @@ import syside from geometry_api.geometry_api import components_from_part_world, find_partusage_by_definition -from onshape_api.onshape_helper import ( +from onshape_connector.onshape_helper import ( get_onshape_client, insert_assembly_from_url, transform_by_name, diff --git a/tests/test_trafo.py b/tests/test_trafo.py index 84641d4..5baa432 100644 --- a/tests/test_trafo.py +++ b/tests/test_trafo.py @@ -4,7 +4,7 @@ from transformation_api.transformations import transformation_matrix, euler_from_matrix # Import your functions (adjust import to your module) -from geometry_api.geometry_api import components_from_part_world, find_part_with_components +from geometry_api.geometry_api import components_from_part_world, find_component_partusage SYSML_MODEL = r""" package MyStructure { @@ -60,7 +60,7 @@ def test_components_world_pose_and_parent_links(): with document_resource.lock() as document: print("find the first part with part children:") #root=find_part_by_name(document.root_node, "nx00001") - root=find_part_with_components(document.root_node) + root=find_component_partusage(document.root_node) assert root is not None