Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uiTools Event / userValue_PreModify_Event

1 REPLY 1
SOLVED
Reply
Message 1 of 2
sebastiancordes
618 Views, 1 Reply

uiTools Event / userValue_PreModify_Event

Hi All,

 

I am trying to get the Event handling of the UITools running - with no success.

 

The code presently looks like this:

 

  	Rule dvEditable? As Boolean = False
	Child uiEditable? As :BooleanProperty 
		baseName = "Editable?"
		userValue_PreModify_Event = Parent.EditableModified()
	End Child
	
	Method EditableModified() As List
		Return {{:action, :CreateDynamicRule, :part, Me, :name, :testRule, :formula, "TestFormula"}}	End Method

 ... and I would expect to get a dynamic rule called "testRule".

 

What is missing/wrong? Are there any samles arround?

 

Cheers

 

Sebastian 

 

1 REPLY 1
Message 2 of 2

I finally got it:

Rule dvEditable? As Boolean = False
Child uiEditable? As :BooleanProperty 
	baseName = "Editable?"
	userValue_EventHost = Me
	userValue_PreModify_Event = :EditableModified
End Child
	
Method EditableModified() As List
	Return {{:action, :CreateDynamicRule, :part, Me, :name, :testRule, :formula, "TestFormula"}}	
End Method

 Sebastian

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report