Need some help with a "simple" piece of iLogic

Need some help with a "simple" piece of iLogic

chris
Advisor Advisor
552 Views
6 Replies
Message 1 of 7

Need some help with a "simple" piece of iLogic

chris
Advisor
Advisor

I'm trying to just add some parameters together to drive another parameter, but I'm getting an error... of course the error is not explained, so I was just wondering if you guys could take a look at the line that is producing the error and tell me what I am "writing" wrong.

 

I did the same equation with just number s and it worked fine, so I assume it's something to do with a "(" or something?

 

Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 8609 StartFragment: 314 EndFragment: 8577 StartSelection: 314 EndSelection: 314SyntaxEditor Code Snippet

'Template_Jumper_Kit_1-01: Part

Parameter("Template_Jumper_Kit_1-01:1", "Elbow_OD") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_OD")
Parameter("Template_Jumper_Kit_1-01:1", "Elbow_WT") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_WT")
Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Radius") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_Radius")
Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Tangent_1") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_Tangent_01")
Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Tangent_2") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_Tangent_02")
iLogicVb.UpdateWhenDone = True
InventorVb.DocumentUpdate()

'Parameter("Induction_Modification_Cut_Horizontal") = (Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Radius")+Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Tangent_01")+Parameter("KLV-8-0092:1", "KLV_8_Target_Elbow_6_625_Leg")+(Parameter(MakePath("KLV-8-0092:1", "KLV-8_Pup:1"), "Pup_Length"))-Parameter("Template_Jumper_Kit_1_Base:2", "Kit_1A")


Parameter("Induction_Modification_Cut_Horizontal") = (33.125+36+8.825+60)-108

 

(Pink+Blue+Green+Orange)-Red

 

 

 

iLogic Math.png

0 Likes
Accepted solutions (1)
553 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Hello,

 

As you have it written there is an apostrophe at the start of that line. that means inventor thinks it is just text information. remove that apostrophe and try it. Everything else seems to be correct.

0 Likes
Message 3 of 7

chris
Advisor
Advisor

yes, I added that to avoid having to "suppress" it... but once that is removed I get the error... there is something in line 11 that is not jiving...

 

Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 10723 StartFragment: 314 EndFragment: 10691 StartSelection: 314 EndSelection: 314SyntaxEditor Code Snippet

'Template_Jumper_Kit_1-01: Part

Parameter("Template_Jumper_Kit_1-01:1", "Elbow_OD") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_OD")
Parameter("Template_Jumper_Kit_1-01:1", "Elbow_WT") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_WT")
Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Radius") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_Radius")
Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Tangent_1") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_Tangent_01")
Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Tangent_2") = Parameter("Template_Jumper_Kit_1_Base:2", "Elbow_Tangent_02")
iLogicVb.UpdateWhenDone = True
InventorVb.DocumentUpdate()

Parameter("Induction_Modification_Cut_Horizontal") = (Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Radius")+Parameter("Template_Jumper_Kit_1-01:1", "Elbow_Tangent_01")+Parameter("KLV-8-0092:1", "KLV_8_Target_Elbow_6_625_Leg")+(Parameter(MakePath("KLV-8-0092:1", "KLV-8_Pup:1"), "Pup_Length"))-Parameter("Template_Jumper_Kit_1_Base:2", "Kit_1A")


'Parameter("Induction_Modification_Cut_Horizontal") = (33.125+36+8.825+60)-108
0 Likes
Message 4 of 7

Anonymous
Not applicable

Are you working in the "Template_Jumper_Kit_1-01:1"? or in an Assembly that includes that item?

0 Likes
Message 5 of 7

Thomas_Savage
Advisor
Advisor

Hello @chris

 

Could you attach your files with the iLogic code in please?

 

To help understand why it isn't working.

 

Thomas.



Thomas Savage

Design Engineer


0 Likes
Message 6 of 7

chris
Advisor
Advisor
Accepted solution

okay, I removed the "make Path" parameter... and it works... but I need that parameter to be part of that equation?

 

Okay, figured it out... I had the wrong sub assy. file name... it would be helpful if the error stated what the problem "was" instead of just stating there is an error....

0 Likes
Message 7 of 7

Anonymous
Not applicable

Awesome. I was just looking at that make path part of that. Glad you figured it out!

 

I think we can all agree that if it told you what there error was it would be much less frustrating. The only problem is that Inventor has no way of know your end goal therefore it cannot tell you if something specific is wrong

0 Likes