
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I created a sheet metal template with different thicknesses and I am trying to code an Ilogic rule that would set a custom Iproperty named "MATERIAL DESCRIPTION" with 2 different outcomes that would automatically change depending on the thickness value.
1- I would like the "MATERIAL DESCRIPTION" property to display "PLATE 3/4" if the thickness is a standard fraction (from 1/8" to 1"). In this case, the value "3/4" is linked to a parameter named EPA that is driven by the thickness of the sheet metal.
2- If the thickness value is not a standard fraction (like gauge plate), I want the "MATERIAL DESCRIPTION" property to display "PLATE GAUGE 4 (.2242 in)". In this case, the value "4" is linked to a parameter named GAUGE_SIZE that is driven by an Ilogic rule. This rule is a "Select case" function that changes the GAUGE_SIZE value according to the thickness of the sheet metal. The ".2242" value is linked to the Thickness parameters of the sheet metal.
Usually, when I want to link a parameter to this "MATERIAL DESCRIPTION" Iproperty, I would do this :
1- =PLATE <EPA>
or
2- =PLATE GAUGE <GAUGE_SIZE> (<Thickness>)
This works perfectly fine when I only have one case. Although, in this situation, it can either be case 1 or case 2. How do I write the code so the "MATERIAL DESCRIPTION" would either be case 1 or case 2 depending on the thickness (see pictures to see what I have tried) ??
Solved! Go to Solution.