Problem with my Rule

Problem with my Rule

Anonymous
Not applicable
332 Views
2 Replies
Message 1 of 3

Problem with my Rule

Anonymous
Not applicable

Hello

 

I made this rule for supressing files:

 

Select Case Anitrieb

Case 0

Component.IsActive("Motor-WSS:1") = 1
Component.IsActive("Motor-WSS:2") = 1
Component.IsActive("Motor-WSS:3") = 1
Component.IsActive("H+D:1") = 0
Component.IsActive("H+D:2") = 0
Component.IsActive("H+D:3") = 0

 



Case 1

Component.IsActive("Motor-WSS:1") = 0
Component.IsActive("Motor-WSS:2") = 0
Component.IsActive("Motor-WSS:3") = 0
Component.IsActive("H+D:1") = 1
Component.IsActive("H+D:2") = 1
Component.IsActive("H+D:3") = 1

End Select

 

It works for case 0. But when i use case 2 then i have an Error in my browser and the components H+D are gone:

 

Unbenannt.JPG

0 Likes
333 Views
2 Replies
Replies (2)
Message 2 of 3

mslosar
Advisor
Advisor
Not sure if this is it, but a big rule is to not use mathematical symbols in object names or variables, it's just asking for trouble in my book. I'd try removing the + signs to see what happens.

Outside of that, I see nothing wrong in the code - but it could be the file itself I suppose. Could be problematic if the HD files make use of references in the Moro-WSS files...

IF there's no rule, can you suppress/unsupress them as you see fit?

And so you know, when suppressing files/assemblies via code you have to visually suppress and suppress them from the bill separately. Unless it's been fixed since 2013.
0 Likes
Message 3 of 3

rjay75
Collaborator
Collaborator

I don't think it's the rule causing the error.

 

Usually an the ? next to the component means Inventor cant find the file the component is referencing. Check and see if the files are actually present. Get the assembly to correctly resolve them before editing the rule.

 

You will still be able to suppress them but unsupressed will they will have a file resolution issue.