Skip to content

M_Aml_Editor_Plugin_Base_PluginBase_PublishAutomationMLFileAndObject

AutomationML edited this page Jun 24, 2019 · 1 revision

PluginBase.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.Base
Assembly: AML.Editor.PluginContracts (in AML.Editor.PluginContracts.dll) Version: 2.1

Syntax

C#

public abstract void PublishAutomationMLFileAndObject(
	string amlFilePath,
	CAEXBasicObject selectedObject
)

VB

Public MustOverride Sub PublishAutomationMLFileAndObject ( 
	amlFilePath As String,
	selectedObject As CAEXBasicObject
)

C++

public:
virtual void PublishAutomationMLFileAndObject(
	String^ amlFilePath, 
	CAEXBasicObject^ selectedObject
) abstract

Parameters

 

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

Implements

IAMLEditorPlugin.PublishAutomationMLFileAndObject(String, CAEXBasicObject)

Examples

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

See Also

Reference

PluginBase Class
Aml.Editor.Plugin.Base Namespace

Clone this wiki locally