IExportContextStart Method |
This method is called at the very start of the export process,
still before the first entity of the model was send out.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
SyntaxFunction Start As Boolean
abstract Start : unit -> bool
Return Value
Boolean
Return True if you are ready to proceed with processing the export.
Example
private Document m_document = null;
private bool m_cancelled = false;
private Stack<Transform> m_TransformationStack = new Stack<Transform>();
public MyExportContext(Document document)
{
m_document = document;
m_TransformationStack.Push(Transform.Identity);
}
public bool Start()
{
return true;
}
public void Finish()
{
}
public bool IsCanceled()
{
return m_cancelled;
}
Private m_document As Document = Nothing
Private m_cancelled As Boolean = False
Private m_TransformationStack As New Stack(Of Transform)()
Public Sub New(document As Document)
m_document = document
m_TransformationStack.Push(Transform.Identity)
End Sub
Public Function Start() As Boolean Implements IExportContext.Start
Return True
End Function
Public Sub Finish() Implements IExportContext.Finish
End Sub
Public Function IsCanceled() As Boolean Implements IExportContext.IsCanceled
Return m_cancelled
End Function
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also