[Ri...] Posted January 21 Share Posted January 21 I want to select a feature based on an "IF" statement for a characteristic. When you right click in the selection box, "Formula" is an option. Is this possible? Link to comment Share on other sites More sharing options...
[Je...] Posted January 22 Share Posted January 22 (edited) Yes, this is possible. I typically use that for parts, that are drilled, and grinded later. I use Mini-Plans for each production step. for example: MrkmGrp=getRunID() selectCase MrkmGrp case "Komplett" vMeBeA="ZyBeA" vMeD6="ZyD6" vMeGeradheit="GeGeradheit" case "ohne_Bezug_B" vMeBeA="ZyBeAa" vMeD6="ZyD6a" vMeGeradheit="GeGeradheit_a" case "Schleifen" vMeBeA="ZyBeA" vMeD6="ZyD6" vMeGeradheit="GeGeradheit" case "Geradh_Koax" vMeBeA="ZyBeA" vMeD6="ZyD6" vMeGeradheit="GeGeradheit" endSelect Edited January 22 Link to comment Share on other sites More sharing options...
[Ri...] Posted January 22 Author Share Posted January 22 Thank you. Link to comment Share on other sites More sharing options...
[Mi...] Posted January 22 Share Posted January 22 A warning, depending on how you do you it, you do this you might not actually create the dependency between the Characteristic and the Feature. Right click and check "References for..." you'll see nothing. This may cause problems when you go to actually run it. I've done this with a looped characteristic and had the feature name with syntax like "Circle Plate Hole " +LOOP1. Which allows it to index with the loop, was really nice because I had 60 individual Position Characteristics that shared a DRF but needed to rotate the coordinate system around the part. Doing that meant I could have 1 looped characteristic where the Feature and the Coordinate system rotation were controlled by the Loop counter. However, because the Feature name was done the way I did it, there was no real dependency, so if you tried to run just those positions, it wouldn't work. You could either use PCM to force "All Characteristics" similar to this example below (This prevents All Characteristics, but easily modified to only allow it) //Forces the program to run from a Mini-Plan Only if (getStartSetting("featureListName") == "All Characteristics") then message(" Please Select the Probe Systems you want to run, and then choose "+qm()+"Current Selection"+qm()+cr()+" This program is not meant to be ran on "+qm()+"All Characteristics"+qm()) cncBreak() endif Or do something like recall all the features you want into a single feature, in my case it was a big circle, then in the presettings of your characteristic with the formula just do a simple getActual("RECALLED FEATURE NAME").comment and that will force all of them to run every time the characteristic with the formula is selected. Link to comment Share on other sites More sharing options...
[Ri...] Posted January 22 Author Share Posted January 22 Thank you for this information. Link to comment Share on other sites More sharing options...
[Ri...] Posted Monday at 11:47 PM Share Posted Monday at 11:47 PM Please sign in to view this quote. Michael, thank you so much for posting this. I was needing this exact thing, and you just saved me a lot of time and pain. Link to comment Share on other sites More sharing options...
[Ri...] Posted Tuesday at 04:47 PM Share Posted Tuesday at 04:47 PM Please sign in to view this username. Do you know if it is possible to define your own custom Loop? I have a case where it's a pattern of 65, but 22 are omitted. On the feature side, this is easy, but is this possible on the characteristic side for the LOOP1 parameter? Link to comment Share on other sites More sharing options...
[Ch...] Posted Tuesday at 05:22 PM Share Posted Tuesday at 05:22 PM does this help? From Zeiss help file .. Link to comment Share on other sites More sharing options...
[Mi...] Posted Tuesday at 06:10 PM Share Posted Tuesday at 06:10 PM Every method I have tested requires the loop to be complete, and have a static step width... Entering the thought experiment stage: However... it occurs to me that you *might* be able to have multiple loops like this and still have it work? Haven't tried this... I'm not sure if the LOOP1 counter counts the loop value... or index number from the total... if that makes sense? If it counts value, this should work: hopefully your 22 omissions are in batches... But even if they aren't, and this works, it's still less work. You could potentially just pull the rotation value from the name of the characteristics...but that's more complicated PCM code and requires a Characteristics for each circle. Link to comment Share on other sites More sharing options...
[Ri...] Posted Tuesday at 09:19 PM Share Posted Tuesday at 09:19 PM The problem lies in the fact that for the feature name part of it, you would just want the standard counting of 1-43 for the LOOP1, but when I'm rotating the alignment via the Special option, I cannot use LOOP1 as the value actually has to be different. In that case I would need a custom defined LOOP where 1=1 2=2 3=3 4=5 5=7 6=8 7=10 etc.... Where the value on the left is the index count 1-43, but the value on the right is the actual value. I'm not certain this is possible or if it is, if it is worth it. I'm greatly appreciative for being able to use the LOOP1 function as much as I can. Link to comment Share on other sites More sharing options...
[Er...] Posted Tuesday at 09:35 PM Share Posted Tuesday at 09:35 PM Thats no problem at all, use a list. Eg: getParameterNamed(list(1,2,3,5,7,8,10),LOOP1) Link to comment Share on other sites More sharing options...
[Ri...] Posted Tuesday at 09:41 PM Share Posted Tuesday at 09:41 PM Sometimes I question life and wonder if I made the wrong choices to lead me to where I am currently. Eric, that worked beautifully, and was way simpler than I thought it would be. Thank you, thank you, thank you. Link to comment Share on other sites More sharing options...
[Mi...] Posted Wednesday at 01:34 PM Share Posted Wednesday at 01:34 PM Please sign in to view this quote. Humbled again! That solution is way better than what I was about to suggest. Eric... get on these forums more. We all enjoy learning from you. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in