[Cl...] Posted June 30, 2020 Share Posted June 30, 2020 I have a two part family program, using PCM. One is a sub-assembly, the other a final assembly (a press fit cannulated cap). When measuring the sub-assembly, I don't need to measure the 2d line that gets measured in the assembly. How do I use either PCM, or a conditional statement to ignore this feature when the sub-assembly is being measured? Link to comment Share on other sites More sharing options...
[Ia...] Posted June 30, 2020 Share Posted June 30, 2020 Just throwing it out there, could you just use a miniplan for the sub-assembly? Link to comment Share on other sites More sharing options...
[Cl...] Posted June 30, 2020 Author Share Posted June 30, 2020 That's an option, but I'm using PCM to switch back and forth between models/ops. Ideally, I'd like to stick with that approach. I know there's a simple way to use a conditional formula to ignore the feature, but don't know what that is. Link to comment Share on other sites More sharing options...
[Is...] Posted June 30, 2020 Share Posted June 30, 2020 Put a condition in the characteristic.., this ignores the related features if the Boolean is false. Link to comment Share on other sites More sharing options...
[Cl...] Posted June 30, 2020 Author Share Posted June 30, 2020 I was hoping for the actual condition syntax. I have no clue what to put in as a condition. Link to comment Share on other sites More sharing options...
[No...] Posted July 1, 2020 Share Posted July 1, 2020 Well, basically you put in a comparison term that evaluates as "false" when the assembly is measured. What to compare is up to you, it has to be something distinct that differs between the two variants, for example a protocol header field. Let's assume you have a header field named u_field1 that contains "SUB" for the sub-assembly and "FINAL" for the final asssembly. Then the condition could be: getRecordHead("u_field1")<>"SUB" Note: If you really use a header field, make sure to avoid typos or case mismatch, otherwise the above statement may fail. This is best achieved if you define the header field as a dropdown list with fixed entries. 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