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
  • Are the names updating properly? Where the constructions are occurring, are the same number of features being utilized?
    How did you name your features, did you add something like "_1" to the end of each feature you are trying to pattern, or give it some type of countable index value?
    Do you have proper workplanes set for your construction vs the pattern? (Pattern paste could require Z workplane, while feature construction could need X/Y workplane)
    Sharing a sample of the code might aid with some advice that gets your goal completed faster.


    Oof as much as it pains me to admit, it looks like there was a naming problem. I do change workplanes inside each Paste With Pattern segment, so I thought it was that. But after testing with/without workplanes it appears that it was the naming all along.

    Well I'm glad it was the simple solution that fixed it. Thanks for your help.
  • From what I recall, any kind of utilized reference outside of the pattern, during paste with pattern, will redirect itself to the latest iteration of the pattern.
    IE: if you had a FEAT_ID_1.X.MEAS referenced in an assign function outside of the pattern, it will automatically re-associate itself with FEAT_ID_3.X.MEAS if your pattern was pasted with a value of 2x.

    so yeah any/all references to patterned features, should be intricately evaluated each time you paste with pattern.
Reply
  • From what I recall, any kind of utilized reference outside of the pattern, during paste with pattern, will redirect itself to the latest iteration of the pattern.
    IE: if you had a FEAT_ID_1.X.MEAS referenced in an assign function outside of the pattern, it will automatically re-associate itself with FEAT_ID_3.X.MEAS if your pattern was pasted with a value of 2x.

    so yeah any/all references to patterned features, should be intricately evaluated each time you paste with pattern.
Children
No Data