Jump to content

Custom Elements (Extension API) with point/mesh selection


---
 Share

Recommended Posts

In the new custom elements feature (https://zeiss.github.io/zeiss-inspect-app-api/2026/howtos/custom_elements/custom_nominals_actuals.html), is it possible to create an element based on a point selection in the 3D view?

For example, let's say I want to implement a RANSAC based fitting circle.  I want the user to select points from a cross-section, rather than simply providing the whole section element, which I will then run RANSAC on.

Is that possible with the current 2026 software?  

Thanks!

Link to comment
Share on other sites

Hello,

in general it is possible to access the current point selection of any surface element in Zeiss Inspect using

element.selection.coordinate

instead of

element.data.coordinate

More details are available in the documentation (Frequently asked questions — App Development Documentation)

It is however not possible to store or restore this selection when recalculating the custom element, because commands can’t be executed from inside a service. This means that the element will not be parametric.

Link to comment
Share on other sites

 Share

×
×
  • Create New...