how to control if Ilogic rule is triggered based on part type

how to control if Ilogic rule is triggered based on part type

lingerrobert
Contributor Contributor
9,048 Views
1 Reply
Message 1 of 2

how to control if Ilogic rule is triggered based on part type

lingerrobert
Contributor
Contributor

Hello,

I am looking for help with triggering a rule. i have written a rule that pulls parameters from a sheet metal part. i would like to have this rule run only when the part is sheet metal. Now the rule tries to run even if the part is a standard part. Is there a way to control an external rule to  trigger based on the part type?

Bob

0 Likes
9,049 Views
1 Reply
Reply (1)
Message 2 of 2

marcin_otręba
Advisor
Advisor

You can't trigger depending from file type, but instead just add some condition in first line like:

 

If part.subtype = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" then

 

         Your code

 

end if

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders