| FileHandlerExtensionPreConvert Method |
Called just before the document is converted into another format using given rule.
Namespace: CTExtensions.InterfacesAssembly: CTInterface (in CTInterface.dll)
Syntax public 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
- Type: CTBatchFileConversionRule
Rule used in conversion - poModelDoc
- Type: SystemObject
Document that is saved as another format. This it not neccessarily the original source document. - bsTargetFile
- Type: SystemString
Target file full path - bAlreadyFailed
- Type: SystemBoolean
true if this rule has already failed (caused by some other extension) - rbSucceeded
- Type: SystemBoolean
Return true if you handled this successfully or with warning. - bsErrorOrWarning
- Type: SystemString
Non-empty if warning or error. If rbSucceeded is true then this is warning; error if false.
Return Value
Type:
BooleanReturn true if you handled this.
See Also