Benefit of External Rules and Global Forms?

Benefit of External Rules and Global Forms?

jfenter
Enthusiast Enthusiast
1,542 Views
1 Reply
Message 1 of 2

Benefit of External Rules and Global Forms?

jfenter
Enthusiast
Enthusiast

I'm still fairly new at using iLogic and wonder what the benefit of global rules and forms are over being locally-stored.  I am working on creating part templates and thought that using a global form would allow me to make changes in the future to all parts created from that template if a global rule/form was used.  Am I correct in that thinking?

 

I have also found that attempting to make changes to iProperties via external rules does not work.  For example, I have an external rule written to change the material type as: 

 

SyntaxEditor Code Snippet

If Parameter("material") = "MS" Then
iProperties.Material= "MS"
ElseIf Parameter("material") = "FB" Then
iProperties.Material= "FB"
ElseIf Parameter("material") = "SS" Then
iProperties.Material="SS"
ElseIf Parameter("material") = "SF" Then
iProperties.Material= "SF"
ElseIf Parameter("material") = "BP" Then
iProperties.Material= "M2"
ElseIf Parameter("material") = "CB" Then
iProperties.Material= "CB"
End If

As written, when the prompt in the global form is changed to any of these options, the material type does not change.  If I change the rule from an external rule to a local rule and use "material" as a variable it works just fine.  What am I missing?  

 

Thanks!

1,543 Views
1 Reply
Reply (1)
Message 2 of 2

HermJan.Otterman
Advisor
Advisor

Hello,

 

Have a look at this link:

 

https://www.augi.com/articles/detail/playing-by-the-ilogic-rules%20

 

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan