Run rules if weld environment has been activated

Run rules if weld environment has been activated

steveh5
Advisor Advisor
505 Views
3 Replies
Message 1 of 4

Run rules if weld environment has been activated

steveh5
Advisor
Advisor

Gang...still thumbing my way around ilogic. Know enough to be dangereous :-).

 

So, now I am looking to run a set of rules that the rules only run when the Weldments Environment as been actived.

 

Eg.

If Welds Enviroment is active, then run these set of rules. Else do nothing.

 

Possible?

 

Thanks everyone and stay healthy,

 

Steve Hilvers

Steve Hilvers
Inventor Certified User / Vault Professional Influencer
0 Likes
Accepted solutions (1)
506 Views
3 Replies
Replies (3)
Message 2 of 4

Darkforce_the_ilogic_guy
Advisor
Advisor

can´t you use sub type doc ?  I am not 100 % if weld have it our Subtype but if it have you have use a simple if statment for what you want to do .  You might be ably to se what the Subtype code is for a welding doc ... type is the code is the same for a normale assambly  if not you can use it 

 

MessageBox.Show("Document SubType = " & ThisDoc.Document.SubType)

0 Likes
Message 3 of 4

Darkforce_the_ilogic_guy
Advisor
Advisor
Accepted solution
If ThisDoc.Document.SubType = "{28EC8354-9024-440F-A8A2-0E0E55D635B0}" Then
'
'Type your code you want to run on only Welding assambly here

	
	
End If
0 Likes
Message 4 of 4

steveh5
Advisor
Advisor

Thx bt....appreciate the help. It works.

 

Best,

 

Steve H.

Steve Hilvers
Inventor Certified User / Vault Professional Influencer
0 Likes