Skip to content

M_Aml_Editor_Plugin_Contracts_IAMLEditorPlugin_PublishAutomationMLFileAndObject

AutomationML edited this page Jun 24, 2019 · 1 revision

IAMLEditorPlugin.PublishAutomationMLFileAndObject Method

AutomationML Editor

PublishAutomationMLFileAndObject after the PlugIn is activated. This Method is called by the AutomationML Editor when the PluginActivated Event is handled. The AutomationML Editor will send the actual Path of the AutomationML File and the actual selected Object to the PlugIn, when an AutomationML File is currently open. If the Activation happened, when no AutomationML File was opened so far, the PlugIn will be informed as soon as this will happen, but only if the IsReactive Flag is set to true.

Namespace: Aml.Editor.Plugin.Contracts
Assembly: AML.Editor.PluginContracts (in AML.Editor.PluginContracts.dll) Version: 2.1

Syntax

C#

void PublishAutomationMLFileAndObject(
	string amlFilePath,
	CAEXBasicObject selectedObject
)

VB

Sub PublishAutomationMLFileAndObject ( 
	amlFilePath As String,
	selectedObject As CAEXBasicObject
)

C++

void PublishAutomationMLFileAndObject(
	String^ amlFilePath, 
	CAEXBasicObject^ selectedObject
)

Parameters

 

amlFilePath
Type: System.String
The AML file path.
selectedObject
Type: CAEXBasicObject
The selected CAEX Object.

Examples

// To Load the content of the AutomationML Document the AmlEngine can be used
var document = CAECDocument.LoadFromFile (amlFilePath);        ///

See Also

Reference

IAMLEditorPlugin Interface
Aml.Editor.Plugin.Contracts Namespace

Clone this wiki locally