hexagon logo

Combine points from two filtered scans into one "container" scan

I want to fit a contact circle into 2 scans but PC-DMIS doesn't allow this (even when using a set or pointcloud).
If it is one continuous scan it allows me to create a contact circle.

See here: https://www.pcdmisforum.com/forum/pc-dmis-enterprise-metrology-software/pc-dmis-for-cmms/534132-need-help-with-the-function-scan-minimum-when-creating-a-circle#post534132

So my idea is to use a script to load the points from the two filtered scans into a container scan.

This should look something like this:
  1. basic circle scan 1
  2. basic circle scan 2
  3. constructed filter feature from basic circle scan 1
  4. constructed filter feature from basic circle scan 2
  5. goto command to skip the execution of the "container" scan
  6. container scan (doesn't get executed)
  7. label for the goto command
  8. script which takes the point from the two constructed filter features and feeds them into the container scan
    the script has 3 arguments ARG1=name of filtered feature 1, ARG2=name of filtered feature 2, ARG3=name of the container scan

I have a script created from Hexagon that does something else, but I think it could be used as a base.
This script from Hexagon takes points of a scan and feeds the specified amount of highest points into a container scan.
So I think all the stuff about finding the highest points can be deleted from this script and with a bit of tinkering it should work.


The problem is, this script from Hexagon is way too complicated for me... I have no Idea where to even begin Disappointed

I attached the script from Hexagon. If somebody help me adjust it to my needs, I would be very grateful.

Attached Files