Called when the sketch extension is about to be used.
[Visual Basic .NET] Public Sub Activate ( _ ByVal Editor As IEditor _ )
[C#] public void Activate ( IEditor Editor );
Product Availability
Remarks
The ::Activate() method is called by the controller when the EditSktechExtension has been applied and is being initiated for use.
This method is called only if ::Applies() returns VARIANT_TRUE.
Use this method to obtain a reference to the controller (Editor).
public void Activate(IEditor Editor)
{
m_editor = Editor;
}
Public Sub Activate(ByVal Editor As IEditor) m_editor = Editor End Sub
See Also
IEditSketchExtension2 Interface | IDatasetEdit Interface | IDatasetEditInfo Interface | Editor Class | IEditTask.OnFinishSketch Method | IEditor Interface | IEditTask.OnDeleteSketch Method | IEditTask.Activate Method | IEditTask.Deactivate Method | IEditSketch Interface | IEditAttributeProperties Interface | IEditLayers Interface | IEditEvents Interface | IEditTask.Name Property | IEditProperties Interface | IEditEvents2 Interface | ISnapEnvironment Interface | IExtension Interface