Gets an event that is fired to allow you to check if the current state of the inputs are valid for execution.
The timing of this event is indeterminate and not always tied to the editing of an input. There are cases where this isn't fired when an input is edited. This happens when an input is able to validate its content on its own. For example, if you enter an invalid value for a ValueCommandInput, it can evaluate this on its own, and as a result, the validate inputs event is not fired. Fusion will sometimes fire this event at other random times that are not tied to the edit of an input.
If you want to be notified when an input changes, you should use the input changed event instead.
-------- Import ---------
-------- Global variables ---------
-------- Connect the handler to the event. ---------
-------- Event handler function definition ---------
|
-------- Global variables ---------
-------- Connect the handler to the event. ---------
-------- Event handler class definition ---------
|
--------- Required include files. ---------
--------- Event handler class definition and global declaration. ---------
class MyValidateInputsEventHandler : public adsk::core::ValidateInputsEventHandler { public: void notify(const Ptr<ValidateInputsEventArgs>& eventArgs) override { // Code to react to the event. ui->messageBox("In MyValidateInputsEventHandler event handler."); } } _validateInputs; --------- Connect the handler to the event. ---------
|