Blog

Blog2023-10-15T01:29:24-04:00

Top 2024 Onshape FeatureScript and API Enhancements

2024

FeatureScript Performance Improvements

The updates focused on improving the performance of FeatureScript are among the most significant enhancements. These improvements include the optimization of library calls and vector math performance using a recursive evaluator, which will substantially reduce computational overhead and execution time. This is particularly crucial for complex scripts that handle extensive data or require frequent evaluations, ensuring smoother and faster user experiences.

Additionally, the support for fast evaluation of operators like += and *= for the recursive evaluator will simplify scripting and reduce the time complexity of operations. These enhancements streamline code execution, making scripts more efficient and responsive.

Evaluation Efficiency

The new query for objects on one side of a plane (qInFrontOfPlane) is a powerful addition that enhances geometric queries’ precision and performance. This function is essential for features requiring spatial analysis and precise object selection.

The addition of the undefined-coalescing operator (??) and the string join() function further enriches the scripting capabilities by providing more robust handling of null or undefined values and simplifying string operations. These items improve code readability and maintainability, making feature studios more intuitive and less error-prone.

API Enhancements

The API updates aimed at supporting public and anonymous share endpoints and simplifying the features endpoint to require fewer parameters are notable improvements. These changes facilitate easier integration and interaction with Onshape from external applications, broadening the scope of automation and customization possibilities for users.

The inclusion of detailed attributes like isDangling in export JSON and additional parameters for GET endpoints enhances the granularity and utility of data retrieved through the API. These enhancements provide developers with more control and information, enabling more sophisticated and accurate application development.

See the following change log summaries for Onshape’s FeatureScript and Rest API:

FeatureScript Change Log Summary 2024

See Onshape’s general change log here: https://www.onshape.com/en/changelog/

API Change Log Summary 2024

See Onshape’s API change log here: https://onshape-public.github.io/docs/changelog/

By |December 20th, 2024|0 Comments

What’s New In the 2025 SOLIDWORKS API

This article covers notable enhancements to the 2025 SOLIDWORKS API, 2025 SOLIDWORKS PDM API, and 2025 SOLIDWORKS Document Manager API.

SOLIDWORKS API

  1. Texture Mapping Enhancements: Support for non-linear texture mapping types, including surface projections, has been introduced. This is accessible via the IFace2::GetTessTriStripTextures and IPartDoc::GetTessTriStripTextures interfaces, which allow for more flexible and detailed surface textures.
  2. Scene Customization: New methods in the ISwScene interface, such as AddOrEditFloorAppearance and GetFloorAppearance, give developers more control over the appearance of floor elements in model scenes. This adds a higher level of visual customization to scene rendering.
  3. Improved Drawing Annotations: The IView::ImportAnnotations method now allows users to import annotations directly into drawings. This can streamline workflows by reducing the need for manual annotation entry and enhancing consistency across projects.
  4. Performance Optimizations: Performance has been improved when reloading SOLIDWORKS models from disk. With the IModelDocExtension::ReloadWithReferences method, only selected references are reloaded, leading to faster file handling in complex assemblies.
  5. New Material Properties: Updates to the IRenderMaterial interface introduce several new properties, such as BumpStrength, which replaces the older BumpAmplitude, and additional controls for surface finishes and knurling features. This provides more granular control over material textures and visual effects.
  6. Obsolete Methods: Some older methods have been deprecated. For instance, IView::InsertBomTable5 has been replaced by InsertBomTable6, and certain bump map properties in the IRenderMaterial interface have been superseded by more modern equivalents.

These updates will give developers more precise control over textures, materials, and performance, enhancing both the aesthetic quality and efficiency of working with the SOLIDWORKS API.

For more detailed information, you can refer to the SOLIDWORKS API 2025 Release Notes.

SOLIDWORKS PDM API

SOLIDWORKS DOCUMENT MANAGER API

  • No new notable enhancements.

Does anything we’ve covered stand out to you as particularly useful or exciting? If so then let us know in the comments!

Want to keep up with future CADSharp.com content and training events? Join our newsletter!

By |December 20th, 2024|0 Comments

Onshape hidden tips and tricks

Onshape hidden tips and tricks.

Here is a list of useful Onshape tips that you may not know about:

  • Search for the DarkReader chrome extension.
  • Add the chrome extension to your browser.
  • (Optional) Right click and pin the extension for easy access.
  • Done!

 

  • Copy the url to the Onshape page.
  • Right click on your desktop > create shortcut.
  • Paste the url in the shortcut’s destination.
  • (Optional) Change the icon by right clicking the shortcut > properties > change icon.
  • Done!

 

  • Go to the public library.
  • Expand the search drop down.
  • Add criteria “Published FeatureScript” and set it to “True”.
  • (Optional) Enter the name of the feature you are looking for.
  • You now have a list of published features ready to add to your tool bar!
  • Open the feature document and add it to your tool bar by pressing the [ + ]  icon near the top of the screen.

 

  • Using an iphone or ipad, select the view cube.
  • Scroll down and select AR View near the bottom of the list.
  • Now you can view your models in augmented reality!

 

By |January 25th, 2024|0 Comments
Go to Top