Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/basic_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Binary file modified src/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/onshape_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_trafo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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

Expand Down
Loading