Click or drag to resize

CTInterfacePreFileConversionArgs Class

Event argument class for OnPreFileConversion.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ATR.CT.CTInterfaceCTInterfacePreFileConversionArgs

Namespace: ATR.CT.CTInterface
Assembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntax
public class PreFileConversionArgs : EventArgs

The CTInterfacePreFileConversionArgs type exposes the following members.

Properties
 NameDescription
Public propertyBatchConversionRule The conversion rule object that defines the setting of this conversion. Type is defined in assembly Interop.CTEngineLib.dll.
Public propertyBatchOpTemplateID ID of ICTBatchOperationTemplate in case that template was activated before the Batch Operations started. 0 if no active template.
Public propertyCancelConv True to cancel the conversion.
Public propertyMergeTempFile The temporary file when doing merge operation. This is null for the main document of the merge operation and also if the current operation is not merge rule. To get the temp file of the main document, investigate FilesToMerge during OnBeforeMergeDocuments. It will be the first document of the list.
Public propertyResolvedName Name of the conversion's output file. Set Succeeded to true in order to override the name.
Public propertySheetIndex If SWDoc is a drawing document then this refers to drawing sheet index to be converted. If multiple sheets are embedded into some file then this is index of first sheet added. Index is 0 based. For model documents -1.
Public propertySheetOrConfigurationName If SWDoc is a model then name of the configuration that is converted; if SWDoc is a drawing then name of the sheet.
Public propertySucceeded True to override ResolvedName.
Public propertySWDoc SolidWorks.Interop.sldworks.ModelDoc2 from which the conversion is done. Note that if eg. DXF conversion from part is done, the document here is a drawing which is temporarily used in DXF-conversion process of the part. Type is defined in assembly SolidWorks.Interop.sldworks.dll.
Top
Revision History
DateVersionDescription
-2012 SP5First Release
-2013 SP1 Extented with CancelConv.
-2016 SP4 Extented with SheetOrConfigurationName.
-2017 SP2 Extented with SheetIndex.
-2021 SP1 Extented with BatchOpTemplateID.
-2021 SP2 Extended with MergeTempFile.
See Also