iLogic Rule - Will not read certain Select Case

iLogic Rule - Will not read certain Select Case

cco9352
Explorer Explorer
448 Views
2 Replies
Message 1 of 3

iLogic Rule - Will not read certain Select Case

cco9352
Explorer
Explorer

Hello-

 

I have created a rule that populates a Sheet Metal part's iProperty Description based on the Sheet Metal Defaults as well as the flat pattern length and width.  The problem I have is that there is one specific Sheet Metal Default - A569 12 GA - where the rule does populate the Description correctly.

 

I've been using the Select Case function to filter by material then choose by thickness to generate a Description.  The rule is arranged by ascending thicknesses from 11 GA to 16 GA, where the Case line for 12 GA is inserted in the middle of the code.  It won't read the 12 GA Case but all other Sheet Metal Defaults/thicknesses run just fine.

 

I have spoken with an Autodesk representative but could only troubleshoot to help me pin-point exactly where the problem is at.  (We inserted message boxes to display where the rule has been successful.) There doesn't seem to be any special characters within the code.  The only differences in the Sheet Metal Defaults are the thicknesses.  I have tried copy-pasta the working Case from other thicknesses as the troublesome 12 GA, but no success either.  Other Sheet Metal parts seem to have the same problem.

 

Is there something wrong with my 12 GA Case in my rule or is there a setting I'm missing?  Or is this a bug?

 

I have attached a generic Sheet Metal part with the rule and appropriate Sheet Metal Defaults.  Thank you.

0 Likes
Accepted solutions (1)
449 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @cco9352 

 

Welcome to the forum.

 

I only took a quick moment to look, but I think you just have a type mismatch on the variable "B". If you use this it seems to work correctly. 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

B = Parameter("Thickness").ToString

 

EESignature

0 Likes
Message 3 of 3

cco9352
Explorer
Explorer

Wow.  That was a lot simpler solution than I thought it'd be.  Weird that even without ".ToString" at the end, it still worked for all the other Sheet Metal Defaults.  Thank you!!

0 Likes