SOLIDWORKS PDM Professional API Help Send Feedback
OnCancel Method (IEdmCardView6)
See Also 
EPDM.Interop.epdm Namespace > IEdmCardView6 Interface : OnCancel Method (IEdmCardView6)


Rolls back all changes made in the card view after it is cancelled.

Syntax

Visual Basic 
Sub OnCancel() 
C# 
void OnCancel()
C++/CLI 
void OnCancel(); 

Example

See the IEdmCardView6 examples.

Remarks

Call this method when the card view is cancelled. This method ensures that all serial numbers generated in the card (by right-clicking in edit boxes linked to serial numbers) are pushed back to the database so they can be reused. If you do not call this method, serial numbers are not restored to the database, and gaps in the serial number series occur.

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: One of the arguments is invalid.
 

See Also

Availability

SOLIDWORKS PDM Professional Version 6.0