 | FileHandlerExtensionPreConvert Method |
Called just before the document is converted into another format using given rule.
Namespace: CTExtensions.InterfacesAssembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntaxpublic virtual bool PreConvert(
CTBatchFileConversionRule poRule,
Object poModelDoc,
string bsTargetFile,
bool bAlreadyFailed,
ref bool rbSucceeded,
ref string bsErrorOrWarning
)
Public Overridable Function PreConvert (
poRule As CTBatchFileConversionRule,
poModelDoc As Object,
bsTargetFile As String,
bAlreadyFailed As Boolean,
ByRef rbSucceeded As Boolean,
ByRef bsErrorOrWarning As String
) As Boolean
Parameters
- poRule CTBatchFileConversionRule
- Rule used in conversion
- poModelDoc Object
- Document that is saved as another format. This it not neccessarily the original source document.
- bsTargetFile String
- Target file full path
- bAlreadyFailed Boolean
- true if this rule has already failed (caused by some other extension)
- rbSucceeded Boolean
- Return true if you handled this successfully or with warning.
- bsErrorOrWarning String
- Non-empty if warning or error. If rbSucceeded is true then this is warning; error if false.
Return Value
BooleanReturn true if you handled this.
See Also