Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Currently lookup_inst match mode is only set once and applies to all parameters being searched. Searching for a ring shaped part (such as a forging for a machined ring) and ensuring that the OD is large enough and the ID is small enough requires creating an additional parameter (ID2) to invert the ID value (ID2 = -1 * ID) so that a "greater than" search can be used to find a smaller ID. Forcing an across-the-board match mode also makes it impossible to mix dimensional searches with string searches. If the match mode is unique per parameter these problems would be solved.
Example: lookup_inst("forged_ring.prt",1,"OD_forge",OD_mach,-1,"ID_forge","ID_mach",0,"MATERIAL",MATERIAL)
This example would make sure the OD is larger, the ID is smaller, and the material is identical.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.