Help with Supress component with iLogic

Help with Supress component with iLogic

Anonymous
Not applicable
429 Views
5 Replies
Message 1 of 6

Help with Supress component with iLogic

Anonymous
Not applicable

Hello

 

i made this rule for supressing my components but it doesen work:

 

If param_val = Parameter("Mittelpfosten_vorhanden")=0 Then
Component.IsActive("Mittelpfosten:1") = 0
End If
If param_val = Parameter("Mittelpfosten_vorhanden")=1 Then
Component.IsActive("Mittelpfosten:1") = 1
End If

 

Can you help me?

0 Likes
430 Views
5 Replies
Replies (5)
Message 2 of 6

VdVeek
Advocate
Advocate

Do you get an error when you run a rule with this line?

Component.IsActive("Mittelpfosten:1") = 0

 

Which Level of Detail is active when you rune your rule? If it's the Master or a locked one, it's not possible to suppres a part.

 

Rob.

Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.
0 Likes
Message 3 of 6

Anonymous
Not applicable

Hello Rob

 

Sometimes it woeks when i edit my parameters somerimes no.

 

I bekomme no error, and my assembly is not in masterUnbenannt.JPG

0 Likes
Message 4 of 6

CCarreiras
Mentor
Mentor

Hi!

 

Change the LOD name. Call it iLogic.

CCarreiras

EESignature

0 Likes
Message 5 of 6

CCarreiras
Mentor
Mentor

Try this:

 

If param_val =0 Then
Component.IsActive("Mittelpfosten:1") = 0

ElseIf 

param_val = 1 Then
Component.IsActive("Mittelpfosten:1") = 1
End If

CCarreiras

EESignature

0 Likes
Message 6 of 6

Anonymous
Not applicable

Hallo CarlosC

 

I use the code:

If param_val =0
Component.IsActive("Mittelpfosten:1") = 0

 

Shuold I not If param_val ("Parameter") =0 writte?

 

and how did renaming to "iLogic" had a effect on my assembly?

 

0 Likes