hexagon logo

Editing Features/Constructed Features Inside Loop Array?

Hello All,

Fairly new to loops in PCdmis and hoping someone can shed some light on this.

I have a simple loop setup to go through 2 parts. I found (through some extensive searching) that I can change which part is being dimensioned by adding a "[1]" or "[2]" to the feature being dimensioned.
If I add "[1]" to Point1 it will call up Point1 on Part 1. As seen in the code here:

DIM DIM1= LOCATION OF POINT POINT [1] UNITS=MM ,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
X 19.969 20.000 0.050 0.050 -0.031 0.000 -#-------
Y 19.996 20.000 0.050 0.050 -0.004 0.000 ----#----
Z 0.005 0.000 0.050 0.050 0.005 0.000 ----#----
T 0.005 0.000 0.050 0.050 0.005 0.000 ----#----
END OF DIMENSION DIM1​

This works great, and I can add the bracketed numbers to each dimension to individually edit them. My question is: How do I do the same thing, but actually edit the feature itself, instead of just the measurement of it?

TLDR: I want to edit a single instance of a feature in a looping program without affecting the other instances of it. Is that possible?
Parents
  • Once you complete the loop run, the scan data will only represent the last measured unit. It doesn't store the part1 data for you to manipulate after.

    I would recommend 2 separate scans, you can control which one runs using the if style I previously shared.


    Thank you for your help, if statements controlling which scan runs worked out great. Now I'm onto the next problem.

    Let's say I want to be able to rerun one of these scans on part number 1. When I execute that block, despite whatever my loop counter is, it will always run the scan on the latest part in the loop. I understand this is because the loop has updated the alignment with an offset to the next part, so even if I tell PCdmis to run the first scan it has no "part number 1 alignment" to return to.

    Any thoughts on how I might approach this?

    Really appreciate the assist, we're making progress!
Reply
  • Once you complete the loop run, the scan data will only represent the last measured unit. It doesn't store the part1 data for you to manipulate after.

    I would recommend 2 separate scans, you can control which one runs using the if style I previously shared.


    Thank you for your help, if statements controlling which scan runs worked out great. Now I'm onto the next problem.

    Let's say I want to be able to rerun one of these scans on part number 1. When I execute that block, despite whatever my loop counter is, it will always run the scan on the latest part in the loop. I understand this is because the loop has updated the alignment with an offset to the next part, so even if I tell PCdmis to run the first scan it has no "part number 1 alignment" to return to.

    Any thoughts on how I might approach this?

    Really appreciate the assist, we're making progress!
Children
No Data