UNPKG

onshape-clients

Version:

The meta package for creating the various Onshape clients

1,024 lines (806 loc) 91.9 kB
# onshape_client.oas.PartStudiosApi All URIs are relative to *https://cad.onshape.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_part_studio_feature**](PartStudiosApi.md#add_part_studio_feature) | **POST** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/features | Add Feature [**compare_part_studios**](PartStudiosApi.md#compare_part_studios) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/compare | Compare Part Studios [**create_part_studio**](PartStudiosApi.md#create_part_studio) | **POST** /api/partstudios/d/{did}/w/{wid} | Create Part Studio [**create_part_studio_translation**](PartStudiosApi.md#create_part_studio_translation) | **POST** /api/partstudios/d/{did}/{wv}/{wvid}/e/{eid}/translations | Create Part Studio translation [**delete_part_studio_feature**](PartStudiosApi.md#delete_part_studio_feature) | **DELETE** /api/partstudios/d/{did}/w/{wid}/e/{eid}/features/featureid/{fid} | Delete Feature [**eval_feature_script**](PartStudiosApi.md#eval_feature_script) | **POST** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/featurescript | Evaluate FeatureScript [**export_ps1**](PartStudiosApi.md#export_ps1) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/parasolid | Export Part Studio to Parasolid [**export_stl1**](PartStudiosApi.md#export_stl1) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/stl | Export Part Studio to STL [**get_part_studio_body_details**](PartStudiosApi.md#get_part_studio_body_details) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/bodydetails | Array of body information [**get_part_studio_bounding_boxes**](PartStudiosApi.md#get_part_studio_bounding_boxes) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/boundingboxes | Mass properties of parts or a PartStudio. [**get_part_studio_configuration**](PartStudiosApi.md#get_part_studio_configuration) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/configuration | Get Configuration [**get_part_studio_feature_specs**](PartStudiosApi.md#get_part_studio_feature_specs) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/featurespecs | Get Feature Specs [**get_part_studio_features**](PartStudiosApi.md#get_part_studio_features) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/features | Get Feature List [**get_part_studio_mass_properties**](PartStudiosApi.md#get_part_studio_mass_properties) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/massproperties | Mass properties of parts or a PartStudio. [**get_part_studio_named_views**](PartStudiosApi.md#get_part_studio_named_views) | **GET** /api/partstudios/d/{did}/e/{eid}/namedViews | Get Named Views [**get_part_studio_shaded_views**](PartStudiosApi.md#get_part_studio_shaded_views) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/shadedviews | Get Shaded Views [**get_part_studio_tessellated_edges**](PartStudiosApi.md#get_part_studio_tessellated_edges) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/tessellatededges | Tesselated edges from a PartStudio. [**get_part_studio_tessellated_faces**](PartStudiosApi.md#get_part_studio_tessellated_faces) | **GET** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/tessellatedfaces | Tesselated faces of the parts in the Part Studio. [**translate_ids**](PartStudiosApi.md#translate_ids) | **POST** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/idtranslations | Id Translations [**update_features**](PartStudiosApi.md#update_features) | **POST** /api/partstudios/d/{did}/w/{wid}/e/{eid}/features/updates | Update Features [**update_part_studio_configuration**](PartStudiosApi.md#update_part_studio_configuration) | **POST** /api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/configuration | Update Configuration [**update_part_studio_feature**](PartStudiosApi.md#update_part_studio_feature) | **POST** /api/partstudios/d/{did}/w/{wid}/e/{eid}/features/featureid/{fid} | Update Feature [**update_rollback**](PartStudiosApi.md#update_rollback) | **POST** /api/partstudios/d/{did}/w/{wid}/e/{eid}/features/rollback | Update Feature Rollback # **add_part_studio_feature** > bt_feature_definition_response1617.BTFeatureDefinitionResponse1617 add_part_studio_feature(did, wvm, wvmid, eid) Add Feature ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | wvm = 'wvm_example' # str | wvmid = 'wvmid_example' # str | eid = 'eid_example' # str | bt_feature_definition_call_1406 = onshape_client.oas.BTFeatureDefinitionCall1406() # bt_feature_definition_call1406.BTFeatureDefinitionCall1406 | feature The serialized feature definition (optional) # example passing only required values which don't have defaults set try: # Add Feature api_response = api_instance.add_part_studio_feature(did, wvm, wvmid, eid) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->add_part_studio_feature: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: # Add Feature api_response = api_instance.add_part_studio_feature(did, wvm, wvmid, eid, bt_feature_definition_call_1406=bt_feature_definition_call_1406) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->add_part_studio_feature: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| | **wvm** | **str**| | **wvmid** | **str**| | **eid** | **str**| | **bt_feature_definition_call_1406** | [**bt_feature_definition_call1406.BTFeatureDefinitionCall1406**](BTFeatureDefinitionCall1406.md)| feature The serialized feature definition | [optional] ### Return type [**bt_feature_definition_response1617.BTFeatureDefinitionResponse1617**](BTFeatureDefinitionResponse1617.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **compare_part_studios** > bt_root_diff_info.BTRootDiffInfo compare_part_studios(did, wvm, wvmid, eid) Compare Part Studios ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wvm = 'wvm_example' # str | One of w or v or m corresponding to whether a workspace or version or microversion was entered. wvmid = 'wvmid_example' # str | Workspace (w), Version (v) or Microversion (m) ID. eid = 'eid_example' # str | Element ID. workspace_id = 'workspace_id_example' # str | (optional) version_id = 'version_id_example' # str | (optional) microversion_id = 'microversion_id_example' # str | (optional) source_configuration = 'source_configuration_example' # str | (optional) target_configuration = 'target_configuration_example' # str | (optional) link_document_id = 'link_document_id_example' # str | (optional) # example passing only required values which don't have defaults set try: # Compare Part Studios api_response = api_instance.compare_part_studios(did, wvm, wvmid, eid) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->compare_part_studios: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: # Compare Part Studios api_response = api_instance.compare_part_studios(did, wvm, wvmid, eid, workspace_id=workspace_id, version_id=version_id, microversion_id=microversion_id, source_configuration=source_configuration, target_configuration=target_configuration, link_document_id=link_document_id) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->compare_part_studios: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wvm** | **str**| One of w or v or m corresponding to whether a workspace or version or microversion was entered. | **wvmid** | **str**| Workspace (w), Version (v) or Microversion (m) ID. | **eid** | **str**| Element ID. | **workspace_id** | **str**| | [optional] **version_id** | **str**| | [optional] **microversion_id** | **str**| | [optional] **source_configuration** | **str**| | [optional] **target_configuration** | **str**| | [optional] **link_document_id** | **str**| | [optional] ### Return type [**bt_root_diff_info.BTRootDiffInfo**](BTRootDiffInfo.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_part_studio** > bt_document_element_info.BTDocumentElementInfo create_part_studio(did, wid, bt_model_element_params) Create Part Studio ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wid = 'wid_example' # str | Workspace ID. bt_model_element_params = onshape_client.oas.BTModelElementParams() # bt_model_element_params.BTModelElementParams | # example passing only required values which don't have defaults set try: # Create Part Studio api_response = api_instance.create_part_studio(did, wid, bt_model_element_params) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->create_part_studio: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wid** | **str**| Workspace ID. | **bt_model_element_params** | [**bt_model_element_params.BTModelElementParams**](BTModelElementParams.md)| | ### Return type [**bt_document_element_info.BTDocumentElementInfo**](BTDocumentElementInfo.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_part_studio_translation** > bt_translation_request_info.BTTranslationRequestInfo create_part_studio_translation(did, wv, wvid, eid, bt_translate_format_params) Create Part Studio translation ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wv = 'wv_example' # str | One of w or v corresponding to whether a workspace or version was specified. wvid = 'wvid_example' # str | Workspace (w) or Version (v) ID. eid = 'eid_example' # str | Element ID. bt_translate_format_params = onshape_client.oas.BTTranslateFormatParams() # bt_translate_format_params.BTTranslateFormatParams | # example passing only required values which don't have defaults set try: # Create Part Studio translation api_response = api_instance.create_part_studio_translation(did, wv, wvid, eid, bt_translate_format_params) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->create_part_studio_translation: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wv** | **str**| One of w or v corresponding to whether a workspace or version was specified. | **wvid** | **str**| Workspace (w) or Version (v) ID. | **eid** | **str**| Element ID. | **bt_translate_format_params** | [**bt_translate_format_params.BTTranslateFormatParams**](BTTranslateFormatParams.md)| | ### Return type [**bt_translation_request_info.BTTranslationRequestInfo**](BTTranslationRequestInfo.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_part_studio_feature** > bt_feature_api_base1430.BTFeatureApiBase1430 delete_part_studio_feature(did, wid, eid, fid) Delete Feature ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wid = 'wid_example' # str | Workspace ID. eid = 'eid_example' # str | Element ID. fid = 'fid_example' # str | The id of the feature being updated. This id should be URL encoded and must match the featureId found in the serialized structure # example passing only required values which don't have defaults set try: # Delete Feature api_response = api_instance.delete_part_studio_feature(did, wid, eid, fid) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->delete_part_studio_feature: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wid** | **str**| Workspace ID. | **eid** | **str**| Element ID. | **fid** | **str**| The id of the feature being updated. This id should be URL encoded and must match the featureId found in the serialized structure | ### Return type [**bt_feature_api_base1430.BTFeatureApiBase1430**](BTFeatureApiBase1430.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **eval_feature_script** > bt_feature_script_eval_response1859.BTFeatureScriptEvalResponse1859 eval_feature_script(did, wvm, wvmid, eid) Evaluate FeatureScript ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wvm = 'wvm_example' # str | One of w or v or m corresponding to whether a workspace or version or microversion was entered. wvmid = 'wvmid_example' # str | Workspace (w), Version (v) or Microversion (m) ID. eid = 'eid_example' # str | Element ID. configuration = 'configuration_example' # str | Configuration string. (optional) bt_feature_script_eval_call_2377 = onshape_client.oas.BTFeatureScriptEvalCall2377() # bt_feature_script_eval_call2377.BTFeatureScriptEvalCall2377 | (optional) # example passing only required values which don't have defaults set try: # Evaluate FeatureScript api_response = api_instance.eval_feature_script(did, wvm, wvmid, eid) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->eval_feature_script: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: # Evaluate FeatureScript api_response = api_instance.eval_feature_script(did, wvm, wvmid, eid, configuration=configuration, bt_feature_script_eval_call_2377=bt_feature_script_eval_call_2377) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->eval_feature_script: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wvm** | **str**| One of w or v or m corresponding to whether a workspace or version or microversion was entered. | **wvmid** | **str**| Workspace (w), Version (v) or Microversion (m) ID. | **eid** | **str**| Element ID. | **configuration** | **str**| Configuration string. | [optional] **bt_feature_script_eval_call_2377** | [**bt_feature_script_eval_call2377.BTFeatureScriptEvalCall2377**](BTFeatureScriptEvalCall2377.md)| | [optional] ### Return type [**bt_feature_script_eval_response1859.BTFeatureScriptEvalResponse1859**](BTFeatureScriptEvalResponse1859.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **export_ps1** > export_ps1(did, wvm, wvmid, eid) Export Part Studio to Parasolid ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wvm = 'wvm_example' # str | One of w or v or m corresponding to whether a workspace or version or microversion was entered. wvmid = 'wvmid_example' # str | Workspace (w), Version (v) or Microversion (m) ID. eid = 'eid_example' # str | Element ID. part_ids = 'part_ids_example' # str | IDs of the parts to retrieve. Repeat query param to add more than one (i.e. partId=JHK&partId=JHD). May not be combined with other ID filters (optional) version = '0' # str | Parasolid version (optional) if omitted the server will use the default value of '0' include_export_ids = False # bool | Whether topolgy ids should be exported as parasolid attributes (optional) if omitted the server will use the default value of False configuration = 'configuration_example' # str | Configuration string. (optional) link_document_id = 'link_document_id_example' # str | Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter. (optional) # example passing only required values which don't have defaults set try: # Export Part Studio to Parasolid api_instance.export_ps1(did, wvm, wvmid, eid) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->export_ps1: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: # Export Part Studio to Parasolid api_instance.export_ps1(did, wvm, wvmid, eid, part_ids=part_ids, version=version, include_export_ids=include_export_ids, configuration=configuration, link_document_id=link_document_id) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->export_ps1: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wvm** | **str**| One of w or v or m corresponding to whether a workspace or version or microversion was entered. | **wvmid** | **str**| Workspace (w), Version (v) or Microversion (m) ID. | **eid** | **str**| Element ID. | **part_ids** | **str**| IDs of the parts to retrieve. Repeat query param to add more than one (i.e. partId=JHK&partId=JHD). May not be combined with other ID filters | [optional] **version** | **str**| Parasolid version | [optional] if omitted the server will use the default value of '0' **include_export_ids** | **bool**| Whether topolgy ids should be exported as parasolid attributes | [optional] if omitted the server will use the default value of False **configuration** | **str**| Configuration string. | [optional] **link_document_id** | **str**| Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter. | [optional] ### Return type void (empty response body) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **307** | A Redirect! | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **export_stl1** > export_stl1(did, wvm, wvmid, eid) Export Part Studio to STL ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wvm = 'wvm_example' # str | One of w or v or m corresponding to whether a workspace or version or microversion was entered. wvmid = 'wvmid_example' # str | Workspace (w), Version (v) or Microversion (m) ID. eid = 'eid_example' # str | Element ID. part_ids = 'part_ids_example' # str | IDs of the parts to retrieve. Repeat query param to add more than one (i.e. partId=JHK&partId=JHD). May not be combined with other ID filters (optional) mode = 'text' # str | Type of file: text, binary (optional) if omitted the server will use the default value of 'text' grouping = True # bool | Whether parts should be exported as a group or individually in a .zip file (optional) if omitted the server will use the default value of True scale = 1.0 # float | Scale for measurements. (optional) if omitted the server will use the default value of 1.0 units = 'inch' # str | Name of base unit (meter, centimeter, millimeter, inch, foot, or yard) (optional) if omitted the server will use the default value of 'inch' angle_tolerance = 3.4 # float | Angle tolerance (in radians). This specifies the limit on the sum of the angular deviations of a tessellation chord from the tangent vectors at two chord endpoints. The specified value must be less than PI/2. This parameter currently has a default value chosen based on the complexity of the parts being tessellated. (optional) chord_tolerance = 3.4 # float | Chord tolerance (in meters). This specifies the limit on the maximum deviation of a tessellation chord from the true surface/edge. This parameter currently has a default value chosen based on the size and complexity of the parts being tessellated. (optional) max_facet_width = 3.4 # float | Max facet width. This specifies the limit on the size of any side of a tessellation facet. (optional) min_facet_width = 3.4 # float | Max facet width. This specifies the limit on the size of any side of a tessellation facet. (optional) configuration = 'configuration_example' # str | Configuration string. (optional) link_document_id = 'link_document_id_example' # str | Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter. (optional) # example passing only required values which don't have defaults set try: # Export Part Studio to STL api_instance.export_stl1(did, wvm, wvmid, eid) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->export_stl1: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: # Export Part Studio to STL api_instance.export_stl1(did, wvm, wvmid, eid, part_ids=part_ids, mode=mode, grouping=grouping, scale=scale, units=units, angle_tolerance=angle_tolerance, chord_tolerance=chord_tolerance, max_facet_width=max_facet_width, min_facet_width=min_facet_width, configuration=configuration, link_document_id=link_document_id) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->export_stl1: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wvm** | **str**| One of w or v or m corresponding to whether a workspace or version or microversion was entered. | **wvmid** | **str**| Workspace (w), Version (v) or Microversion (m) ID. | **eid** | **str**| Element ID. | **part_ids** | **str**| IDs of the parts to retrieve. Repeat query param to add more than one (i.e. partId=JHK&partId=JHD). May not be combined with other ID filters | [optional] **mode** | **str**| Type of file: text, binary | [optional] if omitted the server will use the default value of 'text' **grouping** | **bool**| Whether parts should be exported as a group or individually in a .zip file | [optional] if omitted the server will use the default value of True **scale** | **float**| Scale for measurements. | [optional] if omitted the server will use the default value of 1.0 **units** | **str**| Name of base unit (meter, centimeter, millimeter, inch, foot, or yard) | [optional] if omitted the server will use the default value of 'inch' **angle_tolerance** | **float**| Angle tolerance (in radians). This specifies the limit on the sum of the angular deviations of a tessellation chord from the tangent vectors at two chord endpoints. The specified value must be less than PI/2. This parameter currently has a default value chosen based on the complexity of the parts being tessellated. | [optional] **chord_tolerance** | **float**| Chord tolerance (in meters). This specifies the limit on the maximum deviation of a tessellation chord from the true surface/edge. This parameter currently has a default value chosen based on the size and complexity of the parts being tessellated. | [optional] **max_facet_width** | **float**| Max facet width. This specifies the limit on the size of any side of a tessellation facet. | [optional] **min_facet_width** | **float**| Max facet width. This specifies the limit on the size of any side of a tessellation facet. | [optional] **configuration** | **str**| Configuration string. | [optional] **link_document_id** | **str**| Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter. | [optional] ### Return type void (empty response body) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **307** | A Redirect! | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_part_studio_body_details** > bt_export_model_bodies_response734.BTExportModelBodiesResponse734 get_part_studio_body_details(did, wvm, wvmid, eid) Array of body information ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | wvm = 'wvm_example' # str | wvmid = 'wvmid_example' # str | eid = 'eid_example' # str | configuration = 'configuration_example' # str | (optional) link_document_id = 'link_document_id_example' # str | (optional) rollback_bar_index = -1 # int | (optional) if omitted the server will use the default value of -1 body = 'body_example' # str | (optional) # example passing only required values which don't have defaults set try: # Array of body information api_response = api_instance.get_part_studio_body_details(did, wvm, wvmid, eid) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->get_part_studio_body_details: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: # Array of body information api_response = api_instance.get_part_studio_body_details(did, wvm, wvmid, eid, configuration=configuration, link_document_id=link_document_id, rollback_bar_index=rollback_bar_index, body=body) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->get_part_studio_body_details: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| | **wvm** | **str**| | **wvmid** | **str**| | **eid** | **str**| | **configuration** | **str**| | [optional] **link_document_id** | **str**| | [optional] **rollback_bar_index** | **int**| | [optional] if omitted the server will use the default value of -1 **body** | **str**| | [optional] ### Return type [**bt_export_model_bodies_response734.BTExportModelBodiesResponse734**](BTExportModelBodiesResponse734.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_part_studio_bounding_boxes** > bt_bounding_box_info.BTBoundingBoxInfo get_part_studio_bounding_boxes(did, wvm, wvmid, eid) Mass properties of parts or a PartStudio. ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wvm = 'wvm_example' # str | One of w or v or m corresponding to whether a workspace or version or microversion was entered. wvmid = 'wvmid_example' # str | Workspace (w), Version (v) or Microversion (m) ID. eid = 'eid_example' # str | Element ID. include_hidden = False # bool | Whether or not to include bounding boxes for hidden parts. (optional) if omitted the server will use the default value of False include_wire_bodies = True # bool | Whether to include wire bodies in the bounding box. (optional) if omitted the server will use the default value of True configuration = 'configuration_example' # str | Configuration string. (optional) link_document_id = 'link_document_id_example' # str | Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter. (optional) # example passing only required values which don't have defaults set try: # Mass properties of parts or a PartStudio. api_response = api_instance.get_part_studio_bounding_boxes(did, wvm, wvmid, eid) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->get_part_studio_bounding_boxes: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: # Mass properties of parts or a PartStudio. api_response = api_instance.get_part_studio_bounding_boxes(did, wvm, wvmid, eid, include_hidden=include_hidden, include_wire_bodies=include_wire_bodies, configuration=configuration, link_document_id=link_document_id) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->get_part_studio_bounding_boxes: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wvm** | **str**| One of w or v or m corresponding to whether a workspace or version or microversion was entered. | **wvmid** | **str**| Workspace (w), Version (v) or Microversion (m) ID. | **eid** | **str**| Element ID. | **include_hidden** | **bool**| Whether or not to include bounding boxes for hidden parts. | [optional] if omitted the server will use the default value of False **include_wire_bodies** | **bool**| Whether to include wire bodies in the bounding box. | [optional] if omitted the server will use the default value of True **configuration** | **str**| Configuration string. | [optional] **link_document_id** | **str**| Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter. | [optional] ### Return type [**bt_bounding_box_info.BTBoundingBoxInfo**](BTBoundingBoxInfo.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_part_studio_configuration** > get_part_studio_configuration(did, wvm, wvmid, eid) Get Configuration ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | wvm = 'wvm_example' # str | wvmid = 'wvmid_example' # str | eid = 'eid_example' # str | # example passing only required values which don't have defaults set try: # Get Configuration api_instance.get_part_studio_configuration(did, wvm, wvmid, eid) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->get_part_studio_configuration: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| | **wvm** | **str**| | **wvmid** | **str**| | **eid** | **str**| | ### Return type void (empty response body) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success! | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_part_studio_feature_specs** > bt_feature_specs_response664.BTFeatureSpecsResponse664 get_part_studio_feature_specs(did, wvm, wvmid, eid) Get Feature Specs ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wvm = 'wvm_example' # str | One of w or v or m corresponding to whether a workspace or version or microversion was entered. wvmid = 'wvmid_example' # str | Workspace (w), Version (v) or Microversion (m) ID. eid = 'eid_example' # str | Element ID. # example passing only required values which don't have defaults set try: # Get Feature Specs api_response = api_instance.get_part_studio_feature_specs(did, wvm, wvmid, eid) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->get_part_studio_feature_specs: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wvm** | **str**| One of w or v or m corresponding to whether a workspace or version or microversion was entered. | **wvmid** | **str**| Workspace (w), Version (v) or Microversion (m) ID. | **eid** | **str**| Element ID. | ### Return type [**bt_feature_specs_response664.BTFeatureSpecsResponse664**](BTFeatureSpecsResponse664.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **0** | default response | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_part_studio_features** > bt_feature_list_response2457.BTFeatureListResponse2457 get_part_studio_features(did, wvm, wvmid, eid) Get Feature List ### Example * OAuth Authentication (OAuth2): ```python from __future__ import print_function import time import onshape_client.oas from pprint import pprint configuration = onshape_client.oas.Configuration() # Configure OAuth2 access token for authorization: OAuth2 configuration.access_token = 'YOUR_ACCESS_TOKEN' # Defining host is optional and default to https://cad.onshape.com configuration.host = "https://cad.onshape.com" # Enter a context with an instance of the API client with onshape_client.oas.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = onshape_client.oas.PartStudiosApi(api_client) did = 'did_example' # str | Document ID. wvm = 'wvm_example' # str | One of w or v or m corresponding to whether a workspace or version or microversion was entered. wvmid = 'wvmid_example' # str | Workspace (w), Version (v) or Microversion (m) ID. eid = 'eid_example' # str | Element ID. feature_id = ['feature_id_example'] # [str] | ID of a feature; repeat query param to add more than one (optional) link_document_id = 'link_document_id_example' # str | Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter. (optional) no_sketch_geometry = False # bool | Whether or not to output simple sketch info without geometry (optional) if omitted the server will use the default value of False # example passing only required values which don't have defaults set try: # Get Feature List api_response = api_instance.get_part_studio_features(did, wvm, wvmid, eid) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->get_part_studio_features: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: # Get Feature List api_response = api_instance.get_part_studio_features(did, wvm, wvmid, eid, feature_id=feature_id, link_document_id=link_document_id, no_sketch_geometry=no_sketch_geometry) pprint(api_response) except onshape_client.oas.ApiException as e: print("Exception when calling PartStudiosApi->get_part_studio_features: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **did** | **str**| Document ID. | **wvm** | **str**| One of w or v or m corresponding to whether a workspace or version or microversion was entered. | **wvmid** | **str**| Workspace (w), Version (v) or Microversion (m) ID. | **eid** | **str**| Element ID. | **feature_id** | **[str]**| ID of a feature; repeat query param to add more than one | [optional] **link_document_id** | **str**| Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter. | [optional] **no_sketch_geometry** | **bool**| Whether or not to output simple sketch info without geometry | [optional] if omitted the server will use the default value of False ### Return type [**bt_feature_list_response2457.BTFeatureListResponse2457**](BTFeatureListResponse2457.md) ### Authorization [OAuth2](../README.md#OAuth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json;charset=UTF-8; qs=0.09, application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/vnd.onshape.v2+json;charset=UTF-8;qs=0.2 ### HTTP response details | Status code | Description | Response headers | |--