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
IEditSketchExtension Interface | IDatasetEdit Interface | IDatasetEditInfo Interface | IEditTask.Name Property | Editor Class | ISnapEnvironment Interface | IEditEvents2 Interface | IEditTask.Deactivate Method | IEditAttributeProperties Interface | IEditor Interface | IEditSketch Interface | IEditTask.OnFinishSketch Method | IEditProperties Interface | IEditLayers Interface | IEditTask.Activate Method | IEditTask.OnDeleteSketch Method | IEditEvents Interface | IExtension Interface