16
Automation Interface, Add-Ins and Tools / Model validation from an add-in
« on: July 22, 2014, 10:45:26 pm »
Hello,
I am trying to add my own validation rules from my add-in. However, I would also like to be able to select the rules to use individually and not on a category basis, and I have my own window to display the errors.
So I intend to catch the events EA_OnStartValidation and EA_OnEndValidation and only fire my code if my own category (I only define one category at EA level) is in the parameter array. The thing is, no matter what categories I select in the model validation configuration, the parameter array contains my custom category, and my category only.
Is it the expected behaviour? In that case, how can I know that my category has been selected?
By the way, is there a way to configure the validation from an add-in? I mean that if the user clicks in one of my custom menus, the validation will be launched only on my category of rules.
I am trying to add my own validation rules from my add-in. However, I would also like to be able to select the rules to use individually and not on a category basis, and I have my own window to display the errors.
So I intend to catch the events EA_OnStartValidation and EA_OnEndValidation and only fire my code if my own category (I only define one category at EA level) is in the parameter array. The thing is, no matter what categories I select in the model validation configuration, the parameter array contains my custom category, and my category only.
Is it the expected behaviour? In that case, how can I know that my category has been selected?
By the way, is there a way to configure the validation from an add-in? I mean that if the user clicks in one of my custom menus, the validation will be launched only on my category of rules.