Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Suppress InputListBox for this session of specific Save action

cnoJTCG6
Contributor

Suppress InputListBox for this session of specific Save action

cnoJTCG6
Contributor
Contributor

Hello,

 

I put an InputListBox in a rule who comes up when the iProperty 'Fabrication' does not exist and asked the user to input a value.

This is very useful for Parts and Assemblies drawn by ourselves.
However, for step files that we import an unpack it is unnecessary.
Can I check if an ipt or iam file that is going to be saved has a step file as its origin in order to suppress the message?

And, second question, is it possible to suppress the message for 'This Inventor session' or this specific save action?

 

 
0 Likes
Reply
312 Views
3 Replies
Replies (3)

WCrihfield
Mentor
Mentor

Hi @cnoJTCG6.  I can't currently think of any way to check if an Inventor Part document originated from a STEP file, unless maybe it is still associatively linked to that STEP file, which I believe is a relatively new ability.  And as far as suppressing that InputListBox (but not the rule its in) for specifically the rest of the current Inventor Session, may be difficult to set-up, but may not be impossible.  Are you familiar with the SharedVariable objects in iLogic?  There are 'snippets' for using them within the 'System' group of the iLogic Rule Editor's Snippets, under the group called 'Variables'.  They are a way to store simple data into Inventor's 'session memory', which will remain only until either you specifically remove it using one of the other snippets, or you close your current session of Inventor.  If you created one of these with an obvious name, then gave it a Boolean (True/False) type Value, you could then have that rule check for this SharedVariable and/or its value, just before showing that InputListBox.  If it is found and/or its Value is what's expected, then don't show the InputListBox, otherwise show it.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) :thumbs_up:.

If you want and have time, I would appreciate your Vote(s) for My IDEAS :light_bulb:or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes

Michael.Navara
Advisor
Advisor

SharedVariable concept is great, when you need to share values between rules or for a long time (Inventor session). But for this case is it possible to use just shared variable in this rule. This shared variable lifetime is until you edit or regenerate the rule. 

Sub main
	If disabled Then Return
		
	Dim result = InputListBox("prompt", New String() {"a", "b", "disable" }, "a", "title", "list name")
	MsgBox(result)
	
	If result = "disable" Then
		disabled = True
		MsgBox("DISABLED BY USER")
	End If

End Sub
Shared disabled As Boolean = False

 

0 Likes

checkcheck_master
Advocate
Advocate

Thanks for your response, I'm going to check it out and try.

0 Likes