Click or drag to resize

CTInterfaceOnDeserializeSecondPhase Event

"Entry point" of the second execution phase. When the export is executed "On-Client" at PDM, the add-in may request a second execution phase by setting Handled to TRUE at OnSerializeForSecondPhase. If so, then when this event is invoked, the whole execution environment is already initialized for a completely new context and SerializationData contains everything that was stored there at OnSerializeForSecondPhase during the first phase. The second phase must be completely silent and require no user iteraction. Use CreateLogger to log information about the process. Set Handled to false if your deserialization fails or otherwise there is a fatal error that requires cancelling the process. The second execution phase is invoked for new instance at SOLIDWORKS context and in case the export profile defined any conversion rules and they were not cancelled at OnQueryExportSuccess during first phase, OnPreBatchProcessFile will be invoked for each individual conversion rule and document as if the export was originally executed in SOLIDWORKS context.

Namespace:  ATR.CT.CTInterface
Assembly:  CTInterface (in CTInterface.dll)
Syntax
public event EventHandler<ExportSerializationArgs> OnDeserializeSecondPhase

Value

Type: SystemEventHandlerExportSerializationArgs
Availability

CUSTOMTOOLS 2021 SP0


See Also