A return value of a form: usually indicates which button caused the form to be closed.
Namespace: Autodesk.iLogic.Interfaces
Assembly: Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 30.0
Syntax
VB
Public Enumeration FormResult
C#
public enum FormResult
Members
Member name | Value | Description | |
---|---|---|---|
None | 0 | The form was closed with the X button on the window frame, or the form is shown non-modally. | |
OK | 1 | The form was closed by clicking the OK button. | |
Cancel | 2 | The form was closed by clicking the Cancel button. | |
Close | 3 | The form was closed by clicking the Close button. | |
Done | 4 | The form was closed by clicking the Done button. | |
RuleButtonClose | 5 | The form was closed by clicking a rule button that has its "On Click Action" set to "Close and run rule". | |
RuleButtonApplyAndClose | 6 | The form was closed by clicking a rule button that has its "On Click Action" set to "Apply and then close and then run rule". | |
NotShown | 7 | The form was not shown. This will be returned if the code is running on Inventor Server. |