Using the Solidworks application CommandCloseNotify delegate. The signature is:
private int CommandClosedHandler(int Command, int reason)
The documentation states that reason is swPropertyManagerPageCloseReasons_e Enumeration.
The values are:
| Member | Description |
|---|---|
| swPropertyManagerPageClose_Apply | 6 |
| swPropertyManagerPageClose_Cancel | 2 |
| swPropertyManagerPageClose_Closed | 4 |
| swPropertyManagerPageClose_Okay | 1 |
| swPropertyManagerPageClose_ParentClosed | 3 |
| swPropertyManagerPageClose_Preview | 7 |
| swPropertyManagerPageClose_UnknownReason | 0 |
| swPropertyManagerPageClose_UserEscape | 5 |
The values I get in the handler are negative, consistent and don't match up to the documentation. For instance, if I close the command using the green checkmark I get a value of -2. I always get a value of -2. Even if this were supposed to be a 2 then that would correspond to swPropertyManagerPageClose_Cancel and not swPropertyManagerPageClose_Okay or swPropertyManagerPageClose_Apply
Bug?
Bad dcumentation?
