iLogic help

iLogic help

esmall1894
Contributor Contributor
1,236 Views
5 Replies
Message 1 of 6

iLogic help

esmall1894
Contributor
Contributor

Ok i give!

 

I know this really simple but i cant seem to get it to work.

 

I have a simple plate with four or eight holes.  Two different hole patterns one of which is named "eight bolt"

I have User Parameter "eight_hole" as a True/False.

 

All i want to do is suppress the "eight bolt" feature when the user parameter "eight_hole" goes to false.  Simple right?

I have set all trigger conditions to this iLogic code but still doesn't work.  What is up with this?

 

SyntaxEditor Code Snippet

If Parameter("eight_hole") = True Then 
Feature.IsActive("eight bolt") = True  
Else  
Feature.IsActive("eight bolt") = False
End If

Bolt Plate Screen Shot 1.JPG


 

 

E. Small

Eric Small
Autodesk Inventor Professional
Sr. Mechanical Designer
0 Likes
Accepted solutions (1)
1,237 Views
5 Replies
Replies (5)
Message 2 of 6

Curtis_Waguespack
Consultant
Consultant

Hi esmall1894,

 

Change the way you call the parameter from Parameter("eight_hole") to eight_hole and then it will automatically update.

 

Or you can edit the Form and add an Apply button (rather than just the Done button).

 

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

 

 

If eight_hole = True Then 
Feature.IsActive("eight bolt") = True  
Else
Feature.IsActive("eight bolt") = False
End If

EESignature

0 Likes
Message 3 of 6

esmall1894
Contributor
Contributor

I changed the parameter as suggested to eight_hole. insted of "eight_hole"  and I get the erro message below.  Any thoughts?

 

 

Error in rule: Suppress 8 Hole, in document: Beam Bolt Plate.ipt

Parameter: Could not find a parameter named: "True"

 

 

SyntaxEditor Code Snippet

If Parameter(eight_hole) = True Then 
Feature.IsActive("eight bolt") = True  
Else  
Feature.IsActive("eight bolt") = False
End If
Eric Small
Autodesk Inventor Professional
Sr. Mechanical Designer
0 Likes
Message 4 of 6

Curtis_Waguespack
Consultant
Consultant
Accepted solution

@esmall1894 wrote:

I changed the parameter as suggested to eight_hole. insted of "eight_hole"  and I get the erro message below.  Any thoughts?

 

 

Error in rule: Suppress 8 Hole, in document: Beam Bolt Plate.ipt

Parameter: Could not find a parameter named: "True"

 

 

SyntaxEditor Code Snippet

If Parameter(eight_hole) = True Then 
Feature.IsActive("eight bolt") = True  
Else  
Feature.IsActive("eight bolt") = False
End If

Hi esmall1894,

 

Have a look at my post again. You need to remove the word Parameter as well as the parenthesis, so it just says eight_hole in blue.

 

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

 

 

If eight_hole = True Then 
Feature.IsActive("eight bolt") = True  
Else  
Feature.IsActive("eight bolt") = False
End If

 

EESignature

0 Likes
Message 5 of 6

esmall1894
Contributor
Contributor

I get now.  Than worked thanks for the help

Eric Small
Autodesk Inventor Professional
Sr. Mechanical Designer
0 Likes
Message 6 of 6

danny.lewisA9QBW
Advocate
Advocate

@Curtis_Waguespack 

 

I've got an issue where the multi-value drop downs are one of the things that are being generated by the ilogic codes, so I won't have the specific parameter to put in the code (eg. eight_hole), until after the code has run the first time.

 

Long story short, is there any other way to force iLogic to trigger on a change of multi-value drop down? 

0 Likes