SE ScriptEngine
SE ScriptEngine
Expert
Script Engine User Guide
12/2018
EIO0000003799.00
www.schneider-electric.com
Script Engine Class Library User Guide
You agree not to reproduce, other than for your own personal, noncommercial use,
all or part of this document on any medium whatsoever without permission of
Schneider Electric, given in writing. You also agree not to establish any hypertext
links to this document or its content.
Schneider Electric does not grant any right or license for the personal and
noncommercial use of the document or its content, except for a non-exclusive license
to consult it on an "as is" basis, at your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when
installing and using this product. For reasons of safety and to help ensure compliance
with documented system data, only the manufacturer should perform repairs to
components.
When devices are used for applications with technical safety requirements, the
relevant instructions must be followed.
Failure to use Schneider Electric software or approved software with our hardware
products may result in injury, harm, or improper operating results.
2 EIO0000003799
Script Engine Class Library User Guide
Table of Contents
EIO0000003799 3
Script Engine Class Library User Guide
4 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 5
Script Engine Class Library User Guide
6 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 7
Script Engine Class Library User Guide
8 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 9
Script Engine Class Library User Guide
10 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 11
Script Engine Class Library User Guide
12 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 13
Script Engine Class Library User Guide
14 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 15
Script Engine Class Library User Guide
Syntax...................................................................................................................................... 633
Properties ................................................................................................................................ 633
Remarks .................................................................................................................................. 633
See Also ................................................................................................................................... 633
IScriptTestResourceObjectMarker.IScriptTestResourceObjectMarker Properties ................... 634
ISCRIPTTESTRESULT INTERFACE ........................................................................................................... 636
Syntax...................................................................................................................................... 636
Properties ................................................................................................................................ 636
Methods .................................................................................................................................. 637
Remarks .................................................................................................................................. 637
See Also ................................................................................................................................... 637
IScriptTestResult.IScriptTestResult Properties ......................................................................... 638
IScriptTestResult.IScriptTestResult Methods ........................................................................... 647
ISCRIPTTESTRUN INTERFACE............................................................................................................... 651
Syntax...................................................................................................................................... 651
Properties ................................................................................................................................ 651
Remarks .................................................................................................................................. 651
See Also ................................................................................................................................... 651
IScriptTestRun.IScriptTestRun Properties ................................................................................ 652
ISCRIPTTESTRUN2 INTERFACE............................................................................................................. 655
Syntax...................................................................................................................................... 655
Properties ................................................................................................................................ 655
Remarks .................................................................................................................................. 655
See Also ................................................................................................................................... 655
IScriptTestRun2.IScriptTestRun2 Properties ............................................................................ 656
ISCRIPTTESTSERIESOBJECT INTERFACE .................................................................................................. 658
Syntax...................................................................................................................................... 658
Properties ................................................................................................................................ 658
Methods .................................................................................................................................. 658
Remarks .................................................................................................................................. 658
See Also ................................................................................................................................... 659
IScriptTestSeriesObject.IScriptTestSeriesObject Properties ..................................................... 660
IScriptTestSeriesObject.IScriptTestSeriesObject Methods ....................................................... 662
ISCRIPTTESTSERIESOBJECTMARKER INTERFACE ...................................................................................... 665
Syntax...................................................................................................................................... 665
Properties ................................................................................................................................ 665
Remarks .................................................................................................................................. 665
See Also ................................................................................................................................... 665
IScriptTestSeriesObjectMarker.IScriptTestSeriesObjectMarker Properties ............................. 666
16 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 17
Script Engine Class Library User Guide
18 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 19
Script Engine Class Library User Guide
Syntax...................................................................................................................................... 776
Properties ................................................................................................................................ 776
See Also ................................................................................................................................... 777
CommonProjectSettings.CommonProjectSettings Properties ................................................. 778
COMPILERMESSAGE CLASS................................................................................................................. 788
Inheritance Hierarchy .............................................................................................................. 788
Syntax...................................................................................................................................... 788
Properties ................................................................................................................................ 788
See Also ................................................................................................................................... 788
CompilerMessage.CompilerMessage Properties..................................................................... 789
CONTROLLERSETTINGS CLASS ............................................................................................................. 792
Inheritance Hierarchy .............................................................................................................. 792
Syntax...................................................................................................................................... 792
Properties ................................................................................................................................ 792
See Also ................................................................................................................................... 792
ControllerSettings.ControllerSettings Properties .................................................................... 793
NEWPROJECTTYPE CLASS .................................................................................................................. 799
Inheritance Hierarchy .............................................................................................................. 799
Syntax...................................................................................................................................... 799
Methods .................................................................................................................................. 799
See Also ................................................................................................................................... 800
NewProjectType.NewProjectType Methods ............................................................................ 801
IMPLEMENTATIONLANGUAGE ENUMERATION ........................................................................................ 810
Syntax...................................................................................................................................... 810
Members ................................................................................................................................. 810
See Also ................................................................................................................................... 810
CHAPTER 19 SCHNEIDERELECTRIC.SCRIPTING.TYPES.OPTIONS NAMESPACE ............................. 811
CLASSES ......................................................................................................................................... 811
FEATURESETTINGS CLASS ................................................................................................................... 812
Inheritance Hierarchy .............................................................................................................. 812
Syntax...................................................................................................................................... 812
Methods .................................................................................................................................. 812
See Also ................................................................................................................................... 812
FeatureSettings.FeatureSettings Methods.............................................................................. 813
CHAPTER 20 SCHNEIDERELECTRIC.SCRIPTING.TYPES.VISUALIZATION NAMESPACE ................... 818
CLASSES ......................................................................................................................................... 818
VISUALIZATIONSETTINGS CLASS........................................................................................................... 819
20 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 21
Script Engine Class Library User Guide
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with
the device before trying to install, operate, service, or maintain it. The following special
messages may appear throughout this documentation or on the equipment to warn of
potential hazards or to call attention to information that clarifies or simplifies a
procedure.
22 EIO0000003799
Script Engine Class Library User Guide
PLEASE NOTE
A qualified person is one who has skills and knowledge related to the construction
and operation of electrical equipment and its installation, and has received safety
training to recognize and avoid the hazards involved.
WARNING
UNGUARDED EQUIPMENT
Do not use this software and related automation equipment on equipment which
does not have point-of-operation protection.
Do not reach into machinery during operation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
Only you, the user, machine builder or system integrator can be aware of all the
conditions and factors present during setup, operation, and maintenance of the
machine and, therefore, can determine the automation equipment and the related
safeties and interlocks which can be properly used. When selecting automation and
control equipment and related software for a particular application, you should refer
to the applicable local and national standards and regulations. The National Safety
Council's Accident Prevention Manual (nationally recognized in the United States of
America) also provides much useful information.
EIO0000003799 23
Script Engine Class Library User Guide
WARNING
EQUIPMENT OPERATION HAZARD
Verify that all installation and setup procedures have been completed.
Before operational tests are performed, remove all blocks or other temporary
holding means used for shipment from all component devices.
Remove tools, meters, and debris from equipment.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
Follow all start-up tests recommended in the equipment documentation. Store all
equipment documentation for future references.
24 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 25
Script Engine Class Library User Guide
At a Glance
Document Scope
The present document details the various elements of the Script Engine. Read
the complete document before you use the product or products described
herein.
Validity Note
The information contained in the present document is applicable only for
EcoStruxure Machine Expert. This document has been updated for the release
of EcoStruxure Machine Expert V1.0.
26 EIO0000003799
Script Engine Class Library User Guide
Step Action
1 Go to the Schneider Electric home page www.schneider-electric.com.
2 In the Search box type the reference of a product or the name of a product
range.
Do not include blank spaces in the reference or product range.
To get information on grouping similar modules, use asterisks (*).
3 If you entered a reference, go to the Product Datasheets search results and
click on the reference that interests you.
If you entered the name of a product range, go to the Product Ranges
search results and click
on the product range that interests you.
4 If more than one reference appears in the Products search results, click on
the reference that
interests you.
5 Depending on the size of your screen, you may need to scroll down to see
the data sheet.
6 To save or print a data sheet as a .pdf file, click Download XXX product
datasheet.
The characteristics that are presented in the present document should be the
same as those characteristics that appear online. In line with our policy of
constant improvement, we may revise content over time to improve clarity and
accuracy. If you see a difference between the document and online
information, use the online information as your reference.
EIO0000003799 27
Script Engine Class Library User Guide
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of
control paths and, for certain critical control functions, provide a means to achieve
a safe state during and after a path failure. Examples of critical control functions
are emergency stop and overtravel stop, power outage and restart.
Separate or redundant control paths must be provided for critical control
functions.
System control paths may include communication links. Consideration must be
given to the implications of unanticipated transmission delays or failures of the
link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly
tested for proper operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
1 For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware
configuration.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
28 EIO0000003799
Script Engine Class Library User Guide
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not include any programming or configuration logic, or parameter values from
any of the examples in your machine or process without thoroughly testing your
entire application.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
EIO0000003799 29
Script Engine Class Library User Guide
In the area of functional safety systems, drives and general automation, this may
include, but is not limited to, terms such as safety, safety function, safe state,
fault, fault reset, malfunction, failure, error, error message, dangerous, etc.
Standard Description
IEC 61131-2:2007 Programmable controllers, part 2: Equipment requirements
and tests.
ISO 13849-1:2015 Safety of machinery: Safety related parts of control systems.
General principles for design.
EN 61496-1:2013 Safety of machinery: Electro-sensitive protective equipment.
Part 1: General requirements and tests.
ISO 12100:2010 Safety of machinery - General principles for design - Risk
assessment and risk
reduction
EN 60204-1:2006 Safety of machinery - Electrical equipment of machines - Part
1: General
requirements
ISO 14119:2013 Safety of machinery - Interlocking devices associated with
guards - Principles
for design and selection
ISO 13850:2015 Safety of machinery - Emergency stop - Principles for design
IEC 62061:2015 Safety of machinery - Functional safety of safety-related
electrical, electronic,
and electronic programmable control systems
IEC 61508-1:2010 Functional safety of electrical/electronic/programmable
electronic safety-
related systems: General requirements.
IEC 61508-2:2010 Functional safety of electrical/electronic/programmable
electronic safety- related systems: Requirements for
electrical/electronic/programmable
electronic safety-related systems.
30 EIO0000003799
Script Engine Class Library User Guide
Finally, the term zone of operation may be used in conjunction with the
description of specific hazards, and is defined as it is for a hazard zone or
danger zone in the Machinery Directive (2006/42/EC) and ISO 12100:2010.
NOTE: The aforementioned standards may or may not apply to the specific
products cited in the present documentation. For more information concerning
the individual standards applicable to the products described herein, see the
characteristics tables for those product references.
EIO0000003799 31
Script Engine Class Library User Guide
Chapter 1
SchneiderElectric.Scripting.CodeAnalysis Namespace
This namespace contains types and methods that support accessing and
using Code Analysis functionality from within the Python API.
Interfaces
Interface Description
IConventionsTableResults Scripting API with code analysis results
of convention table.
IMetricsTableResults Scripting API with code analysis results
of metrics table.
IScriptAnalysisProject Scripting API for Machine Advisor Code
Analysis with details of analysis project
on cloud.
IScriptApplicationExtension Scripting API to extend the application
script object for Code Analysis
operation access (for this application).
IScriptCloudConfiguration Scripting API for cloud connector
configuration.
IScriptCloudConnector Interface Scripting API for cloud connector.
IScriptCodeAnalysis Interface that describes the script
engine of code analysis
IScriptCompany Scripting API for Machine Advisor Code
Analysis with details of company.
IScriptConfiguration Scripting API to configure the code
analysis query engine and code
analyser.
IScriptConventions Scripting API to build convention table
results.
32 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 33
Script Engine Class Library User Guide
Enumerations
Enumeration Description
HttpBackendTypes The available and supported Http Backend
Enumeration types
TripleStorageBackendTypes Definition of strategy used for backend type
selection.
34 EIO0000003799
Script Engine Class Library User Guide
IConventionsTableResults Interface
Scripting API with code analysis results of convention table.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IConventionsTableResults
Properties
Name Description
analyser_version Retrieves the analyser version.
analysis_finished_at Retrieves the analysis finished time.
analysis_started_at Retrieves the analysis start time.
columns Retrieves the analysis results columns.
message Retrieves the final analysis message (as text).
project_path Retrieves the analyzed project path.
rows Retrieves the analysis results rows.
successful Retrieves a value indicating whether this
IConventionsTableResults was successful.
Methods
Name Description
IConventionsTableResults.store_as_csv Method Stores the analysis results as xml.
EIO0000003799 35
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
36 EIO0000003799
Script Engine Class Library User Guide
IConventionsTableResults.IConventionsTableResults Properties
The IConventionsTableResults type exposes the following members.
Properties
Name Description
IConventionsTableResults.analyser_version Retrieves the analyser version.
Property
IConventionsTableResults.analysis_finished_at Retrieves the analysis finished time.
Property
IConventionsTableResults.analysis_started_at Retrieves the analysis start time.
Property
IConventionsTableResults.columns Property Retrieves the analysis results
columns.
IConventionsTableResults.message Property Retrieves the final analysis message
(as text).
IConventionsTableResults.project_path Property Retrieves the analyzed project path.
IConventionsTableResults.rows Property Retrieves the analysis results rows.
IConventionsTableResults.successful Property Retrieves a value indicating whether
this IConventionsTableResults was
successful.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 37
Script Engine Class Library User Guide
IConventionsTableResults.analyser_version Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string analyser_version { get; }
Property Value
Type: String
The analyzer version.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
38 EIO0000003799
Script Engine Class Library User Guide
IConventionsTableResults.analysis_finished_at Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string analysis_finished_at { get; }
Property Value
Type: String
The analysis finished time.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 39
Script Engine Class Library User Guide
IConventionsTableResults.analysis_started_at Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string analysis_started_at { get; }
Property Value
Type: String
The analysis start time.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
40 EIO0000003799
Script Engine Class Library User Guide
IConventionsTableResults.columns Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string[] columns { get; }
Property Value
Type: String[]
The analysis results columns.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 41
Script Engine Class Library User Guide
IConventionsTableResults.message Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string message { get; }
Property Value
Type: String
The message.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
42 EIO0000003799
Script Engine Class Library User Guide
IConventionsTableResults.project_path Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string project_path { get; }
Property Value
Type: String
The project_path.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 43
Script Engine Class Library User Guide
IConventionsTableResults.rows Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string[][] rows { get; }
Property Value
Type: String[ ][ ]
The analysis results rows.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
44 EIO0000003799
Script Engine Class Library User Guide
IConventionsTableResults.successful Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool successful { get; }
Property Value
Type: Boolean
true if successful; otherwise, false.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 45
Script Engine Class Library User Guide
IConventionsTableResults.IConventionsTableResults Methods
The IConventionsTableResults type exposes the following members.
Methods
Name Description
store_as_csv Stores the analysis results as csv.
store_as_html Stores the analysis results as html.
store_as_xml Stores the analysis results as xml.
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
46 EIO0000003799
Script Engine Class Library User Guide
IConventionsTableResults.store_as_csv Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store_as_csv(
string filename
)
Parameters
filename
Type: System.String
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 47
Script Engine Class Library User Guide
IConventionsTableResults.store_as_html Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store_as_html(
string filename,
string xsltTransformationFilename = null
)
Parameters
filename
Type: System.String
xsltTransformationFilename (Optional)
Type: System.String
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
48 EIO0000003799
Script Engine Class Library User Guide
IConventionsTableResults.store_as_xml Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store_as_xml(
string filename
)
Parameters
filename
Type: System.String
See Also
IConventionsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 49
Script Engine Class Library User Guide
IMetricsTableResults Interface
Scripting API with code analysis results of metrics table.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IMetricsTableResults
Properties
Name Description
IMetricsTableResults.analyser_version Retrieves the analyser version.
Property
IMetricsTableResults.analysis_finished_at Retrieves the analysis finished time.
Property
IMetricsTableResults.analysis_started_at Retrieves the analysis start time.
Property
IMetricsTableResults.columns Property Retrieves the analysis results columns.
IMetricsTableResults.message Property Retrieves the final analysis message
(as text).
IMetricsTableResults.project_path Retrieves the analyzed project path.
Property
IMetricsTableResults.rows Property Retrieves the analysis results rows.
IMetricsTableResults.successful Property Retrieves a value indicating whether
this IMetricsTableResults was
successful.
50 EIO0000003799
Script Engine Class Library User Guide
Methods
Name Description
IMetricsTableResults.store_as_csv Stores the analysis results as csv.
Method
IMetricsTableResults.store_as_html Stores the analysis results as html.
Method
IMetricsTableResults.store_as_xml Stores the analysis results as xml.
Method
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 51
Script Engine Class Library User Guide
IMetricsTableResults.IMetricsTableResults Properties
The IMetricsTableResults type exposes the following members.
Properties
Name Description
analyser_version Retrieves the analyser version.
analysis_finished_at Retrieves the analysis finished time.
analysis_started_at Retrieves the analysis start time.
columns Retrieves the analysis results columns.
message Retrieves the final analysis message (as text).
project_path Retrieves the analyzed project path.
rows Retrieves the analysis results rows.
successful Retrieves a value indicating whether this
IMetricsTableResults was successful.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
52 EIO0000003799
Script Engine Class Library User Guide
IMetricsTableResults.analyser_version Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string analyser_version { get; }
Property Value
Type: String
The analyzer version.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 53
Script Engine Class Library User Guide
IMetricsTableResults.analysis_finished_at Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string analysis_finished_at { get; }
Property Value
Type: String
The analysis finished time.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
54 EIO0000003799
Script Engine Class Library User Guide
IMetricsTableResults.analysis_started_at Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string analysis_started_at { get; }
Property Value
Type: String
The analysis start time.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 55
Script Engine Class Library User Guide
IMetricsTableResults.columns Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string[] columns { get; }
Property Value
Type: String[]
The analysis results columns.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
56 EIO0000003799
Script Engine Class Library User Guide
IMetricsTableResults.message Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string message { get; }
Property Value
Type: String
The message.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 57
Script Engine Class Library User Guide
IMetricsTableResults.project_path Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string project_path { get; }
Property Value
Type: String
The project_path.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
58 EIO0000003799
Script Engine Class Library User Guide
IMetricsTableResults.rows Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string[][] rows { get; }
Property Value
Type: String[ ][ ]
The analysis results rows.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 59
Script Engine Class Library User Guide
IMetricsTableResults.successful Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool successful { get; }
Property Value
Type: Boolean
true if successful; otherwise, false.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
60 EIO0000003799
Script Engine Class Library User Guide
IMetricsTableResults.IMetricsTableResults Methods
The IMetricsTableResults type exposes the following members.
Methods
Name Description
store_as_csv Stores the analysis results as csv.
store_as_html Stores the analysis results as html.
store_as_xml Stores the analysis results as xml.
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 61
Script Engine Class Library User Guide
IMetricsTableResults.store_as_csv Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store_as_csv(
string filename
)
Parameters
filename
Type: System.String
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
62 EIO0000003799
Script Engine Class Library User Guide
IMetricsTableResults.store_as_html Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store_as_html(
string filename,
string xsltTransformationFilename = null
)
Parameters
filename
Type: System.String
xsltTransformationFilename (Optional)
Type: System.String
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 63
Script Engine Class Library User Guide
IMetricsTableResults.store_as_xml Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store_as_xml(
string filename
)
Parameters
filename
Type: System.String
See Also
IMetricsTableResults Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
64 EIO0000003799
Script Engine Class Library User Guide
IScriptAnalysisProject Interface
Scripting API for Machine Advisor Code Analysis with details of analysis
project on cloud.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptAnalysisProject
Properties
Name Description
IScriptAnalysisProject.description Retrieves the description.
Property
IScriptAnalysisProject.id Property Retrieves the identifier.
IScriptAnalysisProject.name Retrieves the name.
Property
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 65
Script Engine Class Library User Guide
IScriptAnalysisProject.IScriptAnalysisProject Properties
The IScriptAnalysisProject type exposes the following members.
Properties
Name Description
description Retrieves the description.
id Retrieves the identifier.
name Retrieves the name.
See Also
IScriptAnalysisProject Interface
Chapter 1 SchneiderElectric.Scripting.CodeAnalysis Namespace
66 EIO0000003799
Script Engine Class Library User Guide
IScriptAnalysisProject.description Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string description { get; }
Property Value
Type: String
The description.
See Also
IScriptAnalysisProject Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 67
Script Engine Class Library User Guide
IScriptAnalysisProject.id Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
Guid id { get; }
Property Value
Type: Guid
The identifier.
See Also
IScriptAnalysisProject Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
68 EIO0000003799
Script Engine Class Library User Guide
IScriptAnalysisProject.name Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string name { get; }
Property Value
Type: String
The name.
See Also
IScriptAnalysisProject Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 69
Script Engine Class Library User Guide
IScriptApplicationExtension Interface
Scripting API to extend the application script object for Code Analysis
operation access (for this application).
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptApplicationExtension
Properties
Name Description
code_analysis Access to code_analysis scripting API.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
70 EIO0000003799
Script Engine Class Library User Guide
IScriptApplicationExtension.IScriptApplicationExtension Properties
The IScriptApplicationExtension type exposes the following members.
Properties
Name Description
IScriptApplicationExtension.code_analysis Access to code_analysis scripting API.
Property
See Also
IScriptApplicationExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 71
Script Engine Class Library User Guide
IScriptApplicationExtension.code_analysis Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptCodeAnalysis code_analysis { get; }
Property Value
Type: IScriptCodeAnalysis
The code_analysis scripting API.
See Also
IScriptApplicationExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
72 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConfiguration Interface
Scripting API for cloud connector configuration.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCloudConfiguration
Properties
Name Description
IScriptCloudConfiguration.data_endpoint Property Retrieves the
data endpoint.
IScriptCloudConfiguration.dataset Property Retrieves or
sets the
dataset name.
IScriptCloudConfiguration.http_backend_type Property Retrieves or
sets the triple
storage http
backend type.
IScriptCloudConfiguration.max_upload_triple_count_per_request Retrieves or
Property sets the
maximum
upload triple
count per
request.
EIO0000003799 73
Script Engine Class Library User Guide
74 EIO0000003799
Script Engine Class Library User Guide
Methods
Name Description
IScriptCloudConfiguration.reset Resets the current configuration
Method
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 75
Script Engine Class Library User Guide
IScriptCloudConfiguration.IScriptCloudConfiguration Properties
The IScriptCloudConfiguration type exposes the following members.
Properties
Name Description
data_endpoint Retrieves the data endpoint.
dataset Retrieves or sets the dataset name.
http_backend_type Retrieves or sets the triple storage http
backend type.
max_upload_triple_count_per_request Retrieves or sets the maximum upload
triple count per request.
query_endpoint Retrieves the query endpoint. Will be
combined with server Uri.
relative_data_endpoint Retrieves or sets the data endpoint.
relative_query_endpoint Retrieves or sets the query endpoint.
Will be combined with server UUriRL.
relative_sparql_endpoint Retrieves or sets the data endpoint.
relative_update_endpoint Retrieves or sets the update endpoint.
Will be combined with server Uri.
server_Uri Retrieves or sets the server Uri for
Web based RDF backend.
sparql_endpoint Retrieves the data endpoint.
update_endpoint Retrieves the update endpoint. Will be
combined with server Uri.
update_execution_timeout Retrieves or sets the update execution
timeout.
76 EIO0000003799
Script Engine Class Library User Guide
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 77
Script Engine Class Library User Guide
IScriptCloudConfiguration.data_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string data_endpoint { get; }
Property Value
Type: String
The data endpoint.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
78 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConfiguration.dataset Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string dataset { get; set; }
Property Value
Type: String
The dataset name.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 79
Script Engine Class Library User Guide
IScriptCloudConfiguration.http_backend_type Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
HttpBackendTypes http_backend_type { get; set; }
Property Value
Type: HttpBackendTypes
The triple storage http backend type.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
80 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConfiguration.max_upload_triple_count_per_request Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
int max_upload_triple_count_per_request { get; set; }
Property Value
Type: Int32
The maximum upload triple count per request.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 81
Script Engine Class Library User Guide
IScriptCloudConfiguration.query_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string query_endpoint { get; }
Property Value
Type: String
The query endpoint. Will be combined with server Uri.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
82 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConfiguration.relative_data_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string relative_data_endpoint { get; set; }
Property Value
Type: String
The data endpoint.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 83
Script Engine Class Library User Guide
IScriptCloudConfiguration.relative_query_endpoint Property
Retrieves or sets the query endpoint. Will be combined with server UUriRL.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string relative_query_endpoint { get; set; }
Property Value
Type: String
The query endpoint. Will be combined with server Uri.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
84 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConfiguration.relative_sparql_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string relative_sparql_endpoint { get; set; }
Property Value
Type: String
The data endpoint.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 85
Script Engine Class Library User Guide
IScriptCloudConfiguration.relative_update_endpoint Property
Retrieves or sets the update endpoint. Will be combined with server Uri.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string relative_update_endpoint { get; set; }
Property Value
Type: String
The update endpoint. Will be combined with server Uri.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
86 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConfiguration.server_Uri Property
Retrieves or sets the server Uri for Web based RDF backend.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string server_Uri { get; set; }
Property Value
Type: String
The server Uri for Web based RDF backend.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 87
Script Engine Class Library User Guide
IScriptCloudConfiguration.sparql_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string sparql_endpoint { get; }
Property Value
Type: String
The data endpoint.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
88 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConfiguration.update_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string update_endpoint { get; }
Property Value
Type: String
The update endpoint. Will be combined with server Uri.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 89
Script Engine Class Library User Guide
IScriptCloudConfiguration.update_execution_timeout Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
long update_execution_timeout { get; set; }
Property Value
Type: Int64
The update execution timeout.
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
90 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConfiguration.IScriptCloudConfiguration Methods
The IScriptCloudConfiguration type exposes the following members.
Methods
Name Description
reset Resets the current configuration
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 91
Script Engine Class Library User Guide
IScriptCloudConfiguration.reset Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void reset()
See Also
IScriptCloudConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
92 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConnector Interface
Scripting API for cloud connector.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCloudConnector
Properties
Name Description
IScriptCloudConnector.configuration Retrieves the code analysis cloud
Property configuration.
Methods
Name Description
IScriptCloudConnector.upload_to_triple_storage Uploads the analysis results to a
Method triple storage.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 93
Script Engine Class Library User Guide
IScriptCloudConnector.IScriptCloudConnector Properties
The IScriptCloudConnector type exposes the following members.
Properties
Name Description
configuration Retrieves the code analysis cloud configuration.
See Also
IScriptCloudConnector Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
94 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConnector.configuration Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptCloudConfiguration configuration { get; }
Property Value
Type: IScriptCloudConfiguration
The code analysis cloud configuration.
See Also
IScriptCloudConnector Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 95
Script Engine Class Library User Guide
IScriptCloudConnector.IScriptCloudConnector Methods
The IScriptCloudConnector type exposes the following members.
Methods
Name Description
upload_to_triple_storage Uploads the analysis results to a triple storage.
See Also
IScriptCloudConnector Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
96 EIO0000003799
Script Engine Class Library User Guide
IScriptCloudConnector.upload_to_triple_storage Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin (in
SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
void upload_to_triple_storage(
string snapshot_name
)
Parameters
snapshot_name
Type: System.String
See Also
IScriptCloudConnector Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 97
Script Engine Class Library User Guide
IScriptCodeAnalysis Interface
Interface that describes the script engine of code analysis
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCodeAnalysis
Properties
Name Description
IScriptCodeAnalysis.cloud_connector Retrieves the cloud connector.
Property
IScriptCodeAnalysis.configuration Retrieves the code analysis configuration.
Property
IScriptCodeAnalysis.conventions Retrieves the conventions scripting API.
Property
IScriptCodeAnalysis.metrics Property Retrieves the metrics scripting API.
IScriptCodeAnalysis.portal Property Retrieves the Machine Advisor Code
Analysis portal API.
IScriptCodeAnalysis.query_repository Retrieves the query repository scripting
Property API.
98 EIO0000003799
Script Engine Class Library User Guide
Methods
Name Description
IScriptCodeAnalysis.clear Method Clears all the Dependency Models
(Analysis Controller and Query
Engines).
IScriptCodeAnalysis.perform_full_analysis Perform full code analysis.
Method
IScriptCodeAnalysis.store_dependency_model Stores the dependency model to
Method file.
IScriptCodeAnalysis.store_ttl Method Stores analysis results as ttl file.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 99
Script Engine Class Library User Guide
IScriptCodeAnalysis.IScriptCodeAnalysis Properties
The IScriptCodeAnalysis type exposes the following members.
Properties
Name Description
cloud_connector Retrieves the cloud connector.
configuration Retrieves the code analysis configuration.
conventions Retrieves the conventions scripting API.
metrics Retrieves the metrics scripting API.
portal Retrieves the Machine Advisor Code Analysis portal API.
query_repository Retrieves the query repository scripting API.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
100 EIO0000003799
Script Engine Class Library User Guide
IScriptCodeAnalysis.cloud_connector Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptCloudConnector cloud_connector { get; }
Property Value
Type: IScriptCloudConnector
The cloud connector.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 101
Script Engine Class Library User Guide
IScriptCodeAnalysis.configuration Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptConfiguration configuration { get; }
Property Value
Type: IScriptConfiguration
The code analysis configuration.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
102 EIO0000003799
Script Engine Class Library User Guide
IScriptCodeAnalysis.conventions Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptConventions conventions { get; }
Property Value
Type: IScriptConventions
The conventions scripting API.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 103
Script Engine Class Library User Guide
IScriptCodeAnalysis.metrics Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptMetrics metrics { get; }
Property Value
Type: IScriptMetrics
The metrics scripting API.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
104 EIO0000003799
Script Engine Class Library User Guide
IScriptCodeAnalysis.portal Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptPortal portal { get; }
Property Value
Type: IScriptPortal
The Machine Advisor Code Analysis portal API.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 105
Script Engine Class Library User Guide
IScriptCodeAnalysis.query_repository Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQueryRepository query_repository { get; }
Property Value
Type: IScriptQueryRepository
The query repository scripting API.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
106 EIO0000003799
Script Engine Class Library User Guide
IScriptCodeAnalysis.IScriptCodeAnalysis Methods
The IScriptCodeAnalysis type exposes the following members.
Methods
Name Description
clear Clears all the Dependency Models (Analysis Controller
and Query Engines).
perform_full_analysis Perform full code analysis.
store_dependency_model Stores the dependency model to file.
store_ttl Stores analysis results as ttl file.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 107
Script Engine Class Library User Guide
IScriptCodeAnalysis.clear Method
Clears all the Dependency Models (Analysis Controller and Query Engines).
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void clear()
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
108 EIO0000003799
Script Engine Class Library User Guide
IScriptCodeAnalysis.perform_full_analysis Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void perform_full_analysis()
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 109
Script Engine Class Library User Guide
IScriptCodeAnalysis.store_dependency_model Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store_dependency_model(
string filename
)
Parameters
filename
Type: System.String
The filename.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
110 EIO0000003799
Script Engine Class Library User Guide
IScriptCodeAnalysis.store_ttl Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store_ttl(
string filename
)
Parameters
filename
Type: System.String
The filename.
See Also
IScriptCodeAnalysis Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 111
Script Engine Class Library User Guide
IScriptCompany Interface
Scripting API for Machine Advisor Code Analysis with details of company.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCompany
Properties
Name Description
IScriptCompany.city Retrieves the city.
Property
IScriptCompany.id Retrieves the identifier.
Property
IScriptCompany.name Retrieves the name.
Property
IScriptCompany.street Retrieves the street.
Property
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
112 EIO0000003799
Script Engine Class Library User Guide
IScriptCompany.IScriptCompany Properties
The IScriptCompany type exposes the following members.
Properties
Name Description
city Retrieves the city.
id Retrieves the identifier.
name Retrieves the name.
street Retrieves the street.
See Also
IScriptCompany Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 113
Script Engine Class Library User Guide
IScriptCompany.city Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string city { get; }
Property Value
Type: String
The city.
See Also
IScriptCompany Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
114 EIO0000003799
Script Engine Class Library User Guide
IScriptCompany.id Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
Guid id { get; }
Property Value
Type: Guid
The identifier.
See Also
IScriptCompany Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 115
Script Engine Class Library User Guide
IScriptCompany.name Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string name { get; }
Property Value
Type: String
The name.
See Also
IScriptCompany Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
116 EIO0000003799
Script Engine Class Library User Guide
IScriptCompany.street Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string street { get; }
Property Value
Type: String
The street.
See Also
IScriptCompany Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 117
Script Engine Class Library User Guide
IScriptConfiguration Interface
Scripting API to configure the code analysis query engine and code analyser.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptConfiguration
Properties
Name Description
IScriptConfiguration.consider_check_functions Property Retrieves or sets
a value indicating
whether to
consider check
functions.
IScriptConfiguration.consider_devices Property Retrieves or sets
a value indicating
whether to
consider devices.
IScriptConfiguration.consider_implicit_methods Property Retrieves or sets
a value indicating
whether to
consider implicit
methods.
IScriptConfiguration.consider_library_analysis_in_deep Retrieves or sets
Property a value indicating
118 EIO0000003799
Script Engine Class Library User Guide
whether to
consider library
analysis in depth.
IScriptConfiguration.consider_property_accessor_functions Retrieves or sets
Property a value indicating
whether to
consider property
accessor
functions.
IScriptConfiguration.data_endpoint Property Retrieves the
data endpoint.
IScriptConfiguration.dataset Property Retrieves or sets
the dataset
name.
IScriptConfiguration.graph_name Property Sets the graph
name.
IScriptConfiguration.max_upload_triple_count_per_request Retrieves or sets
Property the maximum
upload triple
count per
request.
IScriptConfiguration.query_endpoint Property Retrieves the
query endpoint.
Will be combined
with server Uri.
IScriptConfiguration.query_execution_timeout Property Retrieves or sets
the query
execution
timeout.
IScriptConfiguration.relative_data_endpoint Property Retrieves or sets
the data
endpoint.
EIO0000003799 119
Script Engine Class Library User Guide
120 EIO0000003799
Script Engine Class Library User Guide
execution
timeout.
Methods
Name Description
IScriptConfiguration.reset Resets the current configuration
Method
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 121
Script Engine Class Library User Guide
IScriptConfiguration.IScriptConfiguration Properties
The IScriptConfiguration type exposes the following members.
Properties
Name Description
consider_check_functions Retrieves or sets a value indicating
whether to consider check functions.
consider_devices Retrieves or sets a value indicating
whether to consider devices.
consider_implicit_methods Retrieves or sets a value indicating
whether to consider implicit
methods.
consider_library_analysis_in_deep Retrieves or sets a value indicating
whether to consider library analysis
in depth.
consider_property_accessor_functions Retrieves or sets a value indicating
whether to consider property
accessor functions.
data_endpoint Retrieves the data endpoint.
dataset Retrieves or sets the dataset name.
graph_name Sets the graph name.
max_upload_triple_count_per_request Retrieves or sets the maximum
upload triple count per request.
query_endpoint Retrieves the query endpoint. Will be
combined with server Uri.
query_execution_timeout Retrieves or sets the query execution
timeout.
relative_data_endpoint Retrieves or sets the data endpoint.
122 EIO0000003799
Script Engine Class Library User Guide
EIO0000003799 123
Script Engine Class Library User Guide
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
124 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.consider_check_functions Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool consider_check_functions { get; set; }
Property Value
Type: Boolean
true if to consider check functions; otherwise, false.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 125
Script Engine Class Library User Guide
IScriptConfiguration.consider_devices Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool consider_devices { get; set; }
Property Value
Type: Boolean
true if to consider devices; otherwise, false.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
126 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.consider_implicit_methods Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool consider_implicit_methods { get; set; }
Property Value
Type: Boolean
true if to consider implicit methods; otherwise, false.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 127
Script Engine Class Library User Guide
IScriptConfiguration.consider_library_analysis_in_deep Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool consider_library_analysis_in_deep { get; set; }
Property Value
Type: Boolean
true if to consider library analysis in deep; otherwise, false.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
128 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.consider_property_accessor_functions Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool consider_property_accessor_functions { get; set; }
Property Value
Type: Boolean
true if to consider property accessor functions; otherwise, false.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 129
Script Engine Class Library User Guide
IScriptConfiguration.data_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string data_endpoint { get; }
Property Value
Type: String
The data endpoint.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
130 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.dataset Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string dataset { get; set; }
Property Value
Type: String
The dataset name.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 131
Script Engine Class Library User Guide
IScriptConfiguration.graph_name Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string graph_name { get; set; }
Property Value
Type: String
The graph_Uri.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
132 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.max_upload_triple_count_per_request Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
int max_upload_triple_count_per_request { get; set; }
Property Value
Type: Int32
The maximum upload triple count per request.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 133
Script Engine Class Library User Guide
IScriptConfiguration.query_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string query_endpoint { get; }
Property Value
Type: String
The query endpoint. Will be combined with server Uri.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
134 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.query_execution_timeout Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
long query_execution_timeout { get; set; }
Property Value
Type: Int64
The query execution timeout.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 135
Script Engine Class Library User Guide
IScriptConfiguration.relative_data_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string relative_data_endpoint { get; set; }
Property Value
Type: String
The data endpoint.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
136 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.relative_query_endpoint Property
Retrieves or sets the query endpoint. Will be combined with server UUriRL.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string relative_query_endpoint { get; set; }
Property Value
Type: String
The query endpoint. Will be combined with server Uri.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 137
Script Engine Class Library User Guide
IScriptConfiguration.relative_sparql_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string relative_sparql_endpoint { get; set; }
Property Value
Type: String
The data endpoint.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
138 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.relative_update_endpoint Property
Retrieves or sets the update endpoint. Will be combined with server Uri.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string relative_update_endpoint { get; set; }
Property Value
Type: String
The update endpoint. Will be combined with server Uri.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 139
Script Engine Class Library User Guide
IScriptConfiguration.server_Uri Property
Retrieves or sets the server Uri for Web based RDF backend.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string server_Uri { get; set; }
Property Value
Type: String
The server Uri for Web based RDF backend.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
140 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.sparql_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string sparql_endpoint { get; }
Property Value
Type: String
The data endpoint.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 141
Script Engine Class Library User Guide
IScriptConfiguration.thresshold_for_out_proc_backend_usage Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
int thresshold_for_out_proc_backend_usage { get; set; }
Property Value
Type: Int32
The threshold for out process backend usage.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
142 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.triple_storage_backend_type Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
TripleStorageBackendTypes triple_storage_backend_type { get;
set; }
Property Value
Type: TripleStorageBackendTypes
The triple storage backend type.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 143
Script Engine Class Library User Guide
IScriptConfiguration.update_endpoint Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string update_endpoint { get; }
Property Value
Type: String
The update endpoint. Will be combined with server Uri.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
144 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.update_execution_timeout Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
long update_execution_timeout { get; set; }
Property Value
Type: Int64
The update execution timeout.
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 145
Script Engine Class Library User Guide
IScriptConfiguration.IScriptConfiguration Methods
The IScriptConfiguration type exposes the following members.
Methods
Name Description
reset Resets the current configuration
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
146 EIO0000003799
Script Engine Class Library User Guide
IScriptConfiguration.reset Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void reset()
See Also
IScriptConfiguration Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 147
Script Engine Class Library User Guide
IScriptConventions Interface
Scripting API to build convention table results.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptConventions
Methods
Name Description
IScriptConventions.conventions_table Starts the full Code Analysis and
Method returns the conventions table for
requested query chains.
IScriptConventions.full_conventions_table Starts the full Code Analysis and
Method returns the full conventions table.
IScriptConventions.get_all_conventions Returns all available and valid
Method convention names.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
148 EIO0000003799
Script Engine Class Library User Guide
IScriptConventions.IScriptConventions Methods
The IScriptConventions type exposes the following members.
Methods
Name Description
conventions_table Starts the full Code Analysis and returns the conventions
table for requested query chains.
full_conventions_table Starts the full Code Analysis and returns the full
conventions table.
get_all_conventions Returns all available and valid convention names.
See Also
IScriptConventions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 149
Script Engine Class Library User Guide
IScriptConventions.conventions_table Method
Starts the full Code Analysis and returns the conventions table for requested
query chains.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IConventionsTableResults conventions_table(
string[] query_chain_names
)
Parameters
query_chain_names
Type: System.String[ ]
Return Value
Type: IConventionsTableResults
Conventions table result
See Also
IScriptConventions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
150 EIO0000003799
Script Engine Class Library User Guide
IScriptConventions.full_conventions_table Method
Starts the full Code Analysis and returns the full conventions table.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IConventionsTableResults full_conventions_table()
Return Value
Type: IConventionsTableResults
Conventions table result
See Also
IScriptConventions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 151
Script Engine Class Library User Guide
IScriptConventions.get_all_conventions Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string[] get_all_conventions()
Return Value
Type: String[ ]
All conventions
See Also
IScriptConventions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
152 EIO0000003799
Script Engine Class Library User Guide
IScriptConventionsObject Interface
Scripting API attached to conventions table objects.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptConventionsObject
Methods
Name Description
IScriptConventionsObject.conventions_table Starts the full Code Analysis and
Method returns the conventions table for
requested query chains.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 153
Script Engine Class Library User Guide
IScriptConventionsObject.IScriptConventionsObject Methods
The IScriptConventionsObject type exposes the following members.
Methods
Name Description
conventions_table Starts the full Code Analysis and returns the conventions
table for requested query chains.
See Also
IScriptConventionsObject Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
154 EIO0000003799
Script Engine Class Library User Guide
IScriptConventionsObject.conventions_table Method
Starts the full Code Analysis and returns the conventions table for requested
query chains.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IConventionsTableResults conventions_table()
Return Value
Type: IConventionsTableResults
Conventions table result.
See Also
IScriptConventionsObject Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 155
Script Engine Class Library User Guide
IScriptCreateBlockListExtension Interface
Scripting API to extend an object for code analysis block list creation.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCreateBlockListExtension
Methods
Name Description
IScriptCreateBlockListExtension.create_code_analysis_block_list Creates a code
Method analysis block
list with the
specified name.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
156 EIO0000003799
Script Engine Class Library User Guide
IScriptCreateBlockListExtension.IScriptCreateBlockListExtension Methods
The IScriptCreateBlockListExtension type exposes the following members.
Methods
Name Description
create_code_analysis_block_list Creates a code analysis block list with the
specified name.
See Also
IScriptCreateBlockListExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 157
Script Engine Class Library User Guide
IScriptCreateBlockListExtension.create_code_analysis_block_list Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject>
create_code_analysis_block_list()
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created code analysis block list.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an
object with the same name already exists within the same namespace, or
the object cannot be created under the parent.
See Also
IScriptCreateBlockListExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
158 EIO0000003799
Script Engine Class Library User Guide
IScriptCreateConventionsTableExtension Interface
Scripting API to extend an object for code analysis conventions table
creation.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCreateConventionsTableExtension
Methods
Name Descriptio
n
IScriptCreateConventionsTableExtension.create_code_analysis_conventi Creates a
ons_table Method code
analysis
conventio
ns table
with the
specified
name.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 159
Script Engine Class Library User Guide
IScriptCreateConventionsTableExtension.IScriptCreateConventionsTableEx
tension Methods
The IScriptCreateConventionsTableExtension type exposes the following
members.
Methods
Name Description
create_code_analysis_conventions_table Creates a code analysis conventions
table with the specified name.
See Also
IScriptCreateConventionsTableExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
160 EIO0000003799
Script Engine Class Library User Guide
IScriptCreateConventionsTableExtension.create_code_analysis_conventions
_table Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject>
create_code_analysis_conventions_table(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created code analysis conventions table.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an
object with the same name already exists within the same namespace, or
the object cannot be created under the parent.
EIO0000003799 161
Script Engine Class Library User Guide
See Also
IScriptCreateConventionsTableExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
162 EIO0000003799
Script Engine Class Library User Guide
IScriptCreateDependencyViewExtension Interface
Scripting API to extend an object for code analysis dependency view
creation.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCreateDependencyViewExtension
Methods
Name Descriptio
n
IScriptCreateDependencyViewExtension.create_code_analysis_depende Creates a
ncy_view Method code
analysis
dependen
cy view
with the
specified
name.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 163
Script Engine Class Library User Guide
IScriptCreateDependencyViewExtension.IScriptCreateDependencyViewExt
ension Methods
The IScriptCreateDependencyViewExtension type exposes the following
members.
Methods
Name Description
create_code_analysis_dependency_view Creates a code analysis dependency
view with the specified name.
See Also
IScriptCreateDependencyViewExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
164 EIO0000003799
Script Engine Class Library User Guide
IScriptCreateDependencyViewExtension.create_code_analysis_dependency
_view Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_code_analysis_dependency_view(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created code analysis dependency view.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
EIO0000003799 165
Script Engine Class Library User Guide
See Also
IScriptCreateDependencyViewExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
166 EIO0000003799
Script Engine Class Library User Guide
IScriptCreateManagerObjectExtension Interface
Scripting API to extend an object for code analysis manager object creation.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCreateManagerObjectExtension
Methods
Name Descriptio
n
IScriptCreateManagerObjectExtension.create_code_analysis_manager_obj Creates a
ect Method code
analysis
manager
object.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 167
Script Engine Class Library User Guide
IScriptCreateManagerObjectExtension.IScriptCreateManagerObjectExtensi
on Methods
The IScriptCreateManagerObjectExtension type exposes the following
members.
Methods
Name Description
create_code_analysis_manager_object Creates a code analysis manager object.
See Also
IScriptCreateManagerObjectExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
168 EIO0000003799
Script Engine Class Library User Guide
IScriptCreateManagerObjectExtension.create_code_analysis_manager_obje
ct Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_code_analysis_manager_object()
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created code analysis manager object.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
See Also
IScriptCreateManagerObjectExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 169
Script Engine Class Library User Guide
IScriptCreateMetricsTableExtension Interface
Scripting API to extend an object for code analysis metrics table creation.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptCreateMetricsTableExtension
Methods
Name Description
IScriptCreateMetricsTableExtension.create_code_analysis_metrics_table Creates a
Method code analysis
metrics table
with the
specified
name.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
170 EIO0000003799
Script Engine Class Library User Guide
IScriptCreateMetricsTableExtension.IScriptCreateMetricsTableExtension
Methods
The IScriptCreateMetricsTableExtension type exposes the following
members.
Methods
Name Description
create_code_analysis_metrics_table Creates a code analysis metrics table with the
specified name.
See Also
IScriptCreateMetricsTableExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 171
Script Engine Class Library User Guide
IScriptCreateMetricsTableExtension.create_code_analysis_metrics_table
Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_code_analysis_metrics_table(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created code analysis metrics table.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
172 EIO0000003799
Script Engine Class Library User Guide
See Also
IScriptCreateMetricsTableExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 173
Script Engine Class Library User Guide
IScriptMetrics Interface
Scripting API to build metrics table results.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptMetrics
Methods
Name Description
IScriptMetrics.full_metrics_table Starts the full Code Analysis and returns the full
Method metrics table.
get_all_metrics Returns all available and valid metrics names.
metrics_table Starts the full Code Analysis and returns the
metrics table for requested query chains.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
174 EIO0000003799
Script Engine Class Library User Guide
IScriptMetrics.IScriptMetrics Methods
The IScriptMetrics type exposes the following members.
Methods
Name Description
full_metrics_table Starts the full Code Analysis and returns the full
metrics table.
IScriptMetrics.get_all_metrics Returns all available and valid metrics names.
Method
IScriptMetrics.metrics_table Starts the full Code Analysis and returns the metrics
Method table for requested query chains.
See Also
IScriptMetrics Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 175
Script Engine Class Library User Guide
IScriptMetrics.full_metrics_table Method
Starts the full Code Analysis and returns the full metrics table.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IMetricsTableResults full_metrics_table()
Return Value
Type: IMetricsTableResults
The metrics result table.
See Also
IScriptMetrics Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
176 EIO0000003799
Script Engine Class Library User Guide
IScriptMetrics.get_all_metrics Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string[] get_all_metrics()
Return Value
Type: String[ ]
All available metric queries
See Also
IScriptMetrics Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 177
Script Engine Class Library User Guide
IScriptMetrics.metrics_table Method
Starts the full Code Analysis and returns the metrics table for requested
query chains.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IMetricsTableResults metrics_table(
string[] query_chain_names
)
Parameters
query_chain_names
Type: System.String[ ]
Return Value
Type: IMetricsTableResults
The metrics result table
See Also
IScriptMetrics Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
178 EIO0000003799
Script Engine Class Library User Guide
IScriptMetricsObject Interface
Scripting API attached to metrics table objects.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptMetricsObject
Methods
Name Description
IScriptMetricsObject.metrics_table Starts the full Code Analysis and returns the
Method metrics table for requested query chains.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 179
Script Engine Class Library User Guide
IScriptMetricsObject.IScriptMetricsObject Methods
The IScriptMetricsObject type exposes the following members.
Methods
Name Description
metrics_table Starts the full Code Analysis and returns the metrics table for requested
query chains.
See Also
IScriptMetricsObject Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
180 EIO0000003799
Script Engine Class Library User Guide
IScriptMetricsObject.metrics_table Method
Starts the full Code Analysis and returns the metrics table for requested
query chains.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IMetricsTableResults metrics_table()
Return Value
Type: IMetricsTableResults
The metrics result table.
See Also
IScriptMetricsObject Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 181
Script Engine Class Library User Guide
IScriptPortal Interface
Scripting API for Machine Advisor Code Analysis cloud portal.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptPortal
Properties
Name Description
IScriptPortal.analysis_project Retrieves or sets the current analysis project.
Property
IScriptPortal.analysis_projects Retrieves the available analysis_projects
Property
IScriptPortal.companies Property Retrieves the available companies
IScriptPortal.company Property Retrieves or sets the current company.
IScriptPortal.queries Property Retrieves the Machine Advisor Code Analysis
queries API.
IScriptPortal.snapshots Property Retrieves the Machine Advisor Code Analysis
snapshots API.
IScriptPortal.URL Property Configures the URL for Machine Advisor Code
Analysis cloud portal.
Methods
182 EIO0000003799
Script Engine Class Library User Guide
Name Description
IScriptPortal.login Method Performs the login with the specified access token.
IScriptPortal.logout Method Performs logout.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 183
Script Engine Class Library User Guide
IScriptPortal.IScriptPortal Properties
The IScriptPortal type exposes the following members.
Properties
Name Description
analysis_project Retrieves or sets the current analysis project.
analysis_projects Retrieves the available analysis_projects.
companies Retrieves the available companies.
company Retrieves or sets the current company.
queries Retrieves the Machine Advisor Code Analysis queries API.
snapshots Retrieves the Machine Advisor Code Analysis snapshots API.
URL Configures the URL for Machine Advisor Code Analysis cloud portal.
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
184 EIO0000003799
Script Engine Class Library User Guide
IScriptPortal.analysis_project Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptAnalysisProject analysis_project { get; set; }
Property Value
Type: IScriptAnalysisProject
The current analysis project.
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 185
Script Engine Class Library User Guide
IScriptPortal.analysis_projects Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptAnalysisProject[] analysis_projects { get; }
Property Value
Type: IScriptAnalysisProject[]
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
186 EIO0000003799
Script Engine Class Library User Guide
IScriptPortal.companies Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptCompany[] companies { get; }
Property Value
Type: IScriptCompany[ ]
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 187
Script Engine Class Library User Guide
IScriptPortal.company Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptCompany company { get; set; }
Property Value
Type: IScriptCompany
The current company.
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
188 EIO0000003799
Script Engine Class Library User Guide
IScriptPortal.queries Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQueries queries { get; }
Property Value
Type: IScriptQueries
The Machine Advisor Code Analysis queries API.
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 189
Script Engine Class Library User Guide
IScriptPortal.snapshots Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptSnapshots snapshots { get; }
Property Value
Type: IScriptSnapshots
The Machine Advisor Code Analysis snapshots API.
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
190 EIO0000003799
Script Engine Class Library User Guide
IScriptPortal.URL Property
Configures the URL for Machine Advisor Code Analysis cloud portal.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string URL { get; set; }
Property Value
Type: String
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 191
Script Engine Class Library User Guide
IScriptPortal.IScriptPortal Methods
The IScriptPortal type exposes the following members.
Methods
Name Description
login Performs the login with the specified access token.
logout Performs logout.
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
192 EIO0000003799
Script Engine Class Library User Guide
IScriptPortal.login Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void login(
string access_token = null
)
Parameters
access_token (Optional)
Type: System.String
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 193
Script Engine Class Library User Guide
IScriptPortal.logout Method
Performs logout.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void logout()
See Also
IScriptPortal Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
194 EIO0000003799
Script Engine Class Library User Guide
IScriptProjectExtension Interface
Scripting API to extend the project script object for Code Analysis operation
access (for POU space).
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptProjectExtension
Properties
Name Description
IScriptProjectExtension.code_analysis Property Access to code_analysis scripting API.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 195
Script Engine Class Library User Guide
IScriptProjectExtension.IScriptProjectExtension Properties
The IScriptProjectExtension type exposes the following members.
Properties
Name Description
code_analysis Access to code_analysis scripting API.
See Also
IScriptProjectExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
196 EIO0000003799
Script Engine Class Library User Guide
IScriptProjectExtension.code_analysis Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptCodeAnalysis code_analysis { get; }
Property Value
Type: IScriptCodeAnalysis
The code_analysis scripting API.
See Also
IScriptProjectExtension Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 197
Script Engine Class Library User Guide
IScriptQueries Interface
Scripting API for Machine Advisor Code Analysis queries.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptQueries
Methods
Name Description
IScriptQueries.upload Method Upload specified query chain (and its queries)
to Machine Advisor Code Analysis cloud.
upload(IEnumerable(IScriptQueryChain)) Upload specified query chains (and its
queries) to Machine Advisor Code Analysis
cloud.
upload_all Upload all query chains (and its queries) to
Machine Advisor Code Analysis cloud.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
198 EIO0000003799
Script Engine Class Library User Guide
IScriptQueries.IScriptQueries Methods
The IScriptQueries type exposes the following members.
Methods
Name Description
upload(IScriptQueryChain) Upload specified query chain (and its queries) to
Machine Advisor Code Analysis cloud.
IScriptQueries.upload Method Upload specified query chains (and its queries)
(IScriptQueryChain) to Machine Advisor Code Analysis cloud.
IScriptQueries.upload_all Method Upload all query chains (and its queries) to
Machine Advisor Code Analysis cloud.
See Also
IScriptQueries Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 199
Script Engine Class Library User Guide
IScriptQueries.upload Method
Overload List
Name Description
upload(IScriptQueryChain) Upload specified query chain (and its queries)
to Machine Advisor Code Analysis cloud.
upload(IEnumerable(IScriptQueryChain)) Upload specified query chains (and its
queries) to Machine Advisor Code Analysis
cloud.
See Also
IScriptQueries Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
200 EIO0000003799
Script Engine Class Library User Guide
Upload specified query chain (and its queries) to Machine Advisor Code
Analysis cloud.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool upload(
IScriptQueryChain query_chain
)
Parameters
query_chain
Type: SchneiderElectric.Scripting.CodeAnalysis.IScriptQueryChain
Return Value
Type: Boolean
Indicates if upload succeeded
See Also
IScriptQueries Interface
upload Overload
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 201
Script Engine Class Library User Guide
Upload specified query chains (and its queries) to Machine Advisor Code
Analysis cloud.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool upload(
IEnumerable<IScriptQueryChain> query_chains
)
Parameters
query_chains
Type: System.Collections.Generic.IEnumerable(IScriptQueryChain)
Return Value
Type: Boolean
Indicates if upload succeeded
See Also
IScriptQueries Interface
upload Overload
SchneiderElectric.Scripting.CodeAnalysis Namespace
202 EIO0000003799
Script Engine Class Library User Guide
IScriptQueries.upload_all Method
Upload all query chains (and its queries) to Machine Advisor Code Analysis
cloud.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool upload_all()
Return Value
Type: Boolean
Indicates if upload succeeded
See Also
IScriptQueries Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 203
Script Engine Class Library User Guide
IScriptQuery Interface
Scripting API of a query object.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptQuery
Properties
Name Description
IScriptQuery.category Property Retrieves the category.
IScriptQuery.editable Property Retrieves a value indicating whether this IScriptQuery
is editable.
IScriptQuery.name Property Retrieves the name.
IScriptQuery.parameters Retrieves the parameters.
Property
IScriptQuery.text Property Retrieves the text.
IScriptQuery.unique_id Retrieves the unique identifier.
Property
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
204 EIO0000003799
Script Engine Class Library User Guide
IScriptQuery.IScriptQuery Properties
The IScriptQuery type exposes the following members.
Properties
Name Description
category Retrieves the category.
editable Retrieves a value indicating whether this IScriptQuery is editable.
name Retrieves the name.
parameters Retrieves the parameters.
text Retrieves the text.
unique_id Retrieves the unique identifier.
See Also
IScriptQuery Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 205
Script Engine Class Library User Guide
IScriptQuery.category Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string category { get; }
Property Value
Type: String
The category.
See Also
IScriptQuery Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
206 EIO0000003799
Script Engine Class Library User Guide
IScriptQuery.editable Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool editable { get; }
Property Value
Type: Boolean
true if editable; otherwise, false.
See Also
IScriptQuery Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 207
Script Engine Class Library User Guide
IScriptQuery.name Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string name { get; }
Property Value
Type: String
The name.
See Also
IScriptQuery Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
208 EIO0000003799
Script Engine Class Library User Guide
IScriptQuery.parameters Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQueryParameter[] parameters { get; }
Property Value
Type: IScriptQueryParameter[ ]
The parameters.
See Also
IScriptQuery Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 209
Script Engine Class Library User Guide
IScriptQuery.text Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string text { get; }
Property Value
Type: String
The text.
See Also
IScriptQuery Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
210 EIO0000003799
Script Engine Class Library User Guide
IScriptQuery.unique_id Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
Guid unique_id { get; }
Property Value
Type: Guid
The unique identifier.
See Also
IScriptQuery Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 211
Script Engine Class Library User Guide
IScriptQueryChain Interface
Scripting API of a query chain object.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptQueryChain
Properties
Name Description
IScriptQueryChain.category Retrieves the category.
Property
IScriptQueryChain.description Retrieves the description.
Property
IScriptQueryChain.editable Retrieves a value indicating whether this
Property IScriptQueryChain is editable.
IScriptQueryChain.group Property Retrieves the group.
IScriptQueryChain.name Property Retrieves the name.
IScriptQuery.parameters Property Retrieves the parameters.
IScriptQueryChain.queries Property Retrieves the assigned queries.
IScriptQueryChain.unique_id Retrieves the unique identifier.
Property
212 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 213
Script Engine Class Library User Guide
IScriptQueryChain.IScriptQueryChain Properties
The IScriptQueryChain type exposes the following members.
Properties
Name Description
category Retrieves the category.
description Retrieves the description.
editable Retrieves a value indicating whether this IScriptQueryChain is editable.
group Retrieves the group.
name Retrieves the name.
parameters Retrieves the parameters.
queries Retrieves the assigned queries.
unique_id Retrieves the unique identifier.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
214 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryChain.category Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string category { get; }
Property Value
Type: String
The category.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 215
Script Engine Class Library User Guide
IScriptQueryChain.description Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string description { get; }
Property Value
Type: String
The description.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
216 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryChain.editable Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool editable { get; }
Property Value
Type: Boolean
true if editable; otherwise, false.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 217
Script Engine Class Library User Guide
IScriptQueryChain.group Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string group { get; }
Property Value
Type: String
The group.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
218 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryChain.name Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string name { get; }
Property Value
Type: String
The name.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 219
Script Engine Class Library User Guide
IScriptQueryChain.parameters Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQueryParameter[] parameters { get; }
Property Value
Type: IScriptQueryParameter[]
The parameters.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
220 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryChain.queries Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQuery[] queries { get; }
Property Value
Type: IScriptQuery[]
The queries.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 221
Script Engine Class Library User Guide
IScriptQueryChain.unique_id Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
Guid unique_id { get; }
Property Value
Type: Guid
The unique identifier.
See Also
IScriptQueryChain Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
222 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryParameter Interface
Scripting API of a query parameter object
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptQueryParameter
Properties
Name Description
IScriptQueryParameter.category Property Retrieves the category.
IScriptQueryParameter.name Property Retrieves the parameter name.
IScriptQueryParameter.value Property Retrieves the parameter value.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 223
Script Engine Class Library User Guide
IScriptQueryParameter.IScriptQueryParameter Properties
The IScriptQueryParameter type exposes the following members.
Properties
Name Description
category Retrieves the category.
name Retrieves the parameter name.
value Retrieves the parameter value.
See Also
IScriptQueryParameter Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
224 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryParameter.category Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string category { get; }
Property Value
Type: String
The category.
See Also
IScriptQueryParameter Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 225
Script Engine Class Library User Guide
IScriptQueryParameter.name Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string name { get; }
Property Value
Type: String
The parameter name.
See Also
IScriptQueryParameter Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
226 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryParameter.value Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string value { get; }
Property Value
Type: String
The parameter value.
See Also
IScriptQueryParameter Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 227
Script Engine Class Library User Guide
IScriptQueryRepository Interface
Scripting API to access all query chains.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptQueryRepository
Methods
Name Description
IScriptQueryRepository.get_all_query_chains Method Retrieves all query chains.
IScriptQueryRepository.get_query_chain_by_name Retrieves the query chains
Method by name.
IScriptQueryRepository.get_query_chain_by_unique_id Retrieves the query chains
Method by unique identifier.
IScriptQueryRepository.get_query_chains_by_name Retrieves queries that
Method contain the given string as
part of the name.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
228 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryRepository.IScriptQueryRepository Methods
The IScriptQueryRepository type exposes the following members.
Methods
Name Description
get_all_query_chains Retrieves all query chains.
get_query_chain_by_name Retrieves the query chains by name.
get_query_chain_by_unique_id Retrieves the query chains by unique identifier.
get_query_chains_by_name Retrieves queries that contain the given string as part
of the name.
See Also
IScriptQueryRepository Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 229
Script Engine Class Library User Guide
IScriptQueryRepository.get_all_query_chains Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQueryChain[] get_all_query_chains()
Return Value
Type: IScriptQueryChain[ ]
The requested query chains.
See Also
IScriptQueryRepository Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
230 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryRepository.get_query_chain_by_name Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQueryChain get_query_chain_by_name(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IScriptQueryChain
The requested query chains
See Also
IScriptQueryRepository Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 231
Script Engine Class Library User Guide
IScriptQueryRepository.get_query_chain_by_unique_id Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQueryChain get_query_chain_by_unique_id(
Guid unique_id
)
Parameters
unique_id
Type: System.Guid
Return Value
Type: IScriptQueryChain
The requested query chain.
See Also
IScriptQueryRepository Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
232 EIO0000003799
Script Engine Class Library User Guide
IScriptQueryRepository.get_query_chains_by_name Method
Retrieves queries that contain the given string as part of the name.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptQueryChain[] get_query_chains_by_name(
string name_search_text
)
Parameters
name_search_text
Type: System.String
Return Value
Type: IScriptQueryChain[ ]
The requested query chains.
See Also
IScriptQueryRepository Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 233
Script Engine Class Library User Guide
IScriptSnapshotOptions Interface
Scripting API for Machine Advisor Code Analysis snapshot options.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptSnapshotOptions
Properties
Name Description
IScriptSnapshotOptions.changelog Retrieves or sets the snapshot changelog.
Property
IScriptSnapshotOptions.creation_date Retrieves or sets the creation date.
Property
IScriptSnapshotOptions.name Property Retrieves or sets the name.
IScriptSnapshotOptions.notes Property Retrieves or sets the snapshot notes.
IScriptSnapshotOptions.released Property Retrieves or sets a value indicating whether
this snapshot was released.
IScriptSnapshotOptions.version Property Retrieves or sets the version.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
234 EIO0000003799
Script Engine Class Library User Guide
IScriptSnapshotOptions.IScriptSnapshotOptions Properties
The IScriptSnapshotOptions type exposes the following members.
Properties
Name Description
changelog Retrieves or sets the snapshot changelog.
creation_date Retrieves or sets the creation date.
name Retrieves or sets the name.
notes Retrieves or sets the snapshot notes.
released Retrieves or sets a value indicating whether this snapshot was released.
version Retrieves or sets the version.
See Also
IScriptSnapshotOptions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 235
Script Engine Class Library User Guide
IScriptSnapshotOptions.changelog Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string changelog { get; set; }
Property Value
Type: String
The snapshot changelog.
See Also
IScriptSnapshotOptions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
236 EIO0000003799
Script Engine Class Library User Guide
IScriptSnapshotOptions.creation_date Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string creation_date { get; set; }
Property Value
Type: String
The creation date.
See Also
IScriptSnapshotOptions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 237
Script Engine Class Library User Guide
IScriptSnapshotOptions.name Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string name { get; set; }
Property Value
Type: String
The name.
See Also
IScriptSnapshotOptions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
238 EIO0000003799
Script Engine Class Library User Guide
IScriptSnapshotOptions.notes Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string notes { get; set; }
Property Value
Type: String
The notes description.
See Also
IScriptSnapshotOptions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 239
Script Engine Class Library User Guide
IScriptSnapshotOptions.released Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool released { get; set; }
Property Value
Type: Boolean
true if released; otherwise, false.
See Also
IScriptSnapshotOptions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
240 EIO0000003799
Script Engine Class Library User Guide
IScriptSnapshotOptions.version Property
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string version { get; set; }
Property Value
Type: String
The version.
See Also
IScriptSnapshotOptions Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 241
Script Engine Class Library User Guide
IScriptSnapshots Interface
Scripting API for Machine Advisor Code Analysis snapshots.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptSnapshots
Methods
Name Description
IScriptSnapshots.create_snapshot_options Method Creates the snapshot options.
IScriptSnapshots.store Method (String, String) Stores the Code Analysis
snapshot to disk.
IScriptSnapshots.store Method Stores the Code Analysis
(IScriptSnapshotOptions, String) snapshot to disk.
upload(String) Uploads the snapshot to Code
Analysis cloud.
upload(IScriptSnapshotOptions) Uploads the snapshot to Code
Analysis cloud.
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
242 EIO0000003799
Script Engine Class Library User Guide
IScriptSnapshots.IScriptSnapshots Methods
The IScriptSnapshots type exposes the following members.
Methods
Name Description
create_snapshot_options Creates the snapshot options.
store(String, String) Stores the Code Analysis snapshot
to disk.
store(IScriptSnapshotOptions, String) Stores the Code Analysis snapshot
to disk.
IScriptSnapshots.upload Method (String) Uploads the snapshot to Code
Analysis cloud.
IScriptSnapshots.upload Method Uploads the snapshot to Code
(IScriptSnapshotOptions) Analysis cloud.
See Also
IScriptSnapshots Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 243
Script Engine Class Library User Guide
IScriptSnapshots.create_snapshot_options Method
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptSnapshotOptions create_snapshot_options()
Return Value
Type: IScriptSnapshotOptions
The snapshot option.
See Also
IScriptSnapshots Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
244 EIO0000003799
Script Engine Class Library User Guide
IScriptSnapshots.store Method
Overload List
Name Description
store(String, String) Stores the Code Analysis snapshot to disk.
store(IScriptSnapshotOptions, String) Stores the Code Analysis snapshot to disk.
See Also
IScriptSnapshots Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 245
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store(
string snapshot_name,
string filename
)
Parameters
snapshot_name
Type: System.String
filename
Type: System.String
The filename.
See Also
IScriptSnapshots Interface
IScriptSnapshots.store Method
SchneiderElectric.Scripting.CodeAnalysis Namespace
246 EIO0000003799
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void store(
IScriptSnapshotOptions snapshot_options,
string filename
)
Parameters
snapshot_options
Type: SchneiderElectric.Scripting.CodeAnalysis.IScriptSnapshotOptions
filename
Type: System.String
The filename.
See Also
IScriptSnapshots Interface
store Overload
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 247
Script Engine Class Library User Guide
IScriptSnapshots.upload Method
Overload List
Name Description
upload(String) Uploads the snapshot to Code Analysis cloud.
upload(IScriptSnapshotOptions) Uploads the snapshot to Code Analysis cloud.
See Also
IScriptSnapshots Interface
SchneiderElectric.Scripting.CodeAnalysis Namespace
248 EIO0000003799
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool upload(
string snapshot_name
)
Parameters
snapshot_name
Type: System.String
Return Value
Type: Boolean
Indicates if upload succeeded.
See Also
IScriptSnapshots Interface
IScriptSnapshots.upload Method
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 249
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.Programming.CodeAnalysisIntegration.plugin
(in SchneiderElectric.Programming.CodeAnalysisIntegration.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool upload(
IScriptSnapshotOptions snapshot_options
)
Parameters
snapshot_options
Type: SchneiderElectric.Scripting.CodeAnalysis.IScriptSnapshotOptions
Return Value
Type: Boolean
Indicates if upload succeeded.
See Also
IScriptSnapshots Interface
upload Overload
SchneiderElectric.Scripting.CodeAnalysis Namespace
250 EIO0000003799
Script Engine Class Library User Guide
HttpBackendTypes Enumeration
The available and supported Http Backend types
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.CodeAnalysis.QueryEngine (in
SchneiderElectric.CodeAnalysis.QueryEngine.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public enum HttpBackendTypes
Members
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
EIO0000003799 251
Script Engine Class Library User Guide
TripleStorageBackendTypes Enumeration
Definition of used strategy for backend type selection.
Namespace: SchneiderElectric.Scripting.CodeAnalysis
Assembly: SchneiderElectric.CodeAnalysis.QueryEngine (in
SchneiderElectric.CodeAnalysis.QueryEngine.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public enum TripleStorageBackendTypes
Members
Member Value Description
name
OutProc 0 Force Out-Process (use own TripleStorage exe, e.g., with In-
Memory as backend + CodeAnalysis WCF based protocol as
communication)
DebugOutProc 1 Force debug Out-Process (like ForceOutProc but with debug
configuration for TripleStorage)
Automatic 2 Automatic selection
InMemory 3 Force In-Memory RDF backend -- see dotNetRDF
Http 4 Force http based RDF backend -- see dotNetRDF
See Also
SchneiderElectric.Scripting.CodeAnalysis Namespace
252 EIO0000003799
Script Engine Class Library User Guide
Chapter 2
SchneiderElectric.Scripting.Collections Namespace
This namespace contains scripting list collections.
Interfaces
Interface Description
IScriptCollection(T) Defines methods to manipulate generic collections.
IScriptList(T) Represents a collection of objects that can be individually accessed
by index.
IScriptList2(T) Extension interface for IScriptList(T)
EIO0000003799 253
Script Engine Class Library User Guide
IScriptCollection(T) Interface
Defines methods to manipulate generic collections.
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
public interface IScriptCollection<T> : IEnumerable<T>,
IEnumerable
Type Parameters
T
Properties
Name Description
IScriptCollection(T).count Property Retrieves the number of elements contained in
the IScriptCollection(T).
IScriptCollection(T).is_readonly Retrieves a value indicating whether the
Property IScriptCollection(T) is read-only.
Methods
Name Description
IScriptCollection(T).add Method Adds an item to the IScriptCollection(T).
254 EIO0000003799
Script Engine Class Library User Guide
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 255
Script Engine Class Library User Guide
IScriptCollection(T).IScriptCollection(T) Properties
The IScriptCollection(T) generic type exposes the following members.
Properties
Name Description
count Retrieves the number of elements contained in the IScriptCollection(T).
is_readonly Retrieves a value indicating whether the IScriptCollection(T) is read-only.
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
256 EIO0000003799
Script Engine Class Library User Guide
IScriptCollection(T).count Property
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
int count { get; }
Return Value
Type: Int32
The number of elements contained in the IScriptCollection(T).
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 257
Script Engine Class Library User Guide
IScriptCollection(T).is_readonly Property
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
bool is_readonly { get; }
Return Value
Type: Boolean
true if the IScriptCollection(T) is read-only; otherwise, false.
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
258 EIO0000003799
Script Engine Class Library User Guide
IScriptCollection(T).IScriptCollection(T) Methods
The IScriptCollection(T) generic type exposes the following members.
Methods
Name Description
add Adds an item to the IScriptCollection(T).
clear Removes all items from the IScriptCollection(T).
contains Determines whether the IScriptCollection(T) contains a specific value.
copy_to Copies the elements of the IScriptCollection(T) to an Array, starting at a
particular Array index.
remove Removes the first occurrence of a specific object from the IScriptCollection(T).
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 259
Script Engine Class Library User Guide
IScriptCollection(T).add Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
void add(
T item
)
Parameters
item
Type: T
Exceptions
Exception Condition
NotSupportedException The IScriptCollection(T) is read-only.
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
260 EIO0000003799
Script Engine Class Library User Guide
IScriptCollection(T).clear Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
void clear()
Exceptions
Exception Condition
NotSupportedException The IScriptCollection(T) is read-only.
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 261
Script Engine Class Library User Guide
IScriptCollection(T).contains Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
bool contains(
T item
)
Parameters
item
Type: T
Return Value
Type: Boolean
true if item is found in the IScriptCollection(T); otherwise, false.
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
262 EIO0000003799
Script Engine Class Library User Guide
IScriptCollection(T).copy_to Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
void copy_to(
T[] array,
int arrayIndex
)
Parameters
array
Type: T[]
arrayIndex
Type: System.Int32
Exceptions
Exception Condition
ArgumentNullException array is null.
ArgumentOutOfRangeException arrayIndex is less than 0.
EIO0000003799 263
Script Engine Class Library User Guide
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
264 EIO0000003799
Script Engine Class Library User Guide
IScriptCollection(T).remove Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
bool remove(
T item
)
Parameters
item
Type: T
Return Value
Type: Boolean
true if item was successfully removed from the IScriptCollection(T);
otherwise, false. This method also returns false if item is not found in the
original IScriptCollection(T).
Exceptions
Exception Condition
NotSupportedException The IScriptCollection(T) is read-only.
EIO0000003799 265
Script Engine Class Library User Guide
See Also
IScriptCollection(T)Interface
SchneiderElectric.Scripting.Collections Namespace
266 EIO0000003799
Script Engine Class Library User Guide
IScriptList(T) Interface
Represents a collection of objects that can be individually accessed by index.
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
public interface IScriptList<T> : IScriptCollection<T>,
IEnumerable<T>, IEnumerable
Type Parameters
T
Properties
Name Description
IScriptList(T).Item Property Retrieves or sets the element at the specified index.
Methods
Name Description
IScriptList(T).index_of Method Determines the index of a specific item in the
IScriptList(T).
IScriptList(T).insert Method Inserts an item to the IScriptList(T) at the specified
index.
EIO0000003799 267
Script Engine Class Library User Guide
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Collections Namespace
268 EIO0000003799
Script Engine Class Library User Guide
IScriptList(T).IScriptList(T) Properties
The IScriptList(T) generic type exposes the following members.
Properties
Name Description
Item Retrieves or sets the element at the specified index.
See Also
IScriptList(T)Interface
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 269
Script Engine Class Library User Guide
IScriptList(T).Item Property
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
T this[
int index
] { get; set; }
Parameters
index
Type: System.Int32
Property Value
Type: T
The element at the specified index.
See Also
IScriptList(T)Interface
SchneiderElectric.Scripting.Collections Namespace
270 EIO0000003799
Script Engine Class Library User Guide
IScriptList(T).IScriptList(T) Methods
The IScriptList(T) generic type exposes the following members.
Methods
Name Description
index_of Determines the index of a specific item in the IScriptList(T).
insert Inserts an item to the IScriptList(T) at the specified index.
remove_at Removes the IScriptList(T) item at the specified index.
See Also
IScriptList(T)Interface
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 271
Script Engine Class Library User Guide
IScriptList(T).index_of Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
int index_of(
T item
)
Parameters
item
Type: T
Return Value
Type: Int32
The index of item if found in the list; otherwise, -1.
Remarks
If an object occurs multiple times in the list, the IndexOf method always
returns the first instance found.
See Also
IScriptList(T)Interface
SchneiderElectric.Scripting.Collections Namespace
272 EIO0000003799
Script Engine Class Library User Guide
IScriptList(T).insert Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
void insert(
int index,
T item
)
Parameters
index
Type: System.Int32
item
Type: T
See Also
IScriptList(T)Interface
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 273
Script Engine Class Library User Guide
IScriptList(T).remove_at Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
void remove_at(
int index
)
Parameters
index
Type: System.Int32
See Also
IScriptList(T)Interface
SchneiderElectric.Scripting.Collections Namespace
274 EIO0000003799
Script Engine Class Library User Guide
IScriptList2(T) Interface
Extension interface for IScriptList(T)
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
public interface IScriptList2<T> : IScriptList<T>,
IScriptCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
Methods
Name Description
IScriptList2(T).add_range Adds the elements of the specified collection to the
Method end of the IScriptCollection(T).
IScriptList2(T).remove_range Removes a range of elements from the
Method IScriptCollection(T).
See Also
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 275
Script Engine Class Library User Guide
IScriptList2(T).IScriptList2(T) Methods
The IScriptList2(T) generic type exposes the following members.
Methods
Name Description
add_range Adds the elements of the specified collection to the end of the
IScriptCollection(T).
remove_range Removes a range of elements from the IScriptCollection(T).
See Also
IScriptList2(T)Interface
SchneiderElectric.Scripting.Collections Namespace
276 EIO0000003799
Script Engine Class Library User Guide
IScriptList2(T).add_range Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
void add_range(
IEnumerable<T> collection
)
Parameters
collection
Type: System.Collections.Generic.IEnumerable(T)
Exceptions
Exception Condition
NotSupportedException The IScriptCollection(T) is read-only.
ArgumentNullException collection is null.
See Also
IScriptList2(T)Interface
SchneiderElectric.Scripting.Collections Namespace
EIO0000003799 277
Script Engine Class Library User Guide
IScriptList2(T).remove_range Method
Namespace: SchneiderElectric.Scripting.Collections
Assembly: SchneiderElectric.Platform.Scripting (in
SchneiderElectric.Platform.Scripting.dll) Version: Version 1.0-dev (developer
build)
Syntax
C#
void remove_range(
IEnumerable<T> collection
)
Parameters
collection
Type: System.Collections.Generic.IEnumerable(T)
Exceptions
Exception Condition
NotSupportedException The IScriptCollection(T) is read-only.
ArgumentNullException collection is null.
See Also
IScriptList2(T)Interface
SchneiderElectric.Scripting.Collections Namespace
278 EIO0000003799
Script Engine Class Library User Guide
Chapter 3
SchneiderElectric.Scripting.Extensions.Application Namespace
This namespace contains extensions methods to the handle application
objects.
Classes
Class Description
ParameterListHandlingExtension Extends a IScriptApplication with the ability to add
new parameter list objects.
EIO0000003799 279
Script Engine Class Library User Guide
ParameterListHandlingExtension Class
Extends a IScriptApplication with the ability to add new parameter list
objects.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.Application.ParameterListHandlingEx
tension
Namespace: SchneiderElectric.Scripting.Extensions.Application
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public sealed class ParameterListHandlingExtension
Constructors
Name Description
ParameterListHandlingExtension Initializes a new instance of the
Constructor ParameterListHandlingExtension class.
Methods
Name Description
ParameterListHandlingExtension.add_parameter_list Adds a new parameter list
Method to the application.
280 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.Application Namespace
EIO0000003799 281
Script Engine Class Library User Guide
ParameterListHandlingExtension Constructor
Initializes a new instance of the ParameterListHandlingExtension class.
Namespace: SchneiderElectric.Scripting.Extensions.Application
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public ParameterListHandlingExtension(
IScriptObject scriptObject
)
Parameters
scriptObject
Type: IScriptObject
Exceptions
Exception Condition
ArgumentNullException scriptObject is null.
See Also
ParameterListHandlingExtension Class
SchneiderElectric.Scripting.Extensions.Application Namespace
282 EIO0000003799
Script Engine Class Library User Guide
ParameterListHandlingExtension.ParameterListHandlingExtension
Methods
The ParameterListHandlingExtension type exposes the following members.
Methods
Name Description
add_parameter_list Adds a new parameter list to the application.
See Also
ParameterListHandlingExtension Class
SchneiderElectric.Scripting.Extensions.Application Namespace
EIO0000003799 283
Script Engine Class Library User Guide
ParameterListHandlingExtension.add_parameter_list Method
Namespace: SchneiderElectric.Scripting.Extensions.Application
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public IExtendedObject<IScriptObject> add_parameter_list(
string name
)
Parameters
name
Type: System.String
Return Value
Type: IExtendedObject(IScriptObject)
A script object
Exceptions
Exception Condition
ArgumentException Name is null or empty.
Examples
284 EIO0000003799
Script Engine Class Library User Guide
Python
p = projects.primary
app = p.active_application
See Also
ParameterListHandlingExtension Class
SchneiderElectric.Scripting.Extensions.Application Namespace
EIO0000003799 285
Script Engine Class Library User Guide
Chapter 4
SchneiderElectric.Scripting.Extensions.ApplicationLogger
Namespace
This namespace contains extensions methods to the handle application
logger objects.
Classes
Class Description
ApplicationLoggerExtension The application logger extension
Interfaces
Interface Description
IScriptApplicationLoggerObjectMarker Every IScriptObject instance will be extended
with this method.
286 EIO0000003799
Script Engine Class Library User Guide
ApplicationLoggerExtension Class
The application logger extension
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ApplicationLogger.ApplicationLogger
Extension
Namespace: SchneiderElectric.Scripting.Extensions.ApplicationLogger
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public sealed class ApplicationLoggerExtension
Constructors
Name Description
ApplicationLoggerExtension Creates an instance of
Constructor ApplicationLoggerExtension
Methods
Name Description
ApplicationLoggerExtension.add_application_logger Adds a new application logger
Method object to the application.
EIO0000003799 287
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.ApplicationLogger Namespace
288 EIO0000003799
Script Engine Class Library User Guide
ApplicationLoggerExtension Constructor
Creates an instance of ApplicationLoggerExtension
Namespace: SchneiderElectric.Scripting.Extensions.ApplicationLogger
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public ApplicationLoggerExtension(
IScriptObject scriptObject
)
Parameters
scriptObject
Type: IScriptObject
See Also
ApplicationLoggerExtension Class
SchneiderElectric.Scripting.Extensions.ApplicationLogger Namespace
EIO0000003799 289
Script Engine Class Library User Guide
ApplicationLoggerExtension.ApplicationLoggerExtension Methods
The ApplicationLoggerExtension type exposes the following members.
Methods
Name Description
add_application_logger Adds a new application logger object to the application.
See Also
ApplicationLoggerExtension Class
SchneiderElectric.Scripting.Extensions.ApplicationLogger Namespace
290 EIO0000003799
Script Engine Class Library User Guide
ApplicationLoggerExtension.add_application_logger Method
Namespace: SchneiderElectric.Scripting.Extensions.ApplicationLogger
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public IExtendedObject<IScriptObject> add_application_logger()
Return Value
Type: IExtendedObject(IScriptObject)
A script object.
See Also
ApplicationLoggerExtension Class
SchneiderElectric.Scripting.Extensions.ApplicationLogger Namespace
EIO0000003799 291
Script Engine Class Library User Guide
IScriptApplicationLoggerObjectMarker Interface
Every IScriptObject instance will be extended with this method.
Namespace: SchneiderElectric.Scripting.Extensions.ApplicationLogger
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public interface IScriptApplicationLoggerObjectMarker
Properties
Name Description
IScriptApplicationLoggerObjectMarker.is_application_logger Retrieves a value
Property indicating whether this
instance is an
application logger
object.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ApplicationLogger Namespace
292 EIO0000003799
Script Engine Class Library User Guide
IScriptApplicationLoggerObjectMarker.IScriptApplicationLoggerObjectMar
ker Properties
The IScriptApplicationLoggerObjectMarker type exposes the following
members.
Properties
Name Description
is_application_logger Retrieves a value indicating whether this instance is an
application logger object.
See Also
IScriptApplicationLoggerObjectMarker Interface
SchneiderElectric.Scripting.Extensions.ApplicationLogger Namespace
EIO0000003799 293
Script Engine Class Library User Guide
IScriptApplicationLoggerObjectMarker.is_application_logger Property
Namespace: SchneiderElectric.Scripting.Extensions.ApplicationLogger
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
bool is_application_logger { get; }
Property Value
Type: Boolean
true if this instance is application logger object; otherwise, false.
See Also
IScriptApplicationLoggerObjectMarker Interface
SchneiderElectric.Scripting.Extensions.ApplicationLogger Namespace
294 EIO0000003799
Script Engine Class Library User Guide
Chapter 5
SchneiderElectric.Scripting.Extensions.ParameterList
Namespace
This namespace contains extensions methods to the modify parameter list
objects.
Interfaces
Interface Description
IScriptParameterListObject Functionality for manipulating parameter list
objects.
IScriptParameterListObjectMarker Every IScriptObject instance will be extended with
this method.
EIO0000003799 295
Script Engine Class Library User Guide
IScriptParameterListObject Interface
Functionality for manipulating parameter list objects.
Namespace: SchneiderElectric.Scripting.Extensions.ParameterList
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public interface IScriptParameterListObject :
IScriptParameterListObjectMarker
Properties
Name Description
IScriptParameterListObject.devices Retrieves a list of all devices, configured
Property in the parameter list.
IScriptParameterListObject.parameters Retrieves a list of all parameters,
Property configured in the parameter list.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ParameterList Namespace
296 EIO0000003799
Script Engine Class Library User Guide
IScriptParameterListObject.IScriptParameterListObject Properties
The IScriptParameterListObject type exposes the following members.
Properties
Name Description
devices Retrieves a list of all devices, configured in the parameter list.
parameters Retrieves a list of all parameters, configured in the parameter list.
See Also
IScriptParameterListObject Interface
SchneiderElectric.Scripting.Extensions.ParameterList Namespace
EIO0000003799 297
Script Engine Class Library User Guide
IScriptParameterListObject.devices Property
Namespace: SchneiderElectric.Scripting.Extensions.ParameterList
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
IScriptList2<IExtendedObject<IScriptObject>> devices { get; }
Property Value
Type: IScriptList2(IExtendedObject(IScriptObject))
Examples
Python
p = projects.primary
app = p.active_application
298 EIO0000003799
Script Engine Class Library User Guide
parameter_list.parameters.add('Filter')
parameter_list.parameters.add('LogAdr')
print('List of devices:')
for device in parameter_list.devices:
print(device.get_name(True))
print('')
print('List of parameters:')
for parameter in parameter_list.parameters:
print(parameter)
See Also
IScriptParameterListObject Interface
SchneiderElectric.Scripting.Extensions.ParameterList Namespace
EIO0000003799 299
Script Engine Class Library User Guide
IScriptParameterListObject.parameters Property
Namespace: SchneiderElectric.Scripting.Extensions.ParameterList
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
IScriptList2<string> parameters { get; }
Property Value
Type: IScriptList2(String)
Examples
Python
p = projects.primary
app = p.active_application
300 EIO0000003799
Script Engine Class Library User Guide
parameter_list.parameters.add('Filter')
parameter_list.parameters.add('LogAdr')
print('List of devices:')
for device in parameter_list.devices:
print(device.get_name(True))
print('')
print('List of parameters:')
for parameter in parameter_list.parameters:
print(parameter)
See Also
IScriptParameterListObject Interface
SchneiderElectric.Scripting.Extensions.ParameterList Namespace
EIO0000003799 301
Script Engine Class Library User Guide
IScriptParameterListObjectMarker Interface
Every IScriptObject instance will be extended with this method.
Namespace: SchneiderElectric.Scripting.Extensions.ParameterList
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public interface IScriptParameterListObjectMarker
Properties
Name Description
IScriptParameterListObjectMarker.is_parameter_list Retrieves a value indicating
Property whether this instance is a
parameter list object.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ParameterList Namespace
302 EIO0000003799
Script Engine Class Library User Guide
IScriptParameterListObjectMarker.IScriptParameterListObjectMarker
Properties
The IScriptParameterListObjectMarker type exposes the following members.
Properties
Name Description
is_parameter_list Retrieves a value indicating whether this instance is a parameter list
object.
See Also
IScriptParameterListObjectMarker Interface
SchneiderElectric.Scripting.Extensions.ParameterList Namespace
EIO0000003799 303
Script Engine Class Library User Guide
IScriptParameterListObjectMarker.is_parameter_list Property
Namespace: SchneiderElectric.Scripting.Extensions.ParameterList
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
bool is_parameter_list { get; }
Property Value
Type: Boolean
true if this instance is parameter list object; otherwise, false.
See Also
IScriptParameterListObjectMarker Interface
SchneiderElectric.Scripting.Extensions.ParameterList Namespace
304 EIO0000003799
Script Engine Class Library User Guide
Chapter 6
SchneiderElectric.Scripting.Extensions.ScriptApplication
Namespace
This namespace contains extensions of the IScriptApplication type of the
existing CODESYS ScriptEngine API.
Classes
Class Description
TaskHandlingExtension Legacy interface for task objects. This remains for compatibility
reasons to previous versions. The official API is now provided
directly by CODESYS.
Interfaces
Interface Description
IScriptApplicationBuildProperties This interface can be used to read and modify the
application build properties.
IScriptApplicationExtension This interface can be used to read and modify
various application properties.
IScriptDeploymentStatusExtension This interface can be used to determine the
deployment status of an application on a target
device.
IScriptVisuObjectContainer This allows to create visu objects; the methods will
be available in the project root as well as
applications, and folders below them.
EIO0000003799 305
Script Engine Class Library User Guide
TaskHandlingExtension Class
Legacy interface for task objects. This remains for compatibility reasons to
previous versions. The official API is now provided directly by CODESYS.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptApplication.TaskHandlingExtens
ion
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public sealed class TaskHandlingExtension
Constructors
Name Description
TaskHandlingExtension Initializes a new instance of the
Constructor TaskHandlingExtension class.
Methods
Name Description
TaskHandlingExtension.add_cyclic_task Adds a new cyclic task to the application.
Method The cyclic task will be processed cyclic
according to the time definition (task cycle
time) given in the property Interval.
306 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 307
Script Engine Class Library User Guide
TaskHandlingExtension Constructor
Initializes a new instance of the TaskHandlingExtension class.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public TaskHandlingExtension(
IScriptObject scriptObject
)
Parameters
scriptObject
Type: IScriptObject
Exceptions
Exception Condition
ArgumentNullException applicationObject is null.
See Also
TaskHandlingExtension Class
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
308 EIO0000003799
Script Engine Class Library User Guide
TaskHandlingExtension.TaskHandlingExtension Methods
The TaskHandlingExtension type exposes the following members.
Methods
Name Description
add_cyclic_task Adds a new cyclic task to the application. The cyclic task will be
processed cyclic according to the time definition (task cycle time)
given in the property Interval.
See Also
TaskHandlingExtension Class
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 309
Script Engine Class Library User Guide
TaskHandlingExtension.add_cyclic_task Method
Adds a new cyclic task to the application. The cyclic task will be processed
cyclic according to the time definition (task cycle time) given in the property
Interval.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void add_cyclic_task(
string name
)
Parameters
name
Type: System.String
Exceptions
Exception Condition
ArgumentException name is null or empty.
Examples
Python
p = projects.primary
app = p.active_application
310 EIO0000003799
Script Engine Class Library User Guide
See Also
TaskHandlingExtension Class
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 311
Script Engine Class Library User Guide
IScriptApplicationBuildProperties Interface
This interface can be used to read and modify the application build
properties.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptApplicationBuildProperties
Properties
Name Description
IScriptApplicationBuildProperties.download_application_content Retrieves or sets a
Property boolean value
indicating whether
application content
is downloaded.
IScriptApplicationBuildProperties.size_for_dynamic_memory Retrieves or sets the
Property maximum size of
memory to use for
dynamic memory
allocation in bytes.
IScriptApplicationBuildProperties.use_dynamic_memory Property Retrieves or sets a
boolean value
indicating whether
to use dynamic
memory allocation.
Remarks
312 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 313
Script Engine Class Library User Guide
IScriptApplicationBuildProperties.IScriptApplicationBuildProperties
Properties
The IScriptApplicationBuildProperties type exposes the following members.
Properties
Name Description
download_application_content Retrieves or sets a boolean value indicating whether
application content is downloaded.
size_for_dynamic_memory Retrieves or sets the maximum size of memory to use
for dynamic memory allocation in bytes.
use_dynamic_memory Retrieves or sets a boolean value indicating whether to
use dynamic memory allocation.
See Also
IScriptApplicationBuildProperties Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
314 EIO0000003799
Script Engine Class Library User Guide
IScriptApplicationBuildProperties.download_application_content Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
bool download_application_content { get; set; }
Property Value
Type: Boolean
See Also
IScriptApplicationBuildProperties Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 315
Script Engine Class Library User Guide
IScriptApplicationBuildProperties.size_for_dynamic_memory Property
Retrieves or sets the maximum size of memory to use for dynamic memory
allocation in bytes.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
int size_for_dynamic_memory { get; set; }
Property Value
Type: Int32
Remarks
Value must be greater or equal to 1000. A value of -1 means that this feature
is not active.
See Also
IScriptApplicationBuildProperties Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
316 EIO0000003799
Script Engine Class Library User Guide
IScriptApplicationBuildProperties.use_dynamic_memory Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
bool use_dynamic_memory { get; set; }
Property Value
Type: Boolean
Remarks
See Also
IScriptApplicationBuildProperties Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 317
Script Engine Class Library User Guide
IScriptApplicationExtension Interface
This interface can be used to read and modify various application properties.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptApplicationExtension
Properties
Name Description
IScriptApplicationExtension.application_build_properties Retrieves the application
Property build properties of the
application.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
318 EIO0000003799
Script Engine Class Library User Guide
IScriptApplicationExtension.IScriptApplicationExtension Properties
The IScriptApplicationExtension type exposes the following members.
Properties
Name Description
application_build_properties Retrieves the application build properties of the
application.
See Also
IScriptApplicationExtension Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 319
Script Engine Class Library User Guide
IScriptApplicationExtension.application_build_properties Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptApplicationBuildProperties application_build_properties {
get; }
Property Value
Type: IScriptApplicationBuildProperties
See Also
IScriptApplicationExtension Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
320 EIO0000003799
Script Engine Class Library User Guide
IScriptDeploymentStatusExtension Interface
This interface can be used to determine the deployment status of an
application on a target device.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptDeploymentStatusExtension
Methods
Name Description
IScriptDeploymentStatusExtension.get_deployment_status Compares the application
Method of the loaded project
against the one on the
target device and returns
which deployment action
needs to be taken at the
next login. This method
uses the configured target
address on the device
communication page.
IScriptDeploymentStatusExtension.get_deployment_status Compares the application
Method (String) of the loaded project
against the one on the
target device and returns
which deployment action
needs to be taken at the
next login.
EIO0000003799 321
Script Engine Class Library User Guide
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
322 EIO0000003799
Script Engine Class Library User Guide
IScriptDeploymentStatusExtension.IScriptDeploymentStatusExtension
Methods
Methods
Name Description
get_deployment_status() Compares the application of the loaded project against
the one on the target device and returns which
deployment action needs to be taken at the next login.
This method uses the configured target address on the
device communication page.
get_deployment_status(String) Compares the application of the loaded project against
the one on the target device and returns which
deployment action needs to be taken at the next login.
See Also
IScriptDeploymentStatusExtension Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 323
Script Engine Class Library User Guide
IScriptDeploymentStatusExtension.get_deployment_status Method
Overload List
Name Description
get_deployment_status() Compares the application of the loaded project against
the one on the target device and returns which
deployment action needs to be taken at the next login.
This method uses the configured target address on the
device communication page.
get_deployment_status(String) Compares the application of the loaded project against
the one on the target device and returns which
deployment action needs to be taken at the next login.
See Also
IScriptDeploymentStatusExtension Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
324 EIO0000003799
Script Engine Class Library User Guide
IScriptDeploymentStatusExtension.get_deployment_status Method
Compares the application of the loaded project against the one on the target
device and returns which deployment action needs to be taken at the next
login. This method uses the configured target address on the device
communication page.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
ApplicationDeploymentStatus get_deployment_status()
Return Value
Type: ApplicationDeploymentStatus
The required deployment action at the next login to the device.
Examples
This example shows how to retrieve the deployment status of the active
application.
Python
# Script shows how to retrieve the deployment status of the active
application.
# We enable the new Python 3 print syntax
from __future__ import print_function
if not projects.primary:
system.ui.error('No primary project set')
proj = projects.primary
EIO0000003799 325
Script Engine Class Library User Guide
if (deployment_status ==
ApplicationDeploymentStatus.DownloadRequired):
print("A full download of the application is required")
elif (deployment_status ==
ApplicationDeploymentStatus.OnlineChange):
print("An online change can be applied")
else:
print("Application on the device is up to date")
See Also
IScriptDeploymentStatusExtension Interface
IScriptDeploymentStatusExtension.get_deployment_status Method
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
326 EIO0000003799
Script Engine Class Library User Guide
Compares the application of the loaded project against the one on the target
device and returns which deployment action needs to be taken at the next
login.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
ApplicationDeploymentStatus get_deployment_status(
string URL
)
Parameters
URL
Type: System.String
Return Value
Type: ApplicationDeploymentStatus
The required deployment action at the next login to the device.
Examples
This example shows how to retrieve the deployment status of the active
application.
EIO0000003799 327
Script Engine Class Library User Guide
Python
# Script shows how to retrieve the deployment status of the active
application.
# We enable the new Python 3 print syntax
from __future__ import print_function
if not projects.primary:
system.ui.error('No primary project set')
proj = projects.primary
if (deployment_status ==
ApplicationDeploymentStatus.DownloadRequired):
print("A full download of the application is required")
elif (deployment_status ==
ApplicationDeploymentStatus.OnlineChange):
print("An online change can be applied")
else:
print("Application on the device is up to date")
See Also
IScriptDeploymentStatusExtension Interface
get_deployment_status Overload
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
328 EIO0000003799
Script Engine Class Library User Guide
IScriptVisuObjectContainer Interface
This allows to create visu objects, the methods will be available in the project
root as well as applications, and folders below them.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptVisuObjectContainer
Methods
Name Description
IScriptVisuObjectContainer.create_empty_visu Creates an empty Visualization
Method with the specified name.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
EIO0000003799 329
Script Engine Class Library User Guide
IScriptVisuObjectContainer.IScriptVisuObjectContainer Methods
The IScriptVisuObjectContainer type exposes the following members.
Methods
Name Description
create_empty_visu Creates an empty Visualization with the specified name.
See Also
IScriptVisuObjectContainer Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
330 EIO0000003799
Script Engine Class Library User Guide
IScriptVisuObjectContainer.create_empty_visu Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptApplication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_empty_visu(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created Visualization.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under this parent.
EIO0000003799 331
Script Engine Class Library User Guide
See Also
IScriptVisuObjectContainer Interface
SchneiderElectric.Scripting.Extensions.ScriptApplication Namespace
332 EIO0000003799
Script Engine Class Library User Guide
Chapter 7
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Namespace
This namespace contains extensions of the ScriptDeviceObject type of the
existing CODESYS ScriptEngine API.
Classes
Class Description
CommunicationExtension Provides methods for communication-related settings and
functions of a device.
ConvertExtension This extension provides methods for testing and
converting a device or device module.
DeviceIdDto Implements IDeviceId and is used for returning device
information to scripts. Additionally, provide another field
for the ModuleId, because there is no matching IModuleId
in the 3S Python API.
DevicePropertiesExtension This class is an extension object of CoDeSys
Class IScriptDeviceObject. Click on the class name to see all
members.
Interfaces
Interface Description
IScriptChildDevicesExtension Interface to get all child devices that can be appended
Interface to a device or project.
IScriptDriverInfo Interface This interface provides access to all information
needed in order to properly configure the driver and
supporting objects of a device or connector.
IScriptVariableMapping Defines the mapping of a data element on a specific
Interface variable.
EIO0000003799 333
Script Engine Class Library User Guide
CommunicationExtension Class
Provides methods for communication-related settings and functions of a
device.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject.CommunicationE
xtension
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public class CommunicationExtension
Methods
Name Description
CommunicationExtension.get_communication_address Retrieves the communication
Method address of the PLC.
CommunicationExtension.reboot_plc Method Reboots the PLC.
334 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 335
Script Engine Class Library User Guide
CommunicationExtension.CommunicationExtension Methods
The CommunicationExtension type exposes the following members.
Methods
Name Description
get_communication_address Retrieves the communication address of the PLC.
See Also
CommunicationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
336 EIO0000003799
Script Engine Class Library User Guide
CommunicationExtension.get_communication_address Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string get_communication_address()
Return Value
Type: String
The communication Address. This can be an IP Address, a nodename or full
qualified connection URL. Examples: - 192.168.2.25 - MyController -
etcp3://192.168.2.25 - etcp3://10.128.154.12:1105,192.168.2.25 -
enodename3://10.128.154.12:1105,MyController -
etcp3://[10.128.154.12:1217],192.168.2.25 -
enodename3://[10.128.154.12:1217],MyController
Examples
Python
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
return
project = projects.primary
# locating the controller named 'LMC'
controller = project.find('LMC', True)[0]
address = controller.get_communication_address()
EIO0000003799 337
Script Engine Class Library User Guide
print(address)
system.ui.info("Test complete")
main()
See Also
CommunicationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
338 EIO0000003799
Script Engine Class Library User Guide
CommunicationExtension.reboot_plc Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void reboot_plc()
Remarks
Examples
Python
from __future__ import print_function
def perform_application_login(project):
app = project.active_application
onlineapp = online.create_online_application(app)
onlineapp.login(OnlineChangeOption.Try, True)
def main():
if not projects.primary:
system.ui.error("No active project.")
return
perform_application_login(project)
#find the controller named 'LMC' which shall be rebooted
controller = project.find('LMC', True)[0]
#reboot the controller
controller.reboot_plc()
EIO0000003799 339
Script Engine Class Library User Guide
system.ui.info("Test complete")
main()
See Also
CommunicationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
340 EIO0000003799
Script Engine Class Library User Guide
CommunicationExtension.reset_diagnosis_messages Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void reset_diagnosis_messages()
Remarks
Examples
Python
from __future__ import print_function
def perform_application_login(project):
app = project.active_application
onlineapp = online.create_online_application(app)
onlineapp.login(OnlineChangeOption.Try, True)
def main():
if not projects.primary:
system.ui.error("No active project.")
return
project = projects.primary
perform_application_login(project)
#find the controller which msgs shall be resetted
controller = project.find('LMC', True)[0]
EIO0000003799 341
Script Engine Class Library User Guide
main()
See Also
CommunicationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
342 EIO0000003799
Script Engine Class Library User Guide
CommunicationExtension.set_communication_address Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_communication_address(
string address
)
Parameters
address
Type: System.String
Examples
Python
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
EIO0000003799 343
Script Engine Class Library User Guide
return
project = projects.primary
#find the controller by the object name where address should be
set and read.
controller = project.find('LMC', True)[0]
#reboot the controller
controller.set_communication_address('192.168.2.25')
#read address back and show it.
print('get_communication_address:=' +
controller.get_communication_address())
system.ui.info("Test complete")
main()
See Also
CommunicationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
344 EIO0000003799
Script Engine Class Library User Guide
ConvertExtension Class
This extension provides methods for testing and converting a device or
device module.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject.ConvertExtension
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public class ConvertExtension
Methods
Name Description
can_convert(IDeviceId, String) Verifies whether the device can be converted to
another specific device or module.
can_convert(Int32, String, String, Verifies whether the device can be converted to
String) another specific device or module.
convert(IDeviceId, String) Converts the device to the specified target
device.
convert(Int32, String, String, String) Converts the device to the specified target
device.
get_alternative_devices Retrieves a list of alternative DeviceIDs for the
current device.
EIO0000003799 345
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
346 EIO0000003799
Script Engine Class Library User Guide
ConvertExtension.ConvertExtension Methods
The ConvertExtension type exposes the following members.
Methods
Name Description
can_convert(IDeviceId, String) Verifies whether the device
can be converted to another
specific device or module.
can_convert(Int32, String, String, String) Verifies whether the device
can be converted to another
specific device or module.
convert(IDeviceId, String) Converts the device to the
specified target device.
convert(Int32, String, String, String) Converts the device to the
specified target device.
ConvertExtension.get_alternative_devices Method Retrieves a list of alternative
DeviceIDs for the current
device.
ConvertExtension.get_preferred_alternative_devices Retrieves the preferred
Method alternative DeviceIDs for the
current device.
See Also
ConvertExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 347
Script Engine Class Library User Guide
ConvertExtension.can_convert Method
Overload List
Name Description
ConvertExtension.can_convert Method Verifies whether the device can be
(IDeviceId, String) converted to another specific device or
module.
ConvertExtension.can_convert Method Verifies whether the device can be
(Int32, String, String, String) converted to another specific device or
module.
See Also
ConvertExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
348 EIO0000003799
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public bool can_convert(
IDeviceId targetDeviceId,
string targetModuleId = null
)
Parameters
targetDeviceId
Type: IDeviceId
targetModuleId (Optional)
Type: System.String
Return Value
Type: Boolean
True if the conversion is possible, false otherwise
Remarks
EIO0000003799 349
Script Engine Class Library User Guide
null.
Examples
Python
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
return
proj = projects.primary
controller = proj.find('LMC', True)[0]
drive = proj.find('Drive', True)[0]
main()
See Also
ConvertExtension Class
ConvertExtension.can_convert Method
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
350 EIO0000003799
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public bool can_convert(
int targetType,
string targetId,
string targetVersion,
string targetModuleId = null
)
Parameters
targetType
Type: System.Int32
targetId
Type: System.String
targetVersion
Type: System.String
targetModuleId (Optional)
EIO0000003799 351
Script Engine Class Library User Guide
Type: System.String
Return Value
Type: Boolean
True if the conversion is possible, false otherwise
Remarks
Examples
Python
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
return
proj = projects.primary
controller = proj.find('LMC', True)[0]
drive = proj.find('Drive', True)[0]
352 EIO0000003799
Script Engine Class Library User Guide
main()
See Also
ConvertExtension Class
can_convert Overload
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 353
Script Engine Class Library User Guide
ConvertExtension.convert Method
Overload List
Name Description
ConvertExtension.convert Method (IDeviceId, Converts the device to the specified
String) target device.
ConvertExtension.convert Method (Int32, String, Converts the device to the specified
String, String) target device.
See Also
ConvertExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
354 EIO0000003799
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void convert(
IDeviceId targetDeviceId,
string targetModuleId = null
)
Parameters
targetDeviceId
Type: IDeviceId
targetModuleId (Optional)
Type: System.String
Remarks
Examples
EIO0000003799 355
Script Engine Class Library User Guide
Python
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
return
proj = projects.primary
# find the controller to convert by name 'LMC'
controller = proj.find('LMC', True)[0]
# find the drive to convert by name 'Drive'
drive = proj.find('Drive', True)[0]
main()
See Also
ConvertExtension Class
ConvertExtension.convert Method
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
356 EIO0000003799
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void convert(
int targetType,
string targetId,
string targetVersion,
string targetModuleId = null
)
Parameters
targetType
Type: System.Int32
targetId
Type: System.String
targetVersion
Type: System.String
targetModuleId (Optional)
EIO0000003799 357
Script Engine Class Library User Guide
Type: System.String
Remarks
Examples
Python
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
return
proj = projects.primary
# find the controller to convert by name 'LMC'
controller = proj.find('LMC', True)[0]
# find the drive to convert by name 'Drive'
drive = proj.find('Drive', True)[0]
main()
See Also
ConvertExtension Class
convert Overload
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
358 EIO0000003799
Script Engine Class Library User Guide
ConvertExtension.get_alternative_devices Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IList<IDeviceId> get_alternative_devices()
Return Value
Type: IList(IDeviceId)
A list of DeviceIDs
Examples
Python
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
return
EIO0000003799 359
Script Engine Class Library User Guide
proj = projects.primary
main()
See Also
ConvertExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
360 EIO0000003799
Script Engine Class Library User Guide
ConvertExtension.get_preferred_alternative_devices Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IList<IDeviceId> get_preferred_alternative_devices()
Return Value
Type: IList(IDeviceId)
A list of DeviceIDs
Examples
Python
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
return
EIO0000003799 361
Script Engine Class Library User Guide
proj = projects.primary
main()
See Also
ConvertExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
362 EIO0000003799
Script Engine Class Library User Guide
DeviceIdDto Class
Implements IDeviceId and is used for returning device information to scripts.
Additionally, provides another field for the ModuleId, because there is no
matching IModuleId in the 3S Python API.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject.DeviceIdDto
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public class DeviceIdDto : IDeviceId
Properties
Name Description
DeviceIdDto.id Property Retrieves the device id code.
DeviceIdDto.module_id Property Retrieves the module id if this is a module.
DeviceIdDto.type Property Retrieves the device type.
DeviceIdDto.version Property Retrieves the device version.
See Also
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 363
Script Engine Class Library User Guide
DeviceIdDto.DeviceIdDto Properties
The DeviceIdDto type exposes the following members.
Properties
Name Description
id Retrieves the device id code.
module_id Retrieves the module id if this is a module.
type Retrieves the device type.
version Retrieves the device version.
See Also
DeviceIdDto Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
364 EIO0000003799
Script Engine Class Library User Guide
DeviceIdDto.id Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string id { get; }
Property Value
Type: String
The id.
Implements
IDeviceId.id
See Also
DeviceIdDto Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 365
Script Engine Class Library User Guide
DeviceIdDto.module_id Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string module_id { get; }
Property Value
Type: String
The module id if this is a module, otherwise null.
See Also
DeviceIdDto Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
366 EIO0000003799
Script Engine Class Library User Guide
DeviceIdDto.type Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public int type { get; }
Property Value
Type: Int32
The type.
Implements
IDeviceId.type
See Also
DeviceIdDto Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 367
Script Engine Class Library User Guide
DeviceIdDto.version Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string version { get; }
Property Value
Type: String
The version.
Implements
IDeviceId.version
See Also
DeviceIdDto Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
368 EIO0000003799
Script Engine Class Library User Guide
DevicePropertiesExtension Class
This class is an extension object of CoDeSys IScriptDeviceObject. Click on the
class name to see all members.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject.DeviceProperties
Extension
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public class DevicePropertiesExtension
Properties
Name Description
DevicePropertiesExtension.driver_info_ext This property provides access to all
Property information needed to properly
configure the driver and supporting
objects of the connector.
Methods
Name Description
EIO0000003799 369
Script Engine Class Library User Guide
370 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 371
Script Engine Class Library User Guide
DevicePropertiesExtension.DevicePropertiesExtension Properties
The DevicePropertiesExtension type exposes the following members.
Properties
Name Description
driver_info_ext This property provides access to all information needed to properly
configure the driver and supporting objects of the connector.
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
372 EIO0000003799
Script Engine Class Library User Guide
DevicePropertiesExtension.driver_info_ext Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IScriptDriverInfo driver_info_ext { get; }
Property Value
Type: IScriptDriverInfo
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 373
Script Engine Class Library User Guide
DevicePropertiesExtension.DevicePropertiesExtension Methods
The DevicePropertiesExtension type exposes the following members.
Methods
Name Description
get_all_parameters Retrieve all
parameters from a
device.
get_parameter Get a specific
parameter by
identifier and
connector id.
get_parameter_iec_address Retrieves the IEC
address where to map
this item in the
process image.
DevicePropertiesExtension.get_parameter_io_variable_mappin Retrieves the mapping
g Method (Int64, Int32) of a data element on a
specific variable. If a
variable mapping is
defined, an instance of
IScriptVariableMappin
g will be returned. If
no variable mapping is
defined, null (None
in Python) will be
returned.
DevicePropertiesExtension.get_parameter_io_variable_mappin Retrieves the mapping
g Method (Int64, Int32, Int32) of a data element
(sub-element) on a
specific variable. If a
variable mapping is
defined, an instance of
374 EIO0000003799
Script Engine Class Library User Guide
IScriptVariableMappin
g will be returned. If
no variable mapping is
defined, null (None
in Python) will be
returned.
DevicePropertiesExtension.set_parameter Method This function is used to
set a specific offline
parameter value.
DevicePropertiesExtension.set_parameter_iec_address Sets the IEC address
Method where to map this
item in the process
image.
set_parameter_io_variable_mapping(Int64, Int32, String, Defines the mapping
Boolean) of a data element on a
specific variable.
set_parameter_io_variable_mapping(Int64, Int32, Int32, String, Defines the mapping
Boolean) of a data element
(sub-element) on a
specific variable.
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 375
Script Engine Class Library User Guide
DevicePropertiesExtension.get_all_parameters Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IEnumerable<IDataElement> get_all_parameters()
Return Value
Type: IEnumerable(IDataElement)
Method returns an IEnumerable that contains all parameters of the device.
Remarks
Each entry in the list represents an IParameter object. All members of this
object can be found in CoDeSys API description.
Examples
This example shows how to retrieve a list with all parameters from a device.
Python
# Script searches for a specific device and prints all parameters
# We enable the new Python 3 print syntax
from __future__ import print_function
376 EIO0000003799
Script Engine Class Library User Guide
# Call the printtree function for each object in the device tree
for singleobject in objects:
printtree(singleobject)
EIO0000003799 377
Script Engine Class Library User Guide
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
378 EIO0000003799
Script Engine Class Library User Guide
DevicePropertiesExtension.get_parameter Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IDataElement get_parameter(
long identifier,
int connectorID
)
Parameters
identifier
Type: System.Int64
connectorID
Type: System.Int32
Return Value
Type: IDataElement
An element that specifies a value. Base type for Parameter objects and
interface of all subcomponents of a parameter. May be a structured type
itself and in turn contain other data elements.
Remarks
EIO0000003799 379
Script Engine Class Library User Guide
If you do not know the identifier and the connector ID, you can call the
get_all_parameters() method to identify them. All members of this object
can be found in CoDeSys API description.
Examples
Python
# Script searches for a specific device and prints all parameters
# We enable the new Python 3 print syntax
from __future__ import print_function
380 EIO0000003799
Script Engine Class Library User Guide
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 381
Script Engine Class Library User Guide
DevicePropertiesExtension.get_parameter_iec_address Method
Retrieves the IEC address where to map this item in the process image.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string get_parameter_iec_address(
long identifier,
int connectorId
)
Parameters
identifier
Type: System.Int64
connectorId
Type: System.Int32
Return Value
Type: String
The IEC address of the specified parameter.
Exceptions
Exception Condition
382 EIO0000003799
Script Engine Class Library User Guide
Examples
This example shows how to modify the IEC address of a specific device
parameter.
Python
# Script searches for a specific device and prints all parameters
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 383
Script Engine Class Library User Guide
iec_address = device.get_parameter_iec_address(1, 1)
print(iec_address)
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
384 EIO0000003799
Script Engine Class Library User Guide
DevicePropertiesExtension.get_parameter_io_variable_mapping Method
Overload List
Name Description
get_parameter_io_variable_mapping(Int64, Retrieves the mapping of a data element
Int32) on a specific variable. If a variable
mapping is defined, an instance of
IScriptVariableMapping will be returned.
If no variable mapping is defined, null
(None in Python) will be returned.
get_parameter_io_variable_mapping(Int64, Retrieves the mapping of a data element
Int32, Int32) (sub-element) on a specific variable. If a
variable mapping is defined, an instance
of IScriptVariableMapping will be
returned. If no variable mapping is
defined, null (None in Python) will be
returned.
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 385
Script Engine Class Library User Guide
DevicePropertiesExtension.get_parameter_io_variable_mapping Method
(Int64, Int32)
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IScriptVariableMapping get_parameter_io_variable_mapping(
long identifier,
int connectorId
)
Parameters
identifier
Type: System.Int64
connectorId
Type: System.Int32
Return Value
Type: IScriptVariableMapping
The variable mapping of the specified parameter or null (None in Python) if
no mapping is defined.
386 EIO0000003799
Script Engine Class Library User Guide
Exceptions
Exception Condition
ArgumentOutOfRangeException A parameter with the specified identifier and connectorId
does not exist.
Examples
Python
# Script searches for a specific device and prints all parameters
# We enable the new Python 3 print syntax
from __future__ import print_function
if variable_mapping != None:
print("Parameter: " + parameter.VisibleName + " of device "
+ device.get_name() + " is mapped to " + variable_mapping.variable)
EIO0000003799 387
Script Engine Class Library User Guide
else:
print("No mapping defined for parameter: " +
parameter.VisibleName + " of device " + device.get_name())
See Also
DevicePropertiesExtension Class
DevicePropertiesExtension.get_parameter_io_variable_mapping Method
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
388 EIO0000003799
Script Engine Class Library User Guide
DevicePropertiesExtension.get_parameter_io_variable_mapping Method
(Int64, Int32, Int32)
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IScriptVariableMapping get_parameter_io_variable_mapping(
long identifier,
int connectorId,
int subElementIndex
)
Parameters
identifier
Type: System.Int64
connectorId
Type: System.Int32
subElementIndex
Type: System.Int32
EIO0000003799 389
Script Engine Class Library User Guide
Return Value
Type: IScriptVariableMapping
The variable mapping of the specified parameter or null (None in Python) if
no mapping is defined.
Exceptions
Exception Condition
ArgumentOutOfRangeException A parameter with the specified identifier and connectorId
does not exist.
IndexOutOfRangeException Thrown if subElementIndex is smaller then zero or greater
then the number of sub-elements in the specified
parameter.
Examples
Python
# Script searches for a specific device and prints all parameters
# We enable the new Python 3 print syntax
from __future__ import print_function
390 EIO0000003799
Script Engine Class Library User Guide
if variable_mapping != None:
print("Parameter: " + parameter.VisibleName + " of device "
+ device.get_name() + " is mapped to " + variable_mapping.variable)
else:
print("No mapping defined for parameter: " +
parameter.VisibleName + " of device " + device.get_name())
EIO0000003799 391
Script Engine Class Library User Guide
See Also
DevicePropertiesExtension Class
get_parameter_io_variable_mapping Overload
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
392 EIO0000003799
Script Engine Class Library User Guide
DevicePropertiesExtension.set_parameter Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_parameter(
IParameter parameter,
string value
)
Parameters
parameter
Type: IParameter
value
Type: System.String
Remarks
Examples
This example shows how to set a specific parameter value from a device.
EIO0000003799 393
Script Engine Class Library User Guide
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
394 EIO0000003799
Script Engine Class Library User Guide
str((parameter.GetAssociatedConnector).ConnectorId))
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 395
Script Engine Class Library User Guide
DevicePropertiesExtension.set_parameter_iec_address Method
Sets the IEC address where to map this item in the process image.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_parameter_iec_address(
long identifier,
int connectorId,
string iecAddress
)
Parameters
identifier
Type: System.Int64
connectorId
Type: System.Int32
iecAddress
Type: System.String
The new IEC address for the specified parameter. If null (None in Python) is
passed, the IEC address is assigned automatically.
Exceptions
396 EIO0000003799
Script Engine Class Library User Guide
Exception Condition
ArgumentOutOfRangeException A parameter with the specified identifier and connectorId
does not exist.
Examples
This example shows how to modify the IEC address of a specific device
parameter.
Python
# Script searches for a specific device and prints all parameters
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 397
Script Engine Class Library User Guide
iec_address = device.get_parameter_iec_address(1, 1)
print(iec_address)
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
398 EIO0000003799
Script Engine Class Library User Guide
DevicePropertiesExtension.set_parameter_io_variable_mapping Method
Overload List
Name Description
set_parameter_io_variable_mapping(Int64, Int32, Defines the mapping of a data
String, Boolean) element on a specific variable.
set_parameter_io_variable_mapping(Int64, Int32, Defines the mapping of a data
Int32, String, Boolean) element (sub-element) on a
specific variable.
See Also
DevicePropertiesExtension Class
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 399
Script Engine Class Library User Guide
DevicePropertiesExtension.set_parameter_io_variable_mapping Method
(Int64, Int32, String, Boolean)
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_parameter_io_variable_mapping(
long identifier,
int connectorId,
string variable,
bool createVariable = false
)
Parameters
identifier
Type: System.Int64
connectorId
Type: System.Int32
variable
Type: System.String
The name of the variable on which the value should be mapped. If null
(None in Python) is passed, the current mapping is removed.
400 EIO0000003799
Script Engine Class Library User Guide
createVariable (Optional)
Type: System.Boolean
See Also
DevicePropertiesExtension Class
DevicePropertiesExtension.set_parameter_io_variable_mapping Method
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 401
Script Engine Class Library User Guide
DevicePropertiesExtension.set_parameter_io_variable_mapping Method
(Int64, Int32, Int32, String, Boolean)
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_parameter_io_variable_mapping(
long identifier,
int connectorId,
int subElementIndex,
string variable,
bool createVariable = false
)
Parameters
identifier
Type: System.Int64
connectorId
Type: System.Int32
subElementIndex
Type: System.Int32
402 EIO0000003799
Script Engine Class Library User Guide
variable
Type: System.String
The name of the variable on which the value should be mapped. If null
(None in Python) is passed, the current mapping is removed.
createVariable (Optional)
Type: System.Boolean
See Also
DevicePropertiesExtension Class
set_parameter_io_variable_mapping Overload
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 403
Script Engine Class Library User Guide
IScriptChildDevicesExtension Interface
Interface to retreive all child devices that can be appended to a device or
project.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptChildDevicesExtension
Methods
Name Description
IScriptChildDevicesExtension.get_allowed_child_devices Retrieve all the child
Method devices that can be
appended to this device or
project.
See Also
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
404 EIO0000003799
Script Engine Class Library User Guide
IScriptChildDevicesExtension.IScriptChildDevicesExtension Methods
The IScriptChildDevicesExtension type exposes the following members.
Methods
Name Description
get_allowed_child_devices Retrieve all the child devices that can be appended to this
device or project.
See Also
IScriptChildDevicesExtension Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 405
Script Engine Class Library User Guide
IScriptChildDevicesExtension.get_allowed_child_devices Method
Retrieve all the child devices that can be appended to this device or project.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptDeviceCollection get_allowed_child_devices(
bool filterNewestVersions = true
)
Parameters
filterNewestVersions (Optional)
Type: System.Boolean
If set to true, only the newest version of each device is returned. This
parameter is optional, the default value is true.
Return Value
Type: IScriptDeviceCollection
A device collection of possible child devices.
Remarks
Examples
This example shows how to retrieve a list with all allowed child devices from
a device.
406 EIO0000003799
Script Engine Class Library User Guide
Python
# Script creates an empty project and prints all possible devices
that can be appended on top level
# We enable the new Python 3 print syntax
from __future__ import print_function
import os
See Also
IScriptChildDevicesExtension Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 407
Script Engine Class Library User Guide
IScriptDriverInfo Interface
This interface provides access to all information needed to properly
configure the driver and supporting objects of a device or connector.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptDriverInfo
Properties
Name Description
IScriptDriverInfo.always_update_variables_mode Retrieves or sets the always
Property mapping mode for the PLC as
it is done in the PLC settings
page.
IScriptDriverInfo.bus_cycle_task Property The name of the task, in
which to call "start buscycle".
IScriptDriverInfo.bus_cycle_task_guid Property set/get the bus cycle task
408 EIO0000003799
Script Engine Class Library User Guide
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 409
Script Engine Class Library User Guide
IScriptDriverInfo.IScriptDriverInfo Properties
The IScriptDriverInfo type exposes the following members.
Properties
Name Description
always_update_variables_mode Retrieves or sets the always mapping mode for
the PLC as it is done in the PLC settings page.
bus_cycle_task The name of the task, in which to call "start
buscycle".
bus_cycle_task_guid set/get the the bus cycle task
See Also
IScriptDriverInfo Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
410 EIO0000003799
Script Engine Class Library User Guide
IScriptDriverInfo.always_update_variables_mode Property
Retrieves or sets the always mapping mode for the PLC as it is done in the
PLC settings page.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
AlwaysUpdateVariablesMode always_update_variables_mode { get; set; }
Property Value
Type: AlwaysUpdateVariablesMode
Examples
Python
# The path to our project
project_path = r"D:\PythonProjects\ModifyUpdateIOsSettings.project"
EIO0000003799 411
Script Engine Class Library User Guide
See Also
IScriptDriverInfo Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
412 EIO0000003799
Script Engine Class Library User Guide
IScriptDriverInfo.bus_cycle_task Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string bus_cycle_task { get; set; }
Property Value
Type: String
Examples
Python
# Script searches for a specific device and prints all parameters
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 413
Script Engine Class Library User Guide
See Also
IScriptDriverInfo Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
414 EIO0000003799
Script Engine Class Library User Guide
IScriptDriverInfo.bus_cycle_task_guid Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
Guid bus_cycle_task_guid { get; set; }
Property Value
Type: Guid
Examples
Python
# Script searches for a specific device and prints all parameters
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 415
Script Engine Class Library User Guide
See Also
IScriptDriverInfo Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
416 EIO0000003799
Script Engine Class Library User Guide
IScriptDriverInfo.stop_reset_behaviour Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
StopResetBehaviour stop_reset_behaviour { get; set; }
Property Value
Type: StopResetBehaviour
Examples
Python
# The path to our project
project_path = r"D:\PythonProjects\ModifyUpdateIOsSettings.project"
EIO0000003799 417
Script Engine Class Library User Guide
if device != None:
if device.driver_info_ext.update_ios_in_stop == False:
See Also
IScriptDriverInfo Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
418 EIO0000003799
Script Engine Class Library User Guide
IScriptDriverInfo.stop_reset_behaviour_user_program Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string stop_reset_behaviour_user_program { get; set; }
Property Value
Type: String
Examples
Python
# The path to our project
project_path = r"D:\PythonProjects\ModifyUpdateIOsSettings.project"
EIO0000003799 419
Script Engine Class Library User Guide
if device != None:
if device.driver_info_ext.update_ios_in_stop == False:
See Also
IScriptDriverInfo Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
420 EIO0000003799
Script Engine Class Library User Guide
IScriptDriverInfo.update_ios_in_stop Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
bool update_ios_in_stop { get; set; }
Property Value
Type: Boolean
true if the bus should update IOs in stop; otherwise, false.
Examples
Python
# The path to our project
project_path = r"D:\PythonProjects\ModifyUpdateIOsSettings.project"
EIO0000003799 421
Script Engine Class Library User Guide
See Also
IScriptDriverInfo Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
422 EIO0000003799
Script Engine Class Library User Guide
IScriptVariableMapping Interface
Defines the mapping of a data element on a specific variable.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptVariableMapping
Properties
Name Description
IScriptVariableMapping.create_variable Describes whether a new variable should
Property be created or the channel is mapped on an
existing variable.
IScriptVariableMapping.default_variable The name of the default variable on which
Property the value should be mapped.
IScriptVariableMapping.id Property Retrieves the id of this object.
IScriptVariableMapping.variable Property The name of the variable on which the
value should be mapped.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 423
Script Engine Class Library User Guide
IScriptVariableMapping.IScriptVariableMapping Properties
The IScriptVariableMapping type exposes the following members.
Properties
Name Description
create_variable Describes whether a new variable should be created or the channel is
mapped on an existing variable.
default_variable The name of the default variable on which the value should be
mapped.
id Retrieves the id of this object.
variable The name of the variable on which the value should be mapped.
See Also
IScriptVariableMapping Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
424 EIO0000003799
Script Engine Class Library User Guide
IScriptVariableMapping.create_variable Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
bool create_variable { get; }
Property Value
Type: Boolean
See Also
IScriptVariableMapping Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 425
Script Engine Class Library User Guide
IScriptVariableMapping.default_variable Property
The name of the default variable on which the value should be mapped.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string default_variable { get; }
Property Value
Type: String
See Also
IScriptVariableMapping Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
426 EIO0000003799
Script Engine Class Library User Guide
IScriptVariableMapping.id Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
long id { get; }
Property Value
Type: Int64
See Also
IScriptVariableMapping Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
EIO0000003799 427
Script Engine Class Library User Guide
IScriptVariableMapping.variable Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptDeviceObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string variable { get; }
Property Value
Type: String
See Also
IScriptVariableMapping Interface
SchneiderElectric.Scripting.Extensions.ScriptDeviceObject Namespace
428 EIO0000003799
Script Engine Class Library User Guide
Chapter 8
SchneiderElectric.Scripting.Extensions.ScriptLibManObject
Namespace
This namespace contains extensions of the IScriptLibMan type of the existing
CODESYS ScriptEngine API.
Classes
Class Description
LibraryConfigurationExtension Library Extensions for IScriptApplication (based on
Class IScriptObject) and IScriptProject.
EIO0000003799 429
Script Engine Class Library User Guide
LibraryConfigurationExtension Class
Library Extensions for IScriptApplication (based on IScriptObject) and
IScriptProject
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptLibManObject.LibraryConfigura
tionExtension
Namespace: SchneiderElectric.Scripting.Extensions.ScriptLibManObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public class LibraryConfigurationExtension
Methods
Name Description
get_invalid_library_mappings Retrieves a list with full
names of libraries which
have references that
cause conflicts.
is_current_mapping_valid Verifies whether the
current mapping of the
library references is valid.
is_library_forward_compatible Verifies whether the
given library is a forward
compatible library.
430 EIO0000003799
Script Engine Class Library User Guide
See Also
Chapter 8 SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
EIO0000003799 431
Script Engine Class Library User Guide
LibraryConfigurationExtension.LibraryConfigurationExtension Methods
The LibraryConfigurationExtension type exposes the following members.
Methods
Name Description
LibraryConfigurationExtension.get_invalid_library_mappings Retrieves a list with full
Method names of libraries
which have references
that cause conflicts.
LibraryConfigurationExtension.is_current_mapping_valid Verifies whether the
Method current mapping of the
library references is
valid.
LibraryConfigurationExtension.is_library_forward_compatible Verifies whether the
Method given library is a
forward compatible
library.
LibraryConfigurationExtension.make_auto_mapping Method Automatically map and
update all libraries to
the best matching
versions.
set_new_library_version(String, String) Explicitly sets a specific
version mapping for
the given library.
set_new_library_version(String, String, String) Explicitly sets a specific
version mapping for
the given library.
See Also
LibraryConfigurationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
432 EIO0000003799
Script Engine Class Library User Guide
LibraryConfigurationExtension.get_invalid_library_mappings Method
Retrieves a list with full names of libraries which have references that cause
conflicts.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptLibManObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string[] get_invalid_library_mappings()
Return Value
Type: String[ ]
A list with full names of the libraries in conflict state
Examples
This example shows how to retrieve invalid mappings from project and
application
Python
p = projects.primary
libmgr = p.get_library_manager()
print("Checking project library mappings")
if not libmgr.is_current_mapping_valid():
for lib in libmgr.get_invalid_library_mappings():
print("Library reference cannot be satisfied for: " + lib)
else:
print("All mappings valid")
app = p.active_application
libmgr = app.get_library_manager()
print("Checking application library mappings")
if not libmgr.is_current_mapping_valid():
for lib in libmgr.get_invalid_library_mappings():
EIO0000003799 433
Script Engine Class Library User Guide
See Also
LibraryConfigurationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
434 EIO0000003799
Script Engine Class Library User Guide
LibraryConfigurationExtension.is_current_mapping_valid Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptLibManObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public bool is_current_mapping_valid()
Return Value
Type: Boolean
True if all mappings are valid, false otherwise
Examples
This example shows how to validate mappings and retrieve the invalid
mappings.
Python
p = projects.primary
libmgr = p.get_library_manager()
print("Checking project library mappings")
if not libmgr.is_current_mapping_valid():
for lib in libmgr.get_invalid_library_mappings():
print("Library reference cannot be satisfied for: " + lib)
else:
print("All mappings valid")
app = p.active_application
libmgr = app.get_library_manager()
print("Checking application library mappings")
if not libmgr.is_current_mapping_valid():
for lib in libmgr.get_invalid_library_mappings():
print("Library reference cannot be satisfied for: " + lib)
EIO0000003799 435
Script Engine Class Library User Guide
else:
print("All mappings valid")
See Also
LibraryConfigurationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
436 EIO0000003799
Script Engine Class Library User Guide
LibraryConfigurationExtension.is_library_forward_compatible Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptLibManObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public bool is_library_forward_compatible(
string libDisplayName
)
Parameters
libDisplayName
Type: System.String
Return Value
Type: Boolean
True if the given library is forward compatible, false otherwise
Examples
Python
p = projects.primary
app = p.active_application
libmgr = app.get_library_manager()
EIO0000003799 437
Script Engine Class Library User Guide
See Also
LibraryConfigurationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
438 EIO0000003799
Script Engine Class Library User Guide
LibraryConfigurationExtension.make_auto_mapping Method
Automatically map and update all libraries to the best matching versions.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptLibManObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void make_auto_mapping(
bool replaceExistingLegacyMappings = false,
bool reportChanges = false
)
Parameters
replaceExistingLegacyMappings (Optional)
Type: System.Boolean
reportChanges (Optional)
Type: System.Boolean
Examples
Python
p = projects.primary
app = p.active_application
libmgr = app.get_library_manager()
EIO0000003799 439
Script Engine Class Library User Guide
if libmgr.is_current_mapping_valid():
print("Current mapping is valid")
else:
print("Updating all libraries")
libmgr.make_auto_mapping()
See Also
LibraryConfigurationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
440 EIO0000003799
Script Engine Class Library User Guide
LibraryConfigurationExtension.set_new_library_version Method
Overload List
Name Description
set_new_library_version(String, String) Explicitly sets a specific version mapping for
the given library.
set_new_library_version(String, String, Explicitly sets a specific version mapping for
String) the given library.
See Also
LibraryConfigurationExtension Class
SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
EIO0000003799 441
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.Extensions.ScriptLibManObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_new_library_version(
string libraryFullName,
string newLibVersion
)
Parameters
libraryFullName
Type: System.String
newLibVersion
Type: System.String
Examples
This example shows the various methods for setting the referenced library
version
Python
442 EIO0000003799
Script Engine Class Library User Guide
p = projects.primary
app = p.active_application
libmgr = app.get_library_manager()
# set version using individual parameters
libmgr.set_new_library_version("PD_GlobalDiagnostics", "Schneider
Electric", "1.0.1.0")
# set version using the library full name
libmgr.set_new_library_version("PD_AxisModule, 1.1.6.0 (Schneider
Electric)", "1.2.4.0")
# set version to Legacy
libmgr.set_new_library_version("PD_Template", "Schneider Electric",
None)
See Also
LibraryConfigurationExtension Class
LibraryConfigurationExtension.set_new_library_version Method
SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
EIO0000003799 443
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.Extensions.ScriptLibManObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_new_library_version(
string libName,
string libVendor,
string newLibVersion
)
Parameters
libName
Type: System.String
libVendor
Type: System.String
newLibVersion
Type: System.String
Examples
444 EIO0000003799
Script Engine Class Library User Guide
This example shows the various methods for setting the referenced library
version
Python
p = projects.primary
app = p.active_application
libmgr = app.get_library_manager()
# set version using individual parameters
libmgr.set_new_library_version("PD_GlobalDiagnostics", "Schneider
Electric", "1.0.1.0")
# set version using the library full name
libmgr.set_new_library_version("PD_AxisModule, 1.1.6.0 (Schneider
Electric)", "1.2.4.0")
# set version to Legacy
libmgr.set_new_library_version("PD_Template", "Schneider Electric",
None)
See Also
LibraryConfigurationExtension Class
set_new_library_version Overload
SchneiderElectric.Scripting.Extensions.ScriptLibManObject Namespace
EIO0000003799 445
Script Engine Class Library User Guide
Chapter 9
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
This namespace contains extensions of the ScriptObject type of the existing
CODESYS ScriptEngine API.
Classes
Class Description
PouExtension Class provides access to the interface and implementation text of a
Class POU. Only Statement List is supported as this extension is written for
text.
Interfaces
Interface Description
IScriptNetwork This interface provides access to a specific network of an NWL
Interface object.
446 EIO0000003799
Script Engine Class Library User Guide
PouExtension Class
Class provides access to the interface and implementation text of a POU.
Only Statement List is supported as this extension is written for text.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptObject.PouExtension
Syntax
C#
public class PouExtension
Properties
Name Description
PouExtension.has_nwl_implementation Retrieves a value indicating whether this
Property IScriptObject has a nwl implementation
part.
PouExtension.is_POU Property Returns true if the object is a POU.
Methods
Name Description
PouExtension.get_implementation_text Retrieves the current implementation
Method text.
EIO0000003799 447
Script Engine Class Library User Guide
Remarks
This class is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
448 EIO0000003799
Script Engine Class Library User Guide
PouExtension.PouExtension Properties
The PouExtension type exposes the following members.
Properties
Name Description
has_nwl_implementation Retrieves a value indicating whether this IScriptObject has a
nwl implementation part.
is_POU Returns true if the object is a POU.
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
EIO0000003799 449
Script Engine Class Library User Guide
PouExtension.has_nwl_implementation Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public bool has_nwl_implementation { get; }
Property Value
Type: Boolean
true if it has a textual implementation; otherwise, false.
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
450 EIO0000003799
Script Engine Class Library User Guide
PouExtension.is_POU Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public bool is_POU { get; }
Property Value
Type: Boolean
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
EIO0000003799 451
Script Engine Class Library User Guide
PouExtension.PouExtension Methods
The PouExtension type exposes the following members.
Methods
Name Description
get_implementation_text Retrieves the current implementation text.
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
452 EIO0000003799
Script Engine Class Library User Guide
PouExtension.get_implementation_text Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string get_implementation_text()
Return Value
Type: String
Returns a string of the current implementation text.
Examples
Python
if not projects.primary:
system.ui.error('No primary project set')
p = projects.primary
pou = p.find('SR_Main', True)[0]
code = pou.get_implementation_text()
print(code)
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
EIO0000003799 453
Script Engine Class Library User Guide
PouExtension.get_interface_text Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string get_interface_text()
Return Value
Type: String
Returns the current interface text.
Examples
This example shows how to retrieve the text of the POU declaration part.
Python
if not projects.primary:
system.ui.error('No primary project set')
p = projects.primary
pou = p.find('SR_Main', True)[0]
decl = pou.get_interface_text()
print(decl)
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
454 EIO0000003799
Script Engine Class Library User Guide
PouExtension.get_network Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IScriptNetwork get_network(
int network_number
)
Parameters
network_number
Type: System.Int32
Return Value
Type: IScriptNetwork
Returns the specified network.
Examples
This example shows how to retrieve and analyze the networks of a POU and
remove some of the items.
Python
# Script shows how to retrieve and analyze the network list of a POU
and remove some of the containing items.
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 455
Script Engine Class Library User Guide
if not projects.primary:
system.ui.error('No primary project set')
proj = projects.primary
print("After action:")
print_networks()
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
456 EIO0000003799
Script Engine Class Library User Guide
PouExtension.get_networks Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IEnumerable<IScriptNetwork> get_networks()
Return Value
Type: IEnumerable(IScriptNetwork)
Returns a list of all networks.
Examples
This example shows how to retrieve and analyze the networks of a POU and
remove some of the items.
Python
# Script shows how to retrieve and analyze the network list of a POU
and remove some of the containing items.
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 457
Script Engine Class Library User Guide
if not projects.primary:
system.ui.error('No primary project set')
proj = projects.primary
print("After action:")
print_networks()
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
458 EIO0000003799
Script Engine Class Library User Guide
PouExtension.remove_network Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void remove_network(
int network_number
)
Parameters
network_number
Type: System.Int32
Examples
This example shows how to retrieve and analyze the networks of a POU and
remove some of the items.
Python
# Script shows how to retrieve and analyze the network list of a POU
and remove some of the containing items.
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 459
Script Engine Class Library User Guide
if not projects.primary:
system.ui.error('No primary project set')
proj = projects.primary
print("After action:")
print_networks()
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
460 EIO0000003799
Script Engine Class Library User Guide
PouExtension.set_implementation_text Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_implementation_text(
string implementationText
)
Parameters
implementationText
Type: System.String
Examples
This example shows how to set the text of the POU implementation part and
the declaration part.
Python
decl = "PROGRAM SR_Main\n" + \
"VAR\n" + \
" iTest: INT;\n" + \
"END_VAR";
if not projects.primary:
system.ui.error('No primary project set')
EIO0000003799 461
Script Engine Class Library User Guide
p = projects.primary
pou = p.find('SR_Main', True)[0]
pou.set_interface_text(decl)
pou.set_implementation_text(code)
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
462 EIO0000003799
Script Engine Class Library User Guide
PouExtension.set_interface_text Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_interface_text(
string interfaceText
)
Parameters
interfaceText
Type: System.String
Examples
This example shows how to set the text of the POU implementation part and
the declaration part.
Python
decl = "PROGRAM SR_Main\n" + \
"VAR\n" + \
" iTest: INT;\n" + \
"END_VAR";
if not projects.primary:
system.ui.error('No primary project set')
EIO0000003799 463
Script Engine Class Library User Guide
p = projects.primary
pou = p.find('SR_Main', True)[0]
pou.set_interface_text(decl)
pou.set_implementation_text(code)
See Also
PouExtension Class
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
464 EIO0000003799
Script Engine Class Library User Guide
IScriptNetwork Interface
This interface provides access to a specific network of an NWL object.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptNetwork
Properties
Name Description
IScriptNetwork.comment Property Retrieves or sets the network comment.
IScriptNetwork.id Property Retrieves the internal network id.
IScriptNetwork.label Property Retrieves or sets the network label.
IScriptNetwork.network_item_count Retrieves the number of subitems for the
Property network.
IScriptNetwork.network_number Retrieves the network number.
Property
IScriptNetwork.out_commented Retrieves or sets a boolean value indicating
Property whether this network is commented out.
IScriptNetwork.title Property Retrieves or sets the network title.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
EIO0000003799 465
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
466 EIO0000003799
Script Engine Class Library User Guide
IScriptNetwork.IScriptNetwork Properties
The IScriptNetwork type exposes the following members.
Properties
Name Description
comment Retrieves or sets the network comment.
id Retrieves the internal network id.
label Retrieves or sets the network label.
network_item_count Retrieves the number of subitems for the network.
network_number Retrieves the network number.
out_commented Retrieves or sets a boolean value indicating whether this network
is commented out or not.
title Retrieves or sets the network title.
See Also
IScriptNetwork Interface
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
EIO0000003799 467
Script Engine Class Library User Guide
IScriptNetwork.comment Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string comment { get; set; }
Property Value
Type: String
See Also
IScriptNetwork Interface
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
468 EIO0000003799
Script Engine Class Library User Guide
IScriptNetwork.id Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
long id { get; }
Property Value
Type: Int64
See Also
IScriptNetwork Interface
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
EIO0000003799 469
Script Engine Class Library User Guide
IScriptNetwork.label Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string label { get; set; }
Property Value
Type: String
See Also
IScriptNetwork Interface
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
470 EIO0000003799
Script Engine Class Library User Guide
IScriptNetwork.network_item_count Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
int network_item_count { get; }
Property Value
Type: Int32
See Also
IScriptNetwork Interface
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
EIO0000003799 471
Script Engine Class Library User Guide
IScriptNetwork.network_number Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
int network_number { get; }
Property Value
Type: Int32
See Also
IScriptNetwork Interface
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
472 EIO0000003799
Script Engine Class Library User Guide
IScriptNetwork.out_commented Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
bool out_commented { get; set; }
Property Value
Type: Boolean
See Also
IScriptNetwork Interface
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
EIO0000003799 473
Script Engine Class Library User Guide
IScriptNetwork.title Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string title { get; set; }
Property Value
Type: String
See Also
IScriptNetwork Interface
SchneiderElectric.Scripting.Extensions.ScriptObject Namespace
474 EIO0000003799
Script Engine Class Library User Guide
Chapter 10
SchneiderElectric.Scripting.Extensions.ScriptProject Namespace
This namespace contains extensions of the ScriptProject type of the existing
CODESYS ScriptEngine API.
Classes
Class Description
JobListExtension This class is an extension object of CoDeSys IScriptProjectObject.
Class Click on the class name to see all members.
UpdateExtension This class is an extension object of CoDeSys IScriptProjectObject.
Class Click on the class name to see all members.
EIO0000003799 475
Script Engine Class Library User Guide
JobListExtension Class
This class is an extension object of CoDeSys IScriptProjectObject.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptProject.JobListExtension
Syntax
C#
public class JobListExtension
Constructors
Name Description
JobListExtension Constructor Initializes a new instance of the UpdateExtension class.
Properties
Name Description
JobListExtension.job_list Provides access to job list objects and job
Property modification API.
See Also
SchneiderElectric.Scripting.Extensions.ScriptProject Namespace
476 EIO0000003799
Script Engine Class Library User Guide
JobListExtension Constructor
Initializes a new instance of the UpdateExtension class.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptProject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public JobListExtension(
IScriptProject baseObject
)
Parameters
baseObject
Type: IScriptProject
Exceptions
Exception Condition
ArgumentNullException baseObject is null.
See Also
JobListExtension Class
SchneiderElectric.Scripting.Extensions.ScriptProject Namespace
EIO0000003799 477
Script Engine Class Library User Guide
JobListExtension.JobListExtension Properties
The JobListExtension type exposes the following members.
Properties
Name Description
job_list Provides access to job list objects and job modification API.
See Also
JobListExtension Class
SchneiderElectric.Scripting.Extensions.ScriptProject Namespace
478 EIO0000003799
Script Engine Class Library User Guide
JobListExtension.job_list Property
Namespace: SchneiderElectric.Scripting.Extensions.ScriptProject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IScriptJobList job_list { get; }
Property Value
Type: IScriptJobList
See Also
JobListExtension Class
SchneiderElectric.Scripting.Extensions.ScriptProject Namespace
EIO0000003799 479
Script Engine Class Library User Guide
UpdateExtension Class
This class is an extension object of CoDeSys IScriptProjectObject.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptProject.UpdateExtension
Namespace: SchneiderElectric.Scripting.Extensions.ScriptProject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public class UpdateExtension
Methods
Name Description
UpdateExtension.update Updates all parts of the project to the latest
Method version.
See Also
SchneiderElectric.Scripting.Extensions.ScriptProject Namespace
480 EIO0000003799
Script Engine Class Library User Guide
UpdateExtension.UpdateExtension Methods
The UpdateExtension type exposes the following members.
Methods
Name Description
update Updates all parts of the project to the latest version.
See Also
UpdateExtension Class
SchneiderElectric.Scripting.Extensions.ScriptProject Namespace
EIO0000003799 481
Script Engine Class Library User Guide
UpdateExtension.update Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptProject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void update()
Examples
This example shows how to perform a comparison and print the resulting
comparison tree.
Python
# make sure that when started interactively, NOT to update the
project when the dialog requests it (click cancel)
p = projects.primary
print("Updating project")
p.update_project()
print("update done")
See Also
UpdateExtension Class
SchneiderElectric.Scripting.Extensions.ScriptProject Namespace
482 EIO0000003799
Script Engine Class Library User Guide
Chapter 11
SchneiderElectric.Scripting.Extensions.ScriptTaskObject
Namespace
This namespace contains extensions to read and modify task objects.
Classes
Class Description
ScriptCyclicTaskObject Legacy interface for task objects. This remains for
Class compatibility reasons to previous versions. The official API is
now provided directly by CODESYS.
EIO0000003799 483
Script Engine Class Library User Guide
ScriptCyclicTaskObject Class
Legacy interface for task objects. This remains for compatibility reasons to
previous versions. The official API is now provided directly by CODESYS.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Extensions.ScriptTaskObject.ScriptCyclicTaskObj
ect
Namespace: Chapter 11
SchneiderElectric.Scripting.Extensions.ScriptTaskObject Namespace
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public sealed class ScriptCyclicTaskObject
Constructors
Name Description
ScriptCyclicTaskObject Initializes a new instance of the
Constructor ScriptCyclicTaskObject class.
Methods
Name Description
ScriptCyclicTaskObject.add_pou Method Adds a new POU to the list of controlled
POUs.
484 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extensions.ScriptTaskObject Namespace
EIO0000003799 485
Script Engine Class Library User Guide
ScriptCyclicTaskObject Constructor
Initializes a new instance of the ScriptCyclicTaskObject class.
Namespace: SchneiderElectric.Scripting.Extensions.ScriptTaskObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public ScriptCyclicTaskObject(
IScriptObject scriptObject
)
Parameters
scriptObject
Type: IScriptObject
See Also
ScriptCyclicTaskObject Class
SchneiderElectric.Scripting.Extensions.ScriptTaskObject Namespace
486 EIO0000003799
Script Engine Class Library User Guide
ScriptCyclicTaskObject.ScriptCyclicTaskObject Methods
The ScriptCyclicTaskObject type exposes the following members.
Methods
Name Description
add_pou Adds a new POU to the list of controlled POUs.
get_pous The POUs which are controlled by the task.
remove_pou Removes a controlled POU at the specified index.
See Also
ScriptCyclicTaskObject Class
SchneiderElectric.Scripting.Extensions.ScriptTaskObject Namespace
EIO0000003799 487
Script Engine Class Library User Guide
ScriptCyclicTaskObject.add_pou Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptTaskObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void add_pou(
string pou_name,
string comment = null
)
Parameters
pou_name
Type: System.String
comment (Optional)
Type: System.String
An optional comment.
Exceptions
Exception Condition
ArgumentException pou_name is null or empty.
488 EIO0000003799
Script Engine Class Library User Guide
See Also
ScriptCyclicTaskObject Class
SchneiderElectric.Scripting.Extensions.ScriptTaskObject Namespace
EIO0000003799 489
Script Engine Class Library User Guide
ScriptCyclicTaskObject.get_pous Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptTaskObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public IList<string> get_pous()
Return Value
Type: IList(String)
A list of POU names, controlled by this task.
See Also
ScriptCyclicTaskObject Class
SchneiderElectric.Scripting.Extensions.ScriptTaskObject Namespace
490 EIO0000003799
Script Engine Class Library User Guide
ScriptCyclicTaskObject.remove_pou Method
Namespace: SchneiderElectric.Scripting.Extensions.ScriptTaskObject
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void remove_pou(
int index
)
Parameters
index
Type: System.Int32
Exceptions
Exception Condition
ArgumentOutOfRangeException index
is less than 0 -or- index is equal to or greater than Count
See Also
ScriptCyclicTaskObject Class
SchneiderElectric.Scripting.Extensions.ScriptTaskObject Namespace
EIO0000003799 491
Script Engine Class Library User Guide
Chapter 12
SchneiderElectric.Scripting.Extentions.DeviceIntegration
Namespace
This namespace contains extensions of the IScriptDevice type of the existing
CODESYS ScriptEngine API.
Interfaces
Interface Description
IScriptDeviceIntegration Interface Script object interface for Scripting API attached
to a script device object.
IScriptDeviceIntegrationExtension Scripting API to extend the device script object
Interface for Device Integration operations.
IScriptUserFunction Interface Script object interface for Scripting API of a user
function instance attached to a device object.
492 EIO0000003799
Script Engine Class Library User Guide
IScriptDeviceIntegration Interface
Script object interface for Scripting API attached to a script device object.
Namespace: Chapter 12
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptDeviceIntegration
Properties
Name Description
IScriptDeviceIntegration.active_user_functions Retrieves the active user
Property functions.
IScriptDeviceIntegration.all_user_functions Retrieves all available user
Property functions.
IScriptDeviceIntegration.device_variant Property Retrieves or sets the device
variant.
IScriptDeviceIntegration.inactive_user_functions Retrieves the inactive user
Property functions.
IScriptDeviceIntegration.is_supported Property Retrieves a value indicating
whether Device Integration
features are supported.
Methods
Name Description
EIO0000003799 493
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
494 EIO0000003799
Script Engine Class Library User Guide
IScriptDeviceIntegration.IScriptDeviceIntegration Properties
The IScriptDeviceIntegration type exposes the following members.
Properties
Name Description
active_user_functions Retrieves the active user functions.
all_user_functions Retrieves all available user functions.
device_variant Retrieves or sets the device variant.
inactive_user_functions Retrieves the inactive user functions.
is_supported Retrieves a value indicating whether Device Integration
features are supported.
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 495
Script Engine Class Library User Guide
IScriptDeviceIntegration.active_user_functions Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptUserFunction[] active_user_functions { get; }
Property Value
Type: IScriptUserFunction[]
The active user functions.
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
496 EIO0000003799
Script Engine Class Library User Guide
IScriptDeviceIntegration.all_user_functions Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptUserFunction[] all_user_functions { get; }
Property Value
Type: IScriptUserFunction[]
All available user functions.
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 497
Script Engine Class Library User Guide
IScriptDeviceIntegration.device_variant Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
int device_variant { get; set; }
Property Value
Type: Int32
the device variant.
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
498 EIO0000003799
Script Engine Class Library User Guide
IScriptDeviceIntegration.inactive_user_functions Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptUserFunction[] inactive_user_functions { get; }
Property Value
Type: IScriptUserFunction[]
The inactive user functions.
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 499
Script Engine Class Library User Guide
IScriptDeviceIntegration.is_supported Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool is_supported { get; }
Property Value
Type: Boolean
true if Device Integration features are supported; otherwise, false.
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
500 EIO0000003799
Script Engine Class Library User Guide
IScriptDeviceIntegration.IScriptDeviceIntegration Methods
The IScriptDeviceIntegration type exposes the following members.
Methods
Name Description
get_user_function_by_id Retrieves the user function by identifier.
test_dump_information Test API - not for public use.
test_set_user_functions_enabled_state Test API - not for public use.
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 501
Script Engine Class Library User Guide
IScriptDeviceIntegration.get_user_function_by_id Method
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptUserFunction get_user_function_by_id(
string id
)
Parameters
id
Type: System.String
The identifier.
Return Value
Type: IScriptUserFunction
The requested user function
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
502 EIO0000003799
Script Engine Class Library User Guide
IScriptDeviceIntegration.test_dump_information Method
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void test_dump_information()
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 503
Script Engine Class Library User Guide
IScriptDeviceIntegration.test_set_user_functions_enabled_state Method
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void test_set_user_functions_enabled_state(
bool enabled
)
Parameters
enabled
Type: System.Boolean
See Also
IScriptDeviceIntegration Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
504 EIO0000003799
Script Engine Class Library User Guide
IScriptDeviceIntegrationExtension Interface
Scripting API to extend the device script object for Device Integration
operations.
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptDeviceIntegrationExtension
Properties
Name Description
IScriptDeviceIntegrationExtension.device_integration Retrieves access to device
Property integration scripting API.
See Also
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 505
Script Engine Class Library User Guide
IScriptDeviceIntegrationExtension.IScriptDeviceIntegrationExtension
Properties
The IScriptDeviceIntegrationExtension type exposes the following members.
Properties
Name Description
device_integration Retrieves access to device integration scripting API.
See Also
IScriptDeviceIntegrationExtension Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
506 EIO0000003799
Script Engine Class Library User Guide
IScriptDeviceIntegrationExtension.device_integration Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptDeviceIntegration device_integration { get; }
Property Value
Type: IScriptDeviceIntegration
The access to device integration scripting API.
See Also
IScriptDeviceIntegrationExtension Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 507
Script Engine Class Library User Guide
IScriptUserFunction Interface
Script object interface for Scripting API of a user function instance attached
to a device object.
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptUserFunction
Properties
Name Description
IScriptUserFunction.description Retrieves the user function description.
Property
IScriptUserFunction.id Property Retrieves the user function id.
IScriptUserFunction.is_active Property Retrieves a value indicating whether user
function is active.
IScriptUserFunction.name Property Retrieves the user function name (displayable
name).
Methods
Name Description
IScriptUserFunction.activate Method Activates the user function.
IScriptUserFunction.deactivate Method Deactivates the user function.
508 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 509
Script Engine Class Library User Guide
IScriptUserFunction.IScriptUserFunction Properties
The IScriptUserFunction type exposes the following members.
Properties
Name Description
description Retrieves the user function description.
id Retrieves the user function id.
is_active Retrieves a value indicating whether user function is active.
name Retrieves the user function name (displayable name).
See Also
IScriptUserFunction Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
510 EIO0000003799
Script Engine Class Library User Guide
IScriptUserFunction.description Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string description { get; }
Property Value
Type: String
The user function description.
See Also
IScriptUserFunction Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 511
Script Engine Class Library User Guide
IScriptUserFunction.id Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string id { get; }
Property Value
Type: String
The user function id.
See Also
IScriptUserFunction Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
512 EIO0000003799
Script Engine Class Library User Guide
IScriptUserFunction.is_active Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
bool is_active { get; }
Property Value
Type: Boolean
true if this user function is active; otherwise, false.
See Also
IScriptUserFunction Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 513
Script Engine Class Library User Guide
IScriptUserFunction.name Property
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
string name { get; }
Property Value
Type: String
The user function name.
See Also
IScriptUserFunction Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
514 EIO0000003799
Script Engine Class Library User Guide
IScriptUserFunction.IScriptUserFunction Methods
The IScriptUserFunction type exposes the following members.
Methods
Name Description
activate Activates the user function.
deactivate Deactivates the user function.
See Also
IScriptUserFunction Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 515
Script Engine Class Library User Guide
IScriptUserFunction.activate Method
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void activate()
See Also
IScriptUserFunction Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
516 EIO0000003799
Script Engine Class Library User Guide
IScriptUserFunction.deactivate Method
Namespace: SchneiderElectric.Scripting.Extentions.DeviceIntegration
Assembly: SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin
(in SchneiderElectric.Programming.DeviceIntegration.Scripting.plugin.dll)
Version: Version 1.0-dev (developer build)
Syntax
C#
void deactivate()
See Also
IScriptUserFunction Interface
SchneiderElectric.Scripting.Extentions.DeviceIntegration Namespace
EIO0000003799 517
Script Engine Class Library User Guide
Chapter 13
SchneiderElectric.Scripting.Types.Communication Namespace
This namespace provides types that allow access to the communication
settings.
Classes
Class Description
Communication Class provides the functionality to show and change the
Class communication settings. Click on the members to show some
examples.
518 EIO0000003799
Script Engine Class Library User Guide
Communication Class
Class provides the functionality to show and change the communication
settings.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.Communication.Communication
Syntax
C#
public class Communication
Properties
Name Description
Communication.ip_address Property Obsolete.
Retrieves or sets the IP-Address.
Methods
Name Description
Communication.add_gateway Method Adds a gateway to the project.
EIO0000003799 519
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.Communication Namespace
520 EIO0000003799
Script Engine Class Library User Guide
Communication.Communication Properties
The Communication type exposes the following members.
Properties
Name Description
ip_address Obsolete.
Retrieves or sets the IP-Address.
See Also
Communication Class
SchneiderElectric.Scripting.Types.Communication Namespace
EIO0000003799 521
Script Engine Class Library User Guide
Communication.ip_address Property
Namespace: SchneiderElectric.Scripting.Types.Communication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
[ObsoleteAttribute("This property is obsolete. Please use
'get_communication_address' on the device object instead")]
public string ip_address { get; set; }
Property Value
Type: String
The IP-Address.
Remarks
See Also
Communication Class
SchneiderElectric.Scripting.Types.Communication Namespace
522 EIO0000003799
Script Engine Class Library User Guide
Communication.Communication Methods
The Communication type exposes the following members.
Methods
Name Description
add_gateway Adds a gateway to the project.
See Also
Communication Class
SchneiderElectric.Scripting.Types.Communication Namespace
EIO0000003799 523
Script Engine Class Library User Guide
Communication.add_gateway Method
Namespace: SchneiderElectric.Scripting.Types.Communication
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void add_gateway(
string gatewayName,
string gatewayAddress,
ushort gatewayPort
)
Parameters
gatewayName
Type: System.String
gatewayAddress
Type: System.String
gatewayPort
Type: System.UInt16
Examples
524 EIO0000003799
Script Engine Class Library User Guide
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
# Save project
projects.primary.save()
See Also
Communication Class
SchneiderElectric.Scripting.Types.Communication Namespace
EIO0000003799 525
Script Engine Class Library User Guide
Chapter 14
SchneiderElectric.Scripting.Types.Compiler Namespace
This namespace provides types that allow access to the compiler settings.
Classes
Class Description
CompilerSettings Class provides the functionality to show and change the current
Class compiler version. Click on the members to show some examples.
526 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings Class
Class provides the functionality to show and change the current compiler
version.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.Compiler.CompilerSettings
Syntax
C#
public class CompilerSettings
Properties
Name Description
CompilerSettings.active_compiler_version Property Retrieves or sets the active
compiler version.
CompilerSettings.active_compiler_version_as_text Retrieves or sets the active
Property compiler version (as text).
Methods
Name Description
EIO0000003799 527
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.Compiler Namespace
528 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings.CompilerSettings Properties
The CompilerSettings type exposes the following members.
Properties
Name Description
active_compiler_version Retrieves or sets the active compiler version.
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
EIO0000003799 529
Script Engine Class Library User Guide
CompilerSettings.active_compiler_version Property
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string active_compiler_version { get; set; }
Property Value
Type: String
The active compiler version.
Remarks
This property returns / requires the version format mapped by OEM. Use
MapFromInternalToOEMVersion() and MapFromOEMToInternalVersion() to
convert between CoDeSys and OEM version.
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
530 EIO0000003799
Script Engine Class Library User Guide
# Save project
projects.primary.save()
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
EIO0000003799 531
Script Engine Class Library User Guide
CompilerSettings.active_compiler_version_as_text Property
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string active_compiler_version_as_text { get; set; }
Property Value
Type: String
The active compiler version.
Remarks
This property returns / requires the version format mapped by OEM. Use
MapFromInternalToOEMVersion() and MapFromOEMToInternalVersion() to
convert between CoDeSys and OEM version.
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
532 EIO0000003799
Script Engine Class Library User Guide
# Save project
projects.primary.save()
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
EIO0000003799 533
Script Engine Class Library User Guide
CompilerSettings.CompilerSettings Methods
The CompilerSettings type exposes the following members.
Methods
Name Description
get_all_compiler_version_not_filtered Retrieves all compiler version not
filtered by OEM.
get_all_compiler_versions Retrieves all compiler versions.
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
534 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings.get_all_compiler_version_not_filtered Method
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string[] get_all_compiler_version_not_filtered()
Return Value
Type: String[ ]
Returns a full list with all compiler versions.
Remarks
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
proj = projects.primary
EIO0000003799 535
Script Engine Class Library User Guide
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
536 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings.get_all_compiler_versions Method
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string[] get_all_compiler_versions()
Return Value
Type: String[ ]
Returns a filtered list with all compiler versions.
Remarks
Examples
This example shows how to retrieve a list of OEM filtered compiler versions.
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
proj = projects.primary
EIO0000003799 537
Script Engine Class Library User Guide
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
538 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings.get_all_compiler_versions_as_text Method
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string[] get_all_compiler_versions_as_text()
Return Value
Type: String[ ]
Returns a filtered list with all compiler versions.
Remarks
Examples
This example shows how to retrieve a list of OEM filtered compiler versions.
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
proj = projects.primary
EIO0000003799 539
Script Engine Class Library User Guide
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
540 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings.map_from_internal_to_oem_version Method
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string map_from_internal_to_oem_version(
string version
)
Parameters
version
Type: System.String
Return Value
Type: String
The mapped OEM version, null if not mapped.
Examples
This example shows how to verify the mapping between an internal and
OEM compiler version.
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 541
Script Engine Class Library User Guide
proj = projects.primary
if mapped_version == None:
print (" - Not OEM mapped!")
else:
print (" - OEM mapped version: " + mapped_version)
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
542 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings.map_from_internal_to_oem_version_as_text Method
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string map_from_internal_to_oem_version_as_text(
string version
)
Parameters
version
Type: System.String
Return Value
Type: String
The mapped OEM version, null if not mapped.
Examples
This example shows how to verify the mapping between an internal and
OEM compiler version.
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 543
Script Engine Class Library User Guide
proj = projects.primary
if mapped_version == None:
print (" - Not OEM mapped!")
else:
print (" - OEM mapped version: " + mapped_version)
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
544 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings.map_from_oem_text_to_internal_version Method
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string map_from_oem_text_to_internal_version(
string version_as_text
)
Parameters
version_as_text
Type: System.String
Return Value
Type: String
The mapped internal version, null if not mapped.
Examples
This example shows how to verify the mapping between an OEM and
internal compiler version.
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
proj = projects.primary
EIO0000003799 545
Script Engine Class Library User Guide
if mapped_version == None:
# No mapping available
print (" - No CoDeSys based version mapped!")
else:
# Mapping available, print mapped version
print (" - CoDeSys based version: " + mapped_version)
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
546 EIO0000003799
Script Engine Class Library User Guide
CompilerSettings.map_from_oem_to_internal_version Method
Namespace: SchneiderElectric.Scripting.Types.Compiler
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string map_from_oem_to_internal_version(
string version
)
Parameters
version
Type: System.String
Return Value
Type: String
The mapped internal version, null if not mapped.
Examples
This example shows how to verify the mapping between an OEM and
internal compiler version.
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
proj = projects.primary
EIO0000003799 547
Script Engine Class Library User Guide
if mapped_version == None:
# No mapping available
print (" - No CoDeSys based version mapped!")
else:
# Mapping available, print mapped version
print (" - CoDeSys based version: " + mapped_version)
See Also
CompilerSettings Class
SchneiderElectric.Scripting.Types.Compiler Namespace
548 EIO0000003799
Script Engine Class Library User Guide
Chapter 15
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
This namespace contains types that support accessing and using ETEST
functionality from within the Python API.
Classes
Class Description
ScriptLegacyTestResult Part of the "legacy" scripting API - remains for
ClasstResult compatibility.
TestProvider Class Class that provides the functionality to run ETESTs and to
verify the results. Click on the members to show some
examples.
Interfaces
Interface Description
ILegacyScriptTestResult Interface Legacy interface to access the test results.
IScriptTestCaseObject Interface Functionality for manipulating test case objects.
IScriptTestCaseObject2 Interface Functionality for manipulating test case objects
and run them completely or just specific test sets /
test runs.
IScriptTestCaseObjectMarker Every IScriptObject instance will be extended with
Interface this method.
IScriptTestElement Interface Legacy interface to access a test element.
IScriptTestObjectContainer This allows objects to create test objects, e.g.,
Interface TestCases. The methods will be available in the
project root as well as applications, and folders
below them.
IScriptTestObjectContainer2 This allows objects to create test objects, e.g.
Interface TestCases. The methods will be available in the
EIO0000003799 549
Script Engine Class Library User Guide
Enumerations
Enumeration Description
TestExecutionState Enumeration Describes the state of the test execution.
TestResult Enumeration Describes the result of a test execution.
550 EIO0000003799
Script Engine Class Library User Guide
ScriptLegacyTestResult Class
Part of the "legacy" scripting API - remains for compatibility.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.EtestTestProvider.ScriptLegacyTestResult
Syntax
C#
public class ScriptLegacyTestResult : ILegacyScriptTestResult
Properties
Name Description
ScriptLegacyTestResult.is_successful Returns true if the overall result of this
Property ITestResult is successful. Returns false in all
other cases (unknown, unsuccessful, cancelled,
etc.).
Methods
Name Description
ScriptLegacyTestResult.get_global_result_string Retrieves the test result as string.
Method
EIO0000003799 551
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
552 EIO0000003799
Script Engine Class Library User Guide
ScriptLegacyTestResult.ScriptLegacyTestResult Properties
The ScriptLegacyTestResult type exposes the following members.
Properties
Name Description
is_successful Returns true if the overall result of this ITestResult is successful. Returns
false in all other cases (unknown, unsuccessful, cancelled, etc.).
See Also
ScriptLegacyTestResult Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 553
Script Engine Class Library User Guide
ScriptLegacyTestResult.is_successful Property
Returns true if the overall result of this ITestResult is successful. Returns false
in all other cases (unknown, unsuccessful, cancelled, etc.).
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public bool is_successful { get; }
Property Value
Type: Boolean
Implements
ILegacyScriptTestResult.is_successful
See Also
ScriptLegacyTestResult Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
554 EIO0000003799
Script Engine Class Library User Guide
ScriptLegacyTestResult.ScriptLegacyTestResult Methods
The ScriptLegacyTestResult type exposes the following members.
Methods
Name Description
get_global_result_string Retrieves the test result as string.
write_xml Writes the TestResult into an XML Document
See Also
ScriptLegacyTestResult Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 555
Script Engine Class Library User Guide
ScriptLegacyTestResult.get_global_result_string Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public string get_global_result_string()
Return Value
Type: String
The test result
Implements
ILegacyScriptTestResult.get_global_result_string()
See Also
ScriptLegacyTestResult Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
556 EIO0000003799
Script Engine Class Library User Guide
ScriptLegacyTestResult.write_xml Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public void write_xml(
Stream outStream
)
Parameters
outStream
Type: System.IO.Stream
Implements
ILegacyScriptTestResult.write_xml(Stream)
See Also
ScriptLegacyTestResult Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 557
Script Engine Class Library User Guide
TestProvider Class
Class that provides the functionality to run ETESTs and to verify the results.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.EtestTestProvider.TestProvider
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public class TestProvider
Properties
Name Description
TestProvider.is_test_running Property Indicates if the test is running.
Methods
Name Description
TestProvider.get_all_testcases Method Retrieves all testcases from a testseries.
558 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 559
Script Engine Class Library User Guide
TestProvider.TestProvider Properties
The TestProvider type exposes the following members.
Properties
Name Description
is_test_running Indicates if the test is running.
See Also
TestProvider Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
560 EIO0000003799
Script Engine Class Library User Guide
TestProvider.is_test_running Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public static bool is_test_running { get; }
Property Value
Type: Boolean
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
EIO0000003799 561
Script Engine Class Library User Guide
562 EIO0000003799
Script Engine Class Library User Guide
See Also
TestProvider Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 563
Script Engine Class Library User Guide
TestProvider.TestProvider Methods
The TestProvider type exposes the following members.
Methods
Name Description
get_all_testcases Retrieves all testcases from a testseries.
get_all_testelements Returns all testElements from a testseries.
get_all_testseries Returns all testseries from the project.
run_test This function runs an ETEST.
See Also
TestProvider Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
564 EIO0000003799
Script Engine Class Library User Guide
TestProvider.get_all_testcases Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public IList<string> get_all_testcases(
IExtendedObject<IScriptObject> application = null
)
Parameters
application (Optional)
Type: IExtendedObject(IScriptObject)
The application.
Return Value
Type: IList(String)
Returns a list of strings that contain the names of all testcases in the
testseries.
Exceptions
Exception Condition
ApplicationException Raised if no project is opened.
Examples
EIO0000003799 565
Script Engine Class Library User Guide
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
See Also
TestProvider Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
566 EIO0000003799
Script Engine Class Library User Guide
TestProvider.get_all_testelements Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public IEnumerable<IScriptTestElement> get_all_testelements(
string testseries,
IExtendedObject<IScriptObject> application = null
)
Parameters
testseries
Type: System.String
application (Optional)
Type: IExtendedObject(IScriptObject)
The application.
Return Value
Type: IEnumerable(IScriptTestElement)
Returns a list of testElements
Exceptions
Exception Condition
EIO0000003799 567
Script Engine Class Library User Guide
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
See Also
TestProvider Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
568 EIO0000003799
Script Engine Class Library User Guide
TestProvider.get_all_testseries Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public IList<string> get_all_testseries(
IExtendedObject<IScriptObject> application = null
)
Parameters
application (Optional)
Type: IExtendedObject(IScriptObject)
The application.
Return Value
Type: IList(String)
Returns a list of string that contains the names of all testseries.
Exceptions
Exception Condition
ApplicationException Raised if no project is opened.
Examples
EIO0000003799 569
Script Engine Class Library User Guide
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
See Also
TestProvider Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
570 EIO0000003799
Script Engine Class Library User Guide
TestProvider.run_test Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public ILegacyScriptTestResult run_test(
string testName,
string fullFilePath = null,
IExtendedObject<IScriptObject> application = null
)
Parameters
testName
Type: System.String
fullFilePath (Optional)
Type: System.String
application (Optional)
Type: IExtendedObject(IScriptObject)
Return Value
EIO0000003799 571
Script Engine Class Library User Guide
Type: ILegacyScriptTestResult
Returns the TestResult object of the finished test.
Exceptions
Exception Condition
ApplicationException
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
572 EIO0000003799
Script Engine Class Library User Guide
onlineapp.start()
See Also
TestProvider Class
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 573
Script Engine Class Library User Guide
ILegacyScriptTestResult Interface
Legacy interface to access the test results
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public interface ILegacyScriptTestResult
Properties
Name Description
ILegacyScriptTestResult.is_successful Returns true if the overall result of this
Property ITestResult is successful. Returns false in all
other cases (unknown, unsuccessful, cancelled,
etc.).
Methods
Name Description
ILegacyScriptTestResult.get_global_result_string Retrieves the test result as
Method string.
ILegacyScriptTestResult.write_xml Method Writes the TestResult into an
XML Document
Remarks
This interface is exported to Python, and thus adheres to Python naming
574 EIO0000003799
Script Engine Class Library User Guide
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 575
Script Engine Class Library User Guide
ILegacyScriptTestResult.ILegacyScriptTestResult Properties
The ILegacyScriptTestResult type exposes the following members.
Properties
Name Description
is_successful Returns true if the overall result of this ITestResult is successful. Returns
false in all other cases (unknown, unsuccessful, cancelled, etc.).
See Also
ILegacyScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
576 EIO0000003799
Script Engine Class Library User Guide
ILegacyScriptTestResult.is_successful Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
bool is_successful { get; }
Property Value
Type: Boolean
See Also
ILegacyScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 577
Script Engine Class Library User Guide
ILegacyScriptTestResult.ILegacyScriptTestResult Methods
The ILegacyScriptTestResult type exposes the following members.
Methods
Name Description
get_global_result_string Retrieves the test result as string.
write_xml Writes the TestResult into an XML Document
See Also
ILegacyScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
578 EIO0000003799
Script Engine Class Library User Guide
ILegacyScriptTestResult.get_global_result_string Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
string get_global_result_string()
Return Value
Type: String
The test result
See Also
ILegacyScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 579
Script Engine Class Library User Guide
ILegacyScriptTestResult.write_xml Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
void write_xml(
Stream outStream
)
Parameters
outStream
Type: System.IO.Stream
See Also
ILegacyScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
580 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObject Interface
Functionality for manipulating test case objects.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestCaseObject : IScriptTestCaseObjectMarker
Properties
Name Description
IScriptTestResourceObject.description Property The Description Text of
this test case.
IScriptTestCaseObject.is_parameterized_test_case_feature_ac Retrieves or sets a
tivated Property value indicating the
"parameterized test
case feature" is
activated.
IScriptTestCaseObject.resource_references Property Retrieves a sequence of
all referenced
IScriptTestResourceObj
ect names.
IScriptTestCaseObject.test_data_type_name Property Retrieves or sets the
data type (DUT) used
for the definition of
test runs.
EIO0000003799 581
Script Engine Class Library User Guide
Methods
Name Description
IScriptTestCaseObject.run Starts executing the TestCase on the active application.
Method This method instantly returns; execution runs
asynchronously.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
582 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObject.IScriptTestCaseObject Properties
The IScriptTestCaseObject type exposes the following members.
Properties
Name Description
description The Description Text of this test case.
is_parameterized_test_case_feature_activated Retrieves or sets a value indicating the
"parameterized test case feature" is
activated.
resource_references Retrieves a sequence of all referenced
IScriptTestResourceObject names.
test_data_type_name Retrieves or sets the data type (DUT)
used the definition of test runs.
test_data_variable_name Retrieves or sets the name of the test
data variable.
test_set_references Retrieves a sequence of all referenced
IScriptTestSetObject names.
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 583
Script Engine Class Library User Guide
IScriptTestCaseObject.description Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string description { get; set; }
Property Value
Type: String
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
584 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObject.is_parameterized_test_case_feature_activated
Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
bool is_parameterized_test_case_feature_activated { get; set; }
Property Value
Type: Boolean
true if the "parameterized test case feature" is activated; otherwise, false.
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 585
Script Engine Class Library User Guide
IScriptTestCaseObject.resource_references Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptList2<IScriptVarDeclaration> resource_references { get; }
Property Value
Type: IScriptList2(IScriptVarDeclaration)
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
586 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObject.test_data_type_name Property
Retrieves or sets the data type (DUT) used the definition of test runs.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string test_data_type_name { get; set; }
Property Value
Type: String
The test data type.
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 587
Script Engine Class Library User Guide
IScriptTestCaseObject.test_data_variable_name Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string test_data_variable_name { get; set; }
Property Value
Type: String
The name of the test data variable.
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
588 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObject.test_set_references Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptList2<string> test_set_references { get; }
Property Value
Type: IScriptList2(String)
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 589
Script Engine Class Library User Guide
IScriptTestCaseObject.IScriptTestCaseObject Methods
The IScriptTestCaseObject type exposes the following members.
Methods
Name Description
run Starts executing the TestCase on the active application. This method instantly
returns; execution runs asynchronously.
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
590 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObject.run Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptTestResult run(
IExtendedObject<IScriptObject> application = null
)
Parameters
application (Optional)
Type: IExtendedObject(IScriptObject)
Return Value
Type: IScriptTestResult
The result of the test run.
Exceptions
Exception Condition
TestStartImpossibleException An exception is raised when test execution could not be
started. This can have several reasons (not logged in, object
to test can't be executed, no task referencing the test suite,
etc.)
EIO0000003799 591
Script Engine Class Library User Guide
Remarks
See Also
IScriptTestCaseObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
592 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObject2 Interface
Functionality for manipulating test case objects and run them completely, or
just specific test sets / test runs.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestCaseObject2 : IScriptTestCaseObject,
IScriptTestCaseObjectMarker
Methods
Name Description
IScriptTestCaseObject2.run_partly Method Starts executing the TestCase on
(IExtendedObject`1(IScriptObject), UInt32, the active application. This method
IExtendedObject`1(IScriptObject)) instantly returns; execution runs
asynchronously.
IScriptTestCaseObject2.run_partly Method (String, Starts executing the TestCase on
UInt32, IExtendedObject`1(IScriptObject)) the active application. This method
instantly returns; execution runs
asynchronously.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 593
Script Engine Class Library User Guide
IScriptTestCaseObject2.IScriptTestCaseObject2 Methods
Methods
Name Description
run_partly(IExtendedObject(IScriptObject), Starts executing the TestCase on
UInt32, IExtendedObject(IScriptObject)) the active application. This method
instantly returns; execution runs
asynchronously.
run_partly(String, UInt32, Starts executing the TestCase on
IExtendedObject(IScriptObject)) the active application. This method
instantly returns; execution runs
asynchronously.
See Also
IScriptTestCaseObject2 Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
594 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObject2.run_partly Method
Overload List
Name Description
run_partly(IExtendedObject(IScriptObject), Starts executing the TestCase on
UInt32, IExtendedObject(IScriptObject)) the active application. This method
instantly returns; execution runs
asynchronously.
run_partly(String, UInt32, Starts executing the TestCase on
IExtendedObject(IScriptObject)) the active application. This method
instantly returns; execution runs
asynchronously.
See Also
IScriptTestCaseObject2 Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 595
Script Engine Class Library User Guide
IScriptTestCaseObject2.run_partly Method
(IExtendedObject`1(IScriptObject), UInt32, IExtendedObject`1(IScriptObject))
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptTestResult run_partly(
IExtendedObject<IScriptObject> test_set,
uint run_id = 0,
IExtendedObject<IScriptObject> application = null
)
Parameters
test_set
Type: IExtendedObject(IScriptObject)
run_id (Optional)
Type: System.UInt32
Index of the run in the context of the specified test set. If this parameter is
omitted or 0 is passed, all runs of the specified test set are executed. (This
parameter is optional.)
application (Optional)
Type: IExtendedObject(IScriptObject)
596 EIO0000003799
Script Engine Class Library User Guide
Return Value
Type: IScriptTestResult
The result of the test run.
Exceptions
Exception Condition
TestStartImpossibleException An exception is raised when test execution could not be
started. This can have several reasons (not logged in, object
to test can't be executed, no task referencing the test suite,
etc.)
Remarks
See Also
IScriptTestCaseObject2 Interface
IScriptTestCaseObject2.run_partly Method
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 597
Script Engine Class Library User Guide
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptTestResult run_partly(
string test_set_name,
uint run_id = 0,
IExtendedObject<IScriptObject> application = null
)
Parameters
test_set_name
Type: System.String
run_id (Optional)
Type: System.UInt32
Index of the run in the context of the specified test set. If this parameter is
omitted or 0 is passed, all runs of the specified test set are executed. (This
parameter is optional.)
application (Optional)
Type: IExtendedObject(IScriptObject)
598 EIO0000003799
Script Engine Class Library User Guide
Return Value
Type: IScriptTestResult
The result of the test run.
Exceptions
Exception Condition
TestStartImpossibleException An exception is raised when test execution could not be
started. This can have several reasons (not logged in, object
to test can't be executed, no task referencing the test suite,
etc.)
Remarks
See Also
IScriptTestCaseObject2 Interface
run_partly Overload
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 599
Script Engine Class Library User Guide
IScriptTestCaseObjectMarker Interface
Every IScriptObject instance will be extended with this method.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestCaseObjectMarker
Properties
Name Description
IScriptTestCaseObjectMarker.is_test_case Retrieves a value indicating whether
Property this instance is a test case object.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
600 EIO0000003799
Script Engine Class Library User Guide
IScriptTestCaseObjectMarker.IScriptTestCaseObjectMarker Properties
The IScriptTestCaseObjectMarker type exposes the following members.
Properties
Name Description
is_test_case Retrieves a value indicating whether this instance is a test case object.
See Also
IScriptTestCaseObjectMarker Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 601
Script Engine Class Library User Guide
IScriptTestCaseObjectMarker.is_test_case Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
bool is_test_case { get; }
Property Value
Type: Boolean
true if this instance is test case object; otherwise, false.
See Also
IScriptTestCaseObjectMarker Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
602 EIO0000003799
Script Engine Class Library User Guide
IScriptTestElement Interface
Legacy interface to access a test element.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
public interface IScriptTestElement
Properties
Name Description
IScriptTestElement.is_test_case Retrieves whether the element is a test case.
Property
IScriptTestElement.is_test_series Retrieves whether the element is a test series.
Property
IScriptTestElement.name Property Retrieves the name of the test element.
IScriptTestElement.object_guid Retrieves the object guid of the test element.
Property For CoDeSys based implementations, this is the
object Guid that is used to identify the object in
the object manager.
For all implementations this Guid is a unique
identifier: if two ITestElement instances have the
same ObjectGuid they represent the same entity.
Methods
Name Description
EIO0000003799 603
Script Engine Class Library User Guide
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
604 EIO0000003799
Script Engine Class Library User Guide
IScriptTestElement.IScriptTestElement Properties
The IScriptTestElement type exposes the following members.
Properties
Name Description
is_test_case Retrieves whether the element is a test case.
is_test_series Retrieves whether the element is a test series.
name Retrieves the name of the test element.
object_guid Retrieves the object Guid of the test element.
For CoDeSys based implementations, this is the object guid that is used
to identify the object in the object manager.
For all implementations this Guid is a unique identifier: if two
ITestElement instances have the same ObjectGuid they represent the
same entity.
See Also
IScriptTestElement Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 605
Script Engine Class Library User Guide
IScriptTestElement.is_test_case Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
bool is_test_case { get; }
Property Value
Type: Boolean
See Also
IScriptTestElement Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
606 EIO0000003799
Script Engine Class Library User Guide
IScriptTestElement.is_test_series Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
bool is_test_series { get; }
Property Value
Type: Boolean
See Also
IScriptTestElement Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 607
Script Engine Class Library User Guide
IScriptTestElement.name Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
string name { get; }
Property Value
Type: String
See Also
IScriptTestElement Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
608 EIO0000003799
Script Engine Class Library User Guide
IScriptTestElement.object_guid Property
For CoDeSys based implementations, this is the object Guid that is used to
identify the object in the object manager.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
Guid object_guid { get; }
Property Value
Type: Guid
See Also
IScriptTestElement Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 609
Script Engine Class Library User Guide
IScriptTestElement.IScriptTestElement Methods
The IScriptTestElement type exposes the following members.
Methods
Name Description
get_selected_elements Retrieves the elements selected by this element.
See Also
IScriptTestElement Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
610 EIO0000003799
Script Engine Class Library User Guide
IScriptTestElement.get_selected_elements Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: SchneiderElectric.Programming.Etest.Scripting.plugin (in
SchneiderElectric.Programming.Etest.Scripting.plugin.dll) Version: Version
1.0-dev (developer build)
Syntax
C#
IEnumerable<IScriptTestElement> get_selected_elements()
Return Value
Type: IEnumerable(IScriptTestElement)
all other elements that are selected by this element.
Remarks
See Also
IScriptTestElement Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 611
Script Engine Class Library User Guide
IScriptTestObjectContainer Interface
This allows objects to create test objects, e.g., TestCases. The methods will
be available in the project root as well as applications, and folders below
them.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestObjectContainer
Methods
Name Description
IScriptTestObjectContainer.create_test_case Method Creates a Test Case with the
specified name.
IScriptTestObjectContainer.create_test_resource Creates a Test Resource with the
Method specified name.
IScriptTestObjectContainer.create_test_series Creates a Test Series with the
Method specified name.
IScriptTestObjectContainer.create_test_set Method Creates a Test Set with the
specified name.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
612 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 613
Script Engine Class Library User Guide
IScriptTestObjectContainer.IScriptTestObjectContainer Methods
The IScriptTestObjectContainer type exposes the following members.
Methods
Name Description
create_test_case Creates a TestCase with the specified name.
create_test_resource Creates a TestResource with the specified name.
create_test_series Creates a TestSeries with the specified name.
create_test_set Creates a TestSet with the specified name.
See Also
IScriptTestObjectContainer Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
614 EIO0000003799
Script Engine Class Library User Guide
IScriptTestObjectContainer.create_test_case Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_test_case(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created TestCase.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
EIO0000003799 615
Script Engine Class Library User Guide
See Also
IScriptTestObjectContainer Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
616 EIO0000003799
Script Engine Class Library User Guide
IScriptTestObjectContainer.create_test_resource Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_test_resource(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created TestResource.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
EIO0000003799 617
Script Engine Class Library User Guide
See Also
IScriptTestObjectContainer Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
618 EIO0000003799
Script Engine Class Library User Guide
IScriptTestObjectContainer.create_test_series Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_test_series(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created TestSeries.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
EIO0000003799 619
Script Engine Class Library User Guide
See Also
IScriptTestObjectContainer Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
620 EIO0000003799
Script Engine Class Library User Guide
IScriptTestObjectContainer.create_test_set Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_test_set(
string name
)
Parameters
name
Type: System.String
The name.
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created TestSet.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
EIO0000003799 621
Script Engine Class Library User Guide
See Also
IScriptTestObjectContainer Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
622 EIO0000003799
Script Engine Class Library User Guide
IScriptTestObjectContainer2 Interface
This allows objects to create test objects, e.g., TestCases. The methods will
be available in the project root as well as applications, and folders below
them.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestObjectContainer2 :
IScriptTestObjectContainer
Methods
Name Description
IScriptTestObjectContainer2.create_test_case Method Creates a Test Case with the
specified name.
IScriptTestObjectContainer2.create_test_resource Creates a Test Resource with
Method the specified name.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 623
Script Engine Class Library User Guide
IScriptTestObjectContainer2.IScriptTestObjectContainer2 Methods
The IScriptTestObjectContainer2 type exposes the following members.
Methods
Name Description
create_test_case Creates a TestCase with the specified name.
create_test_resource Creates a TestResource with the specified name.
See Also
IScriptTestObjectContainer2 Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
624 EIO0000003799
Script Engine Class Library User Guide
IScriptTestObjectContainer2.create_test_case Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_test_case(
string name,
bool create_prepare,
bool create_execute,
bool create_finalize,
bool create_cleanup
)
Parameters
name
Type: System.String
The name.
create_prepare
Type: System.Boolean
create_execute
Type: System.Boolean
create_finalize
EIO0000003799 625
Script Engine Class Library User Guide
Type: System.Boolean
create_cleanup
Type: System.Boolean
Return Value
Type: IExtendedObject(IScriptObject)
The IScriptObject of the newly created TestCase.
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
See Also
IScriptTestObjectContainer2 Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
626 EIO0000003799
Script Engine Class Library User Guide
IScriptTestObjectContainer2.create_test_resource Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> create_test_resource(
string name,
bool create_prepare,
bool create_cleanup
)
Parameters
name
Type: System.String
The name.
create_prepare
Type: System.Boolean
create_cleanup
Type: System.Boolean
Return Value
Type: IExtendedObject(IScriptObject)
EIO0000003799 627
Script Engine Class Library User Guide
Exceptions
Exception Condition
Exception Any exception which occurs if the name is not an IEC identifier, or an object with
the same name already exists within the same namespace, or the object cannot
be created under the parent.
See Also
IScriptTestObjectContainer2 Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
628 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResourceObject Interface
Functionality for manipulating test resource objects.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestResourceObject :
IScriptTestResourceObjectMarker
Properties
Name Description
IScriptTestResourceObject.description Property The Description Text of this test
case.
IScriptTestResourceObject.resource_references Retrieves a sequence of all
Property referenced
IScriptTestResourceObject names.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 629
Script Engine Class Library User Guide
IScriptTestResourceObject.IScriptTestResourceObject Properties
The IScriptTestResourceObject type exposes the following members.
Properties
Name Description
description The Description Text of this test case.
resource_references Retrieves a sequence of all referenced IScriptTestResourceObject
names.
See Also
IScriptTestResourceObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
630 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResourceObject.description Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string description { get; set; }
Property Value
Type: String
See Also
IScriptTestResourceObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 631
Script Engine Class Library User Guide
IScriptTestResourceObject.resource_references Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptList2<IScriptVarDeclaration> resource_references { get; }
Property Value
Type: IScriptList2(IScriptVarDeclaration)
See Also
IScriptTestResourceObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
632 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResourceObjectMarker Interface
Every IScriptObject instance will be extended with this method.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestResourceObjectMarker
Properties
Name Description
IScriptTestSeriesObjectMarker.is_test_series Retrieves a value indicating whether
Property this instance is a test resource object.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 633
Script Engine Class Library User Guide
IScriptTestResourceObjectMarker.IScriptTestResourceObjectMarker
Properties
The IScriptTestResourceObjectMarker type exposes the following members.
Properties
Name Description
is_test_resource Retrieves a value indicating whether this instance is a test resource
object.
See Also
IScriptTestResourceObjectMarker Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
634 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResourceObjectMarker.is_test_resource Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
bool is_test_resource { get; }
Property Value
Type: Boolean
true if this instance is test resource object; otherwise, false.
See Also
IScriptTestResourceObjectMarker Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 635
Script Engine Class Library User Guide
IScriptTestResult Interface
Functionality to access a test result.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestResult
Properties
Name Description
IScriptTestResult.element_under_test Retrieves the tested element (TestCase or
Property TestSeries).
IScriptTestResult.end_time Property Retrieves the end time of the test run or
null, if the test run is not yet finished.
IScriptTestResult.execution_state Retrieves the execution state (running or
Property finished). Until test execution is finished, no
meaningful result will be available.
IScriptTestResult.operator_comment Operator Comment (entered by user).
Property
IScriptTestResult.operator_name Operator Name (entered by user).
Property
IScriptTestResult.result Property Retrieves the result of the executed test.
While the test is running, the result will be
unknown. Poll execution_state to wait for test
completion.
IScriptTestResult.start_time Property Retrieves the start time of the test run.
636 EIO0000003799
Script Engine Class Library User Guide
Methods
Name Description
IScriptTestResult.save_as_html Saves the result as an HTML file to the specified
Method path.
IScriptTestResult.save_as_xml Method Saves the result as a XML file to the specified
path.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 637
Script Engine Class Library User Guide
IScriptTestResult.IScriptTestResult Properties
The IScriptTestResult type exposes the following members.
Properties
Name Description
element_under_test Retrieves the tested element (TestCase or TestSeries).
end_time Retrieves the end time of the test run or null, if the test run is
not yet finished.
execution_state Retrieves the execution state (running or finished). Until test
execution is finished, no meaningful result will be available.
operator_comment Operator Comment (entered by user).
operator_name Operator Name (entered by user).
result Retrieves the result of the executed test. While the test is
running, the result will be unknown. Poll execution_state to wait
for test completion.
start_time Retrieves the start time of the test run.
task_cycle_time Cycle Time of the Task that executed the Test.
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
638 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResult.element_under_test Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IExtendedObject<IScriptObject> element_under_test { get; }
Property Value
Type: IExtendedObject(IScriptObject)
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 639
Script Engine Class Library User Guide
IScriptTestResult.end_time Property
Retrieves the end time of the test run or null if the test run is not yet
finished.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
Nullable<DateTime> end_time { get; }
Property Value
Type: Nullable(DateTime)
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
640 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResult.execution_state Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
TestExecutionState execution_state { get; }
Property Value
Type: TestExecutionState
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 641
Script Engine Class Library User Guide
IScriptTestResult.operator_comment Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string operator_comment { get; set; }
Property Value
Type: String
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
642 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResult.operator_name Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string operator_name { get; set; }
Property Value
Type: String
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 643
Script Engine Class Library User Guide
IScriptTestResult.result Property
Retrieves the result of the executed test. While the test is running, the result
will be unknown. Poll execution_state to wait for test completion.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
TestResult result { get; }
Property Value
Type: TestResult
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
644 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResult.start_time Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
DateTime start_time { get; }
Property Value
Type: DateTime
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 645
Script Engine Class Library User Guide
IScriptTestResult.task_cycle_time Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string task_cycle_time { get; }
Property Value
Type: String
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
646 EIO0000003799
Script Engine Class Library User Guide
IScriptTestResult.IScriptTestResult Methods
The IScriptTestResult type exposes the following members.
Methods
Name Description
save_as_html Saves the result as an HTML file to the specified path.
save_as_xml Saves the result as a XML file to the specified path.
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 647
Script Engine Class Library User Guide
IScriptTestResult.save_as_html Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string save_as_html(
string path = null,
string xsltPath = null
)
Parameters
path (Optional)
Type: System.String
The path of the export file. If omitted, it is exported into a string and returns
that string. (This parameter is optional.)
xsltPath (Optional)
Type: System.String
The path of the XSL transformation file to use. If omitted, we use the
standard ETEST template for transformation. (This parameter is optional.)
Return Value
Type: String
The exported HTML as string, or null if a file path is given.
648 EIO0000003799
Script Engine Class Library User Guide
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 649
Script Engine Class Library User Guide
IScriptTestResult.save_as_xml Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string save_as_xml(
string path
)
Parameters
path
Type: System.String
The path of the file we export into. If omitted, we export into a string and
return that string. (This parameter is optional.)
Return Value
Type: String
The exported XML as string, or null if a filepath is given.
See Also
IScriptTestResult Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
650 EIO0000003799
Script Engine Class Library User Guide
IScriptTestRun Interface
Functionality for manipulating a test run.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestRun
Properties
Name Description
IScriptTestRun.init_values Retrieves or sets the test run parameters. These
Property values will be used to initialize a test data type (DUT)
with the values defined by the user for a test run.
IScriptTestRun.user_comment Retrieves or sets a user comment for the test run.
Property
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 651
Script Engine Class Library User Guide
IScriptTestRun.IScriptTestRun Properties
The IScriptTestRun type exposes the following members.
Properties
Name Description
init_values Retrieves or sets the test run parameters. These values will be used to
initialize a test data type (DUT) with the values defined by the user for
a test run.
user_comment Retrieves or sets a user comment for the test run.
See Also
IScriptTestRun Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
652 EIO0000003799
Script Engine Class Library User Guide
IScriptTestRun.init_values Property
Retrieves or sets the test run parameters. These values will be used to
initialize a test data type (DUT) with the values defined by the user for a test
run.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptList2<string> init_values { get; }
Property Value
Type: IScriptList2(String)
See Also
IScriptTestRun Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 653
Script Engine Class Library User Guide
IScriptTestRun.user_comment Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string user_comment { get; set; }
Property Value
Type: String
The user comment.
See Also
IScriptTestRun Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
654 EIO0000003799
Script Engine Class Library User Guide
IScriptTestRun2 Interface
Functionality for manipulating a test run. Extension interface for
IScriptTestRun.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestRun2 : IScriptTestRun
Properties
Name Description
IScriptTestRun2.run_id Property Identifies a test run in a test set.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 655
Script Engine Class Library User Guide
IScriptTestRun2.IScriptTestRun2 Properties
The IScriptTestRun2 type exposes the following members.
Properties
Name Description
run_id Identifies a test run in a test set.
See Also
IScriptTestRun2 Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
656 EIO0000003799
Script Engine Class Library User Guide
IScriptTestRun2.run_id Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
uint run_id { get; }
Property Value
Type: UInt32
See Also
IScriptTestRun2 Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 657
Script Engine Class Library User Guide
IScriptTestSeriesObject Interface
Functionality for manipulating test series objects.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestSeriesObject :
IScriptTestSeriesObjectMarker
Properties
Name Description
IScriptTestSeriesObject.referenced_tests Retrieves referenced tests (test cases
Property and test series)
Methods
Name Description
IScriptTestSeriesObject.run Starts executing the TestSeries on the active
Method application. This method instantly returns; execution
runs asynchronously.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
658 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 659
Script Engine Class Library User Guide
IScriptTestSeriesObject.IScriptTestSeriesObject Properties
The IScriptTestSeriesObject type exposes the following members.
Properties
Name Description
referenced_tests Retrieves referenced tests (test cases and test series).
See Also
IScriptTestSeriesObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
660 EIO0000003799
Script Engine Class Library User Guide
IScriptTestSeriesObject.referenced_tests Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptList2<string> referenced_tests { get; }
Property Value
Type: IScriptList2(String)
See Also
IScriptTestSeriesObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 661
Script Engine Class Library User Guide
IScriptTestSeriesObject.IScriptTestSeriesObject Methods
The IScriptTestSeriesObject type exposes the following members.
Methods
Name Description
run Starts executing the TestSeries on the active application. This method instantly
returns; execution runs asynchronously.
See Also
IScriptTestSeriesObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
662 EIO0000003799
Script Engine Class Library User Guide
IScriptTestSeriesObject.run Method
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptTestResult run(
IExtendedObject<IScriptObject> application = null
)
Parameters
application (Optional)
Type: IExtendedObject(IScriptObject)
Return Value
Type: IScriptTestResult
The result of the test run.
Exceptions
Exception Condition
TestStartImpossibleException An exception is raised when test execution could not be
started. This can have several reasons (not logged in, object
to test can't be executed, no task referencing the test suite,
etc.)
EIO0000003799 663
Script Engine Class Library User Guide
Remarks
See Also
IScriptTestSeriesObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
664 EIO0000003799
Script Engine Class Library User Guide
IScriptTestSeriesObjectMarker Interface
Every IScriptObject instance will be extended with this method.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestSeriesObjectMarker
Properties
Name Description
IScriptTestSeriesObjectMarker.is_test_series Retrieves a value indicating whether
Property this instance is a test series object.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 665
Script Engine Class Library User Guide
IScriptTestSeriesObjectMarker.IScriptTestSeriesObjectMarker Properties
The IScriptTestSeriesObjectMarker type exposes the following members.
Properties
Name Description
is_test_series Retrieves a value indicating whether this instance is a test series object.
See Also
IScriptTestSeriesObjectMarker Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
666 EIO0000003799
Script Engine Class Library User Guide
IScriptTestSeriesObjectMarker.is_test_series Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
bool is_test_series { get; }
Property Value
Type: Boolean
true if this instance is test series object; otherwise, false.
See Also
IScriptTestSeriesObjectMarker Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 667
Script Engine Class Library User Guide
IScriptTestSetObject Interface
Functionality for manipulating test set objects.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestSetObject : IScriptTestSetObjectMarker
Properties
Name Description
IScriptTestSetObject.test_data_type_name Retrieves or sets the data type (DUT)
Property used the definition of test runs.
IScriptTestSetObject.test_runs Property Retrieves a sequence of all test runs
defined in this IScriptTestSetObject.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
668 EIO0000003799
Script Engine Class Library User Guide
IScriptTestSetObject.IScriptTestSetObject Properties
The IScriptTestSetObject type exposes the following members.
Properties
Name Description
test_data_type_name Retrieves or sets the data type (DUT) used the definition of test
runs.
test_runs Retrieves a sequence of all test runs defined in this
IScriptTestSetObject.
See Also
IScriptTestSetObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 669
Script Engine Class Library User Guide
IScriptTestSetObject.test_data_type_name Property
Retrieves or sets the data type (DUT) used the definition of test runs.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string test_data_type_name { get; set; }
Property Value
Type: String
The test data type.
See Also
IScriptTestSetObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
670 EIO0000003799
Script Engine Class Library User Guide
IScriptTestSetObject.test_runs Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
IScriptList2<IScriptTestRun> test_runs { get; }
Property Value
Type: IScriptList2(IScriptTestRun)
Remarks
Internally, the test run is referenced by its index. Therefore, the returned
reference is only valid as long as the index of the test run has not changed.
See Also
IScriptTestSetObject Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 671
Script Engine Class Library User Guide
IScriptTestSetObjectMarker Interface
Every IScriptObject instance will be extended with this method.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptTestSetObjectMarker
Properties
Name Description
IScriptTestSetObjectMarker.is_test_set Retrieves a value indicating whether this
Property instance is a test set object.
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
672 EIO0000003799
Script Engine Class Library User Guide
IScriptTestSetObjectMarker.IScriptTestSetObjectMarker Properties
The IScriptTestSetObjectMarker type exposes the following members.
Properties
Name Description
is_test_set Retrieves a value indicating whether this instance is a test set object.
See Also
IScriptTestSetObjectMarker Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 673
Script Engine Class Library User Guide
IScriptTestSetObjectMarker.is_test_set Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
bool is_test_set { get; }
Property Value
Type: Boolean
true if this instance is test set object; otherwise, false.
See Also
IScriptTestSetObjectMarker Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
674 EIO0000003799
Script Engine Class Library User Guide
IScriptVarDeclaration Interface
Functionality for manipulating test case objects.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptVarDeclaration
Properties
Name Description
IScriptVarDeclaration.name Retrieves or sets the name of the variable.
Property
IScriptVarDeclaration.type Retrieves or sets the type of the variable, e.g., INT
Property or REAL.
Remarks
An implementation class of this interface is injected under the name
"VarDeclaration" into the Python scope so Python code can create a variable
declaration without the need to sub-class that interface. The constructor
signature is: VarDeclaration(string name, string type). This interface is
exported to Python, and thus adheres to Python naming standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 675
Script Engine Class Library User Guide
IScriptVarDeclaration.IScriptVarDeclaration Properties
The IScriptVarDeclaration type exposes the following members.
Properties
Name Description
name Retrieves or sets the name of the variable.
type Retrieves or sets the type of the variable, e.g., INT or REAL.
See Also
IScriptVarDeclaration Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
676 EIO0000003799
Script Engine Class Library User Guide
IScriptVarDeclaration.name Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string name { get; }
Property Value
Type: String
The name of the variable.
See Also
IScriptVarDeclaration Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 677
Script Engine Class Library User Guide
IScriptVarDeclaration.type Property
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
string type { get; }
Property Value
Type: String
The type of the variable.
See Also
IScriptVarDeclaration Interface
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
678 EIO0000003799
Script Engine Class Library User Guide
TestExecutionState Enumeration
Describes the state of the test execution.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public enum TestExecutionState
Members
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
EIO0000003799 679
Script Engine Class Library User Guide
TestResult Enumeration
Describes the result of a test execution.
Namespace: SchneiderElectric.Scripting.Types.EtestTestProvider
Assembly: Elau.Epas5.PacUnitTest (in Elau.Epas5.PacUnitTest.dll) Version:
Version 1.0-dev (developer build)
Syntax
C#
public enum TestResult
Members
Remarks
This interface is exported to Python, and thus adheres to Python naming
standards.
See Also
SchneiderElectric.Scripting.Types.EtestTestProvider Namespace
680 EIO0000003799
Script Engine Class Library User Guide
Chapter 16
SchneiderElectric.Scripting.Types.JobList Namespace
This namespace provides types and methodes that allow access to the job
lists.
Interfaces
Interface Description
IScriptHistoryEntry Interface History information entry of a job.
IScriptJob Interface Represents a job instance item.
IScriptJobActivities Interface API to access job activity information.
IScriptJobActivity Interface Represents a job activity item in a job.
IScriptJobComment Interface Represents a comment entry in a job.
IScriptJobComments Interface Provides access to job comments.
IScriptJobList Interface Provides access to jobs.
IScriptJobTags Interface Provides access to job tags.
Enumerations
Enumeration Description
JobModificationActions Enumeration Type definition fo modification actions of jobs.
JobStates Enumeration The states which are assigned to a Job.
JobTypes Enumeration The Types which are assigned to a Job.
JobUrgencies Enumeration Represents the job urgency.
EIO0000003799 681
Script Engine Class Library User Guide
IScriptHistoryEntry Interface
History information entry of a job.
Syntax
C#
public interface IScriptHistoryEntry
Properties
Name Description
action Retrieves the action that reflects the type of
modification.
IScriptHistoryEntry.date Property Retrieves or sets the date when the history event
was created.
IScriptHistoryEntry.new_state Retrieves the JobState that is valid after the
Property modification.
IScriptHistoryEntry.old_state Retrieves the JobState that was valid before the
Property modification.
IScriptHistoryEntry.user Property The User that caused the entry.
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
682 EIO0000003799
Script Engine Class Library User Guide
IScriptHistoryEntry.IScriptHistoryEntry Properties
The IScriptHistoryEntry type exposes the following members.
Properties
Name Description
action Retrieves the action that reflects the type of modification.
date Retrieves or sets the date when the history event was created.
new_state Retrieves the JobState that is valid after the modification.
old_state Retrieves the JobState that was valid before the modification.
user The User that caused the entry.
See Also
IScriptHistoryEntry Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 683
Script Engine Class Library User Guide
IScriptHistoryEntry.action Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
JobModificationActions action { get; }
Property Value
Type: JobModificationActions
The action.
See Also
IScriptHistoryEntry Interface
SchneiderElectric.Scripting.Types.JobList Namespace
684 EIO0000003799
Script Engine Class Library User Guide
IScriptHistoryEntry.date Property
Retrieves or sets the date when the history event was created.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
DateTime date { get; }
Property Value
Type: DateTime
The date.
See Also
IScriptHistoryEntry Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 685
Script Engine Class Library User Guide
IScriptHistoryEntry.new_state Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
JobStates new_state { get; }
Property Value
Type: JobStates
The new state.
See Also
IScriptHistoryEntry Interface
SchneiderElectric.Scripting.Types.JobList Namespace
686 EIO0000003799
Script Engine Class Library User Guide
IScriptHistoryEntry.old_state Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
JobStates old_state { get; }
Property Value
Type: JobStates
The old state.
See Also
IScriptHistoryEntry Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 687
Script Engine Class Library User Guide
IScriptHistoryEntry.user Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string user { get; }
Property Value
Type: String
See Also
IScriptHistoryEntry Interface
SchneiderElectric.Scripting.Types.JobList Namespace
688 EIO0000003799
Script Engine Class Library User Guide
IScriptJob Interface
Represents a job instance item.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptJob
Properties
Name Description
IScriptJob.activities Property Retrieves the activities that are associated with
this Job.
IScriptJob.assigned_to Property The person who is assigned to the Job. Default =
Win Username
IScriptJob.closed_date Property The date when the Job was closed.
IScriptJob.comments Property Retrieves the comments that were added by the
user.
IScriptJob.creation_date Property The date when the Job was created. Default =
DateTime.Now.
IScriptJob.external_id Property Retrieves or sets the external identifier.
IScriptJob.guid Property The Guid from the Job.
IScriptJob.history Property History of state changes that were done on the
job.
IScriptJob.is_stored_project_global Declares if the Job could be seen by everyone.
Property Default = true.
EIO0000003799 689
Script Engine Class Library User Guide
IScriptJob.issuer Property The person who created the Job. Default = Win
UserName.
IScriptJob.state Property Shows the current Job state.
IScriptJob.tags Property A list of tags that help the user to categorize the
job and allow easy search/filter.
IScriptJob.title Property The Job title.
IScriptJob.tool_guid Property A Guid, which declares to which product the Job
is assigned, e.g., Motion or Logic Builder. As
default, the ToolGuid from the currently running
process, which has created the Job, is taken.
IScriptJob.type Property Declares the icon which is shown at the UI.
IScriptJob.urgency Property Represents the urgency for the Job. Default =
JobUrgency.Normal.
Methods
Name Description
IScriptJob.close Method Closes the Job.
IScriptJob.commit Method Saves the Job data.
IScriptJob.delete Method Deletes the Job.
IScriptJob.reopen Method Reopens the Job.
IScriptJob.set_in_progress Method Set Job to "in progress".
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
690 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.IScriptJob Properties
The IScriptJob type exposes the following members.
Properties
Name Description
activities Retrieves the activities that are associated with this Job.
assigned_to The person who is assigned to the Job. Default = Win
Username
closed_date The date when the Job was closed.
comments Retrieves the comments that were added by the user.
creation_date The date when the Job was created. Default = DateTime.Now.
external_id Retrieves or sets the external identifier.
guid The Guid from the Job.
history History of state changes that were done on the job.
is_stored_project_global Declares if the Job could be seen by everyone. Default = true.
issuer The person who created the Job. Default = Win UserName.
state Shows the current Job state.
tags A list of tags that help the user to categorize the job and allow
easy search/filter.
title The Job title.
tool_guid A Guid, which declares to which product the Job is assigned,
e.g., Motion or Logic Builder. As default, the ToolGuid from
the currently running process, which has created the Job, is
taken.
type Declares the icon which is shown at the UI.
urgency Represents the urgency for the Job. Default =
JobUrgency.Normal.
EIO0000003799 691
Script Engine Class Library User Guide
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
692 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.activities Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJobActivities activities { get; }
Property Value
Type: IScriptJobActivities
The activities.
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 693
Script Engine Class Library User Guide
IScriptJob.assigned_to Property
The person to whom is assigned the Job. Windows Username is the default.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string assigned_to { get; set; }
Property Value
Type: String
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
694 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.closed_date Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
DateTime closed_date { get; set; }
Property Value
Type: DateTime
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 695
Script Engine Class Library User Guide
IScriptJob.comments Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJobComments comments { get; }
Property Value
Type: IScriptJobComments
The list of comments.
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
696 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.creation_date Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
DateTime creation_date { get; set; }
Property Value
Type: DateTime
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 697
Script Engine Class Library User Guide
IScriptJob.external_id Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string external_id { get; set; }
Property Value
Type: String
The external identifier.
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
698 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.guid Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
Guid guid { get; set; }
Property Value
Type: Guid
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 699
Script Engine Class Library User Guide
IScriptJob.history Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptHistoryEntry[] history { get; }
Property Value
Type: IScriptHistoryEntry[]
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
700 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.is_stored_project_global Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
bool is_stored_project_global { get; set; }
Property Value
Type: Boolean
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 701
Script Engine Class Library User Guide
IScriptJob.issuer Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string issuer { get; set; }
Property Value
Type: String
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
702 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.state Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
JobStates state { get; set; }
Property Value
Type: JobStates
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 703
Script Engine Class Library User Guide
IScriptJob.tags Property
A list of tags that help the user to categorize the job and allow easy
search/filter.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJobTags tags { get; }
Property Value
Type: IScriptJobTags
The list of tags.
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
704 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.title Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string title { get; set; }
Property Value
Type: String
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 705
Script Engine Class Library User Guide
IScriptJob.tool_guid Property
A Guid, which declares to which product the Job is assigned, e.g., Motion or
Logic Builder. As default, the ToolGuid from the currently running process,
which has created the Job, is taken.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
Guid tool_guid { get; set; }
Property Value
Type: Guid
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
706 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.type Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
JobTypes type { get; set; }
Property Value
Type: JobTypes
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 707
Script Engine Class Library User Guide
IScriptJob.urgency Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
JobUrgencies urgency { get; set; }
Property Value
Type: JobUrgencies
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
708 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.IScriptJob Methods
The IScriptJob type exposes the following members.
Methods
Name Description
close Closes the Job.
commit Saves the Job data.
delete Deletes the Job.
reopen Reopens the Job.
set_in_progress Set Job to "in progress".
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 709
Script Engine Class Library User Guide
IScriptJob.close Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void close()
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
710 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.commit Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void commit()
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 711
Script Engine Class Library User Guide
IScriptJob.delete Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void delete()
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
712 EIO0000003799
Script Engine Class Library User Guide
IScriptJob.reopen Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void reopen()
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 713
Script Engine Class Library User Guide
IScriptJob.set_in_progress Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void set_in_progress()
See Also
IScriptJob Interface
SchneiderElectric.Scripting.Types.JobList Namespace
714 EIO0000003799
Script Engine Class Library User Guide
IScriptJobActivities Interface
API to access job activity information.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptJobActivities
Properties
Name Description
IScriptJobActivities.all Property Retrieve all activities.
Methods
Name Description
IScriptJobActivities.by_id Method Retrieves a job activity object by id.
IScriptJobActivities.create Method Creates a new job activity. Activity is attached to
the job.
IScriptJobActivities.has_activity Determines whether a job activity with specified
Method id exists.
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 715
Script Engine Class Library User Guide
IScriptJobActivities.IScriptJobActivities Properties
The IScriptJobActivities type exposes the following members.
Properties
Name Description
all Retrieve all activities.
See Also
IScriptJobActivities Interface
SchneiderElectric.Scripting.Types.JobList Namespace
716 EIO0000003799
Script Engine Class Library User Guide
IScriptJobActivities.all Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJobActivity[] all { get; }
Property Value
Type: IScriptJobActivity[]
All activities.
See Also
IScriptJobActivities Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 717
Script Engine Class Library User Guide
IScriptJobActivities.IScriptJobActivities Methods
The IScriptJobActivities type exposes the following members.
Methods
Name Description
by_id Retrieves a job activity object by id.
create Creates a new job activity. Activity is attached to the job.
has_activity Determines whether a job activity with specified id exists.
See Also
IScriptJobActivities Interface
SchneiderElectric.Scripting.Types.JobList Namespace
718 EIO0000003799
Script Engine Class Library User Guide
IScriptJobActivities.by_id Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJobActivity by_id(
Guid id
)
Parameters
id
Type: System.Guid
The identifier.
Return Value
Type: IScriptJobActivity
The job activity
See Also
IScriptJobActivities Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 719
Script Engine Class Library User Guide
IScriptJobActivities.create Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJobActivity create(
string title,
string instruction = ""
)
Parameters
title
Type: System.String
The title.
instruction (Optional)
Type: System.String
The instruction.
Return Value
Type: IScriptJobActivity
The job activity.
See Also
IScriptJobActivities Interface
SchneiderElectric.Scripting.Types.JobList Namespace
720 EIO0000003799
Script Engine Class Library User Guide
IScriptJobActivities.has_activity Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
bool has_activity(
Guid id
)
Parameters
id
Type: System.Guid
The identifier.
Return Value
Type: Boolean
true or false
See Also
IScriptJobActivities Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 721
Script Engine Class Library User Guide
IScriptJobActivity Interface
Represents a job activity item in a job.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptJobActivity
Properties
Name Description
IScriptJobActivity.guid Property Retrieves the unique identifier.
IScriptJobActivity.instruction Property Instructions for executing the Activity is
presented on the control that shows or initiates
the Activity.
IScriptJobActivity.parent_job_guid Retrieves the Guid of the parent job.
Property
IScriptJobActivity.title Property Retrieves the descriptive title of the Activity to
be presented to the user as short text.
Methods
Name Description
IScriptJobActivity.remove Method Removes this job activity from the job.
722 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 723
Script Engine Class Library User Guide
IScriptJobActivity.IScriptJobActivity Properties
The IScriptJobActivity type exposes the following members.
Properties
Name Description
guid Retrieves the unique identifier.
instruction Instructions for executing the Activity is presented on the control that
shows or initiates the Activity.
parent_job_guid Retrieves the Guid of the parent job.
title A descriptive title of the Activity that will be presented to the user as
short text.
See Also
IScriptJobActivity Interface
SchneiderElectric.Scripting.Types.JobList Namespace
724 EIO0000003799
Script Engine Class Library User Guide
IScriptJobActivity.guid Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
Guid guid { get; }
Property Value
Type: Guid
The unique identifier.
See Also
IScriptJobActivity Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 725
Script Engine Class Library User Guide
IScriptJobActivity.instruction Property
Instructions for executing the Activity is presented on the control that shows
or initiates the Activity.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string instruction { get; set; }
Property Value
Type: String
The instruction.
See Also
IScriptJobActivity Interface
SchneiderElectric.Scripting.Types.JobList Namespace
726 EIO0000003799
Script Engine Class Library User Guide
IScriptJobActivity.parent_job_guid Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
Guid parent_job_guid { get; }
Property Value
Type: Guid
The parent job unique identifier.
See Also
IScriptJobActivity Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 727
Script Engine Class Library User Guide
IScriptJobActivity.title Property
A descriptive title of the Activity that is presented to the user as short text.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string title { get; set; }
Property Value
Type: String
The title.
See Also
IScriptJobActivity Interface
SchneiderElectric.Scripting.Types.JobList Namespace
728 EIO0000003799
Script Engine Class Library User Guide
IScriptJobActivity.IScriptJobActivity Methods
The IScriptJobActivity type exposes the following members.
Methods
Name Description
remove Removes this job activity from the job.
See Also
IScriptJobActivity Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 729
Script Engine Class Library User Guide
IScriptJobActivity.remove Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void remove()
See Also
IScriptJobActivity Interface
SchneiderElectric.Scripting.Types.JobList Namespace
730 EIO0000003799
Script Engine Class Library User Guide
IScriptJobComment Interface
Represents a comment entry in a job.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptJobComment
Properties
Name Description
IScriptJobComment.date Property Retrieves or sets the date.
IScriptJobComment.guid Property Retrieves the unique identifier ob this job.
IScriptJobComment.text Property Retrieves or sets the comment text.
IScriptJobComment.user_name Property Retrieves or sets the user name.
Methods
Name Description
IScriptJobComment.remove Method Removes this comment entry from the job.
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 731
Script Engine Class Library User Guide
IScriptJobComment.IScriptJobComment Properties
The IScriptJobComment type exposes the following members.
Properties
Name Description
date Retrieves or sets the date.
guid Retrieves the unique identifier of this job.
text Retrieves or sets the comment text.
user_name Retrieves or sets the user name.
See Also
IScriptJobComment Interface
SchneiderElectric.Scripting.Types.JobList Namespace
732 EIO0000003799
Script Engine Class Library User Guide
IScriptJobComment.date Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
DateTime date { get; set; }
Property Value
Type: DateTime
The date.
See Also
IScriptJobComment Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 733
Script Engine Class Library User Guide
IScriptJobComment.guid Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
Guid guid { get; }
Property Value
Type: Guid
The unique identifier of this job.
See Also
IScriptJobComment Interface
SchneiderElectric.Scripting.Types.JobList Namespace
734 EIO0000003799
Script Engine Class Library User Guide
IScriptJobComment.text Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string text { get; set; }
Property Value
Type: String
The comment text.
See Also
IScriptJobComment Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 735
Script Engine Class Library User Guide
IScriptJobComment.user_name Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string user_name { get; set; }
Property Value
Type: String
The user name.
See Also
IScriptJobComment Interface
SchneiderElectric.Scripting.Types.JobList Namespace
736 EIO0000003799
Script Engine Class Library User Guide
IScriptJobComment.IScriptJobComment Methods
The IScriptJobComment type exposes the following members.
Methods
Name Description
remove Removes this comment entry from the job.
See Also
IScriptJobComment Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 737
Script Engine Class Library User Guide
IScriptJobComment.remove Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void remove()
See Also
IScriptJobComment Interface
SchneiderElectric.Scripting.Types.JobList Namespace
738 EIO0000003799
Script Engine Class Library User Guide
IScriptJobComments Interface
Provides access to job comments.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptJobComments
Properties
Name Description
IScriptJobComments.all Property Retrieves all comments.
Methods
Name Description
IScriptJobComments.create Creates a new comment; comment is attached to
Method the job.
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 739
Script Engine Class Library User Guide
IScriptJobComments.IScriptJobComments Properties
The IScriptJobComments type exposes the following members.
Properties
Name Description
all Retrieves all comments.
See Also
IScriptJobComments Interface
SchneiderElectric.Scripting.Types.JobList Namespace
740 EIO0000003799
Script Engine Class Library User Guide
IScriptJobComments.all Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJobComment[] all { get; }
Property Value
Type: IScriptJobComment[]
All comments.
See Also
IScriptJobComments Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 741
Script Engine Class Library User Guide
IScriptJobComments.IScriptJobComments Methods
The IScriptJobComments type exposes the following members.
Methods
Name Description
create Creates a new comment; comment is attached to the job.
See Also
IScriptJobComments Interface
SchneiderElectric.Scripting.Types.JobList Namespace
742 EIO0000003799
Script Engine Class Library User Guide
IScriptJobComments.create Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJobComment create(
string comment
)
Parameters
comment
Type: System.String
The comment.
Return Value
Type: IScriptJobComment
The comment
See Also
IScriptJobComments Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 743
Script Engine Class Library User Guide
IScriptJobList Interface
Provides access to jobs.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptJobList
Properties
Name Description
IScriptJobList.all Property Retrieves all jobs.
Methods
Name Description
IScriptJobList.by_assigned_to Retrieve all jobs of specified "assigned to".
Method
IScriptJobList.by_contains_tag Retrieve all jobs with specified tag.
Method
IScriptJobList.by_id Method Retrieve job by specified job guid.
IScriptJobList.by_issuer Method Retrieve all jobs of specified issuer.
IScriptJobList.by_state Method Retrieve all jobs with specified job state.
IScriptJobList.by_type Method Retrieve all jobs with specified job type.
IScriptJobList.by_urgency Method Retrieve all jobs with specified job urgency.
744 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 745
Script Engine Class Library User Guide
IScriptJobList.IScriptJobList Properties
The IScriptJobList type exposes the following members.
Properties
Name Description
all Retrieves all jobs.
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
746 EIO0000003799
Script Engine Class Library User Guide
IScriptJobList.all Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob[] all { get; }
Property Value
Type: IScriptJob[]
All jobs.
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 747
Script Engine Class Library User Guide
IScriptJobList.IScriptJobList Methods
The IScriptJobList type exposes the following members.
Methods
Name Description
by_assigned_to Retrieve all jobs of specified "assigned to".
by_contains_tag Retrieve all jobs with specified tag.
by_id Retrieve job by specified job guid.
by_issuer Retrieve all jobs of specified issuer.
by_state Retrieve all jobs with specified job state.
by_type Retrieve all jobs with specified job type.
by_urgency Retrieve all jobs with specified job urgency.
create Creates a new job. Job is not automatically added. job.commit() must
be called.
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
748 EIO0000003799
Script Engine Class Library User Guide
IScriptJobList.by_assigned_to Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob[] by_assigned_to(
string assigned_to
)
Parameters
assigned_to
Type: System.String
Return Value
Type: IScriptJob[]
The jobs
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 749
Script Engine Class Library User Guide
IScriptJobList.by_contains_tag Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob[] by_contains_tag(
params string[] tag
)
Parameters
tag
Type: System.String[]
The tag.
Return Value
Type: IScriptJob[]
The jobs
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
750 EIO0000003799
Script Engine Class Library User Guide
IScriptJobList.by_id Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob by_id(
Guid job_guid
)
Parameters
job_guid
Type: System.Guid
Return Value
Type: IScriptJob
The job
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 751
Script Engine Class Library User Guide
IScriptJobList.by_issuer Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob[] by_issuer(
string issuer
)
Parameters
issuer
Type: System.String
The issuer.
Return Value
Type: IScriptJob[]
The jobs
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
752 EIO0000003799
Script Engine Class Library User Guide
IScriptJobList.by_state Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob[] by_state(
JobStates state
)
Parameters
state
Type: SchneiderElectric.Scripting.Types.JobList.JobStates
Return Value
Type: IScriptJob[]
The jobs
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 753
Script Engine Class Library User Guide
IScriptJobList.by_type Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob[] by_type(
JobTypes type
)
Parameters
type
Type: SchneiderElectric.Scripting.Types.JobList.JobTypes
Return Value
Type: IScriptJob[]
The jobs
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
754 EIO0000003799
Script Engine Class Library User Guide
IScriptJobList.by_urgency Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob[] by_urgency(
JobUrgencies urgency
)
Parameters
urgency
Type: SchneiderElectric.Scripting.Types.JobList.JobUrgencies
Return Value
Type: IScriptJob[]
The jobs
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 755
Script Engine Class Library User Guide
IScriptJobList.create Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
IScriptJob create(
string title
)
Parameters
title
Type: System.String
The title.
Return Value
Type: IScriptJob
The job
See Also
IScriptJobList Interface
SchneiderElectric.Scripting.Types.JobList Namespace
756 EIO0000003799
Script Engine Class Library User Guide
IScriptJobTags Interface
Provides access to job tags.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public interface IScriptJobTags
Properties
Name Description
IScriptJobTags.all Property Retrieves all tags.
Methods
Name Description
IScriptJobTags.add Method Adds the specified tag.
IScriptJobTags.contains Method Determines whether the job contains the specified
tag.
IScriptJobTags.remove Method Removes the specified tag.
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 757
Script Engine Class Library User Guide
IScriptJobTags.IScriptJobTags Properties
The IScriptJobTags type exposes the following members.
Properties
Name Description
all Retrieves all tags.
See Also
IScriptJobTags Interface
SchneiderElectric.Scripting.Types.JobList Namespace
758 EIO0000003799
Script Engine Class Library User Guide
IScriptJobTags.all Property
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
string[] all { get; }
Property Value
Type: String[]
All tags.
See Also
IScriptJobTags Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 759
Script Engine Class Library User Guide
IScriptJobTags.IScriptJobTags Methods
The IScriptJobTags type exposes the following members.
Methods
Name Description
add Adds the specified tag.
contains Determines whether the job contains the specified tag.
remove Removes the specified tag.
See Also
IScriptJobTags Interface
SchneiderElectric.Scripting.Types.JobList Namespace
760 EIO0000003799
Script Engine Class Library User Guide
IScriptJobTags.add Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void add(
string tag
)
Parameters
tag
Type: System.String
The tag.
See Also
IScriptJobTags Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 761
Script Engine Class Library User Guide
IScriptJobTags.contains Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
bool contains(
string tag
)
Parameters
tag
Type: System.String
The tag.
Return Value
Type: Boolean
TRUE if tag is found otherwise FALSE.
See Also
IScriptJobTags Interface
SchneiderElectric.Scripting.Types.JobList Namespace
762 EIO0000003799
Script Engine Class Library User Guide
IScriptJobTags.remove Method
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
void remove(
string tag
)
Parameters
tag
Type: System.String
The tag.
See Also
IScriptJobTags Interface
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 763
Script Engine Class Library User Guide
JobModificationActions Enumeration
Type definition fo modification actions of jobs.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public enum JobModificationActions
Members
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
764 EIO0000003799
Script Engine Class Library User Guide
JobStates Enumeration
The states that a job can be assigned.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public enum JobStates
Members
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 765
Script Engine Class Library User Guide
JobTypes Enumeration
The Type which is assigned to a Job.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public enum JobTypes
Members
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
766 EIO0000003799
Script Engine Class Library User Guide
JobUrgencies Enumeration
Represents the job urgency.
Namespace: SchneiderElectric.Scripting.Types.JobList
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public enum JobUrgencies
Members
See Also
SchneiderElectric.Scripting.Types.JobList Namespace
EIO0000003799 767
Script Engine Class Library User Guide
Chapter 17
SchneiderElectric.Scripting.Types.LibraryPackage Namespace
This namespace provides types that allow access to the Library-Package
service.
Classes
Class Description
LibraryPackageApi Class provides the functionality to create and install Library-
Class Packages.
768 EIO0000003799
Script Engine Class Library User Guide
LibraryPackageApi Class
Class provides the functionality to create and install Library-Packages.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.LibraryPackage.LibraryPackageApi
Syntax
C#
public sealed class LibraryPackageApi
Methods
Name Description
LibraryPackageApi.create_library_package Creates a library package at the
Method specified location.
LibraryPackageApi.install_library_package Loads the specified library-package and
Method installs all contained libraries into the
repository.
See Also
SchneiderElectric.Scripting.Types.LibraryPackage Namespace
EIO0000003799 769
Script Engine Class Library User Guide
LibraryPackageApi.LibraryPackageApi Methods
The LibraryPackageApi type exposes the following members.
Methods
Name Description
create_library_package Creates a library package at the specified location.
See Also
LibraryPackageApi Class
SchneiderElectric.Scripting.Types.LibraryPackage Namespace
770 EIO0000003799
Script Engine Class Library User Guide
LibraryPackageApi.create_library_package Method
Namespace: SchneiderElectric.Scripting.Types.LibraryPackage
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void create_library_package(
string filePath,
IEnumerable<IManagedLib> libraries
)
Parameters
filePath
Type: System.String
libraries
Type: System.Collections.Generic.IEnumerable(IManagedLib)
Exceptions
Exception Condition
ArgumentException filePath is null or empty.
ArgumentNullException libraries is null.
Examples
EIO0000003799 771
Script Engine Class Library User Guide
This example shows how to retrieve a set of libraries from the Library
Manager and create a library package from them.
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
See Also
LibraryPackageApi Class
SchneiderElectric.Scripting.Types.LibraryPackage Namespace
772 EIO0000003799
Script Engine Class Library User Guide
LibraryPackageApi.install_library_package Method
Loads the specified library-package and installs all contained libraries into
the repository.
Namespace: SchneiderElectric.Scripting.Types.LibraryPackage
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void install_library_package(
string filePath,
bool overwrite = false
)
Parameters
filePath
Type: System.String
overwrite (Optional)
Type: System.Boolean
If set to true, existing libraries are replaced. This parameter is optional, the
default value is false.
Exceptions
Exception Condition
ArgumentException filePath is null or empty.
InvalidOperationException No library repository available.
EIO0000003799 773
Script Engine Class Library User Guide
Examples
This example shows how to install an existing library package to the system.
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
See Also
LibraryPackageApi Class
SchneiderElectric.Scripting.Types.LibraryPackage Namespace
774 EIO0000003799
Script Engine Class Library User Guide
Chapter 18
SchneiderElectric.Scripting.Types.NewProject Namespace
This namespace contains types and methods to create new projects from
Schneider Electric templates.
Classes
Class Description
CommonProjectSettings Class Common project settings for the new project.
CompilerMessage Class Data structure for a compiler message.
ControllerSettings Class Data structure for controller settings for the new
project.
NewProjectType Class This type contains methods for creating new projects.
Enumerations
Enumeration Description
ImplementationLanguage Implementation objects for the project wizard
Enumeration script driver.
EIO0000003799 775
Script Engine Class Library User Guide
CommonProjectSettings Class
Common project settings for the new project.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.NewProject.CommonProjectSettings
Syntax
C#
public class CommonProjectSettings
Properties
Name Description
CommonProjectSettings.author Property The author who creates the project.
CommonProjectSettings.company Property The company which created the
project.
CommonProjectSettings.customer Property The customer which created the
project.
CommonProjectSettings.description Property Project description.
CommonProjectSettings.machine_name Specifies the machine name.
Property
CommonProjectSettings.picture Property The path to a project picture.
776 EIO0000003799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 777
Script Engine Class Library User Guide
CommonProjectSettings.CommonProjectSettings Properties
The CommonProjectSettings type exposes the following members.
Properties
Name Description
author The author who creates the project.
company The company which created the project.
customer The customer which created the project.
description Project description.
machine_name Specifies the machine name.
picture The path to a project picture.
project_name The name of the project.
project_path The path where the project should be stored.
project_type The type of the project.
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
778 EIO0000003799
Script Engine Class Library User Guide
CommonProjectSettings.author Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string author { get; set; }
Property Value
Type: String
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 779
Script Engine Class Library User Guide
CommonProjectSettings.company Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string company { get; set; }
Property Value
Type: String
Remarks
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
780 EIO0000003799
Script Engine Class Library User Guide
CommonProjectSettings.customer Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string customer { get; set; }
Property Value
Type: String
Remarks
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 781
Script Engine Class Library User Guide
CommonProjectSettings.description Property
Project description.
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string description { get; set; }
Property Value
Type: String
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
782 EIO0000003799
Script Engine Class Library User Guide
CommonProjectSettings.machine_name Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string machine_name { get; set; }
Property Value
Type: String
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 783
Script Engine Class Library User Guide
CommonProjectSettings.picture Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string picture { get; set; }
Property Value
Type: String
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
784 EIO0000003799
Script Engine Class Library User Guide
CommonProjectSettings.project_name Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string project_name { get; set; }
Property Value
Type: String
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 785
Script Engine Class Library User Guide
CommonProjectSettings.project_path Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string project_path { get; set; }
Property Value
Type: String
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
786 EIO0000003799
Script Engine Class Library User Guide
CommonProjectSettings.project_type Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public ProjectTypes project_type { get; set; }
Property Value
Type: ProjectTypes
Remarks
• EDESIGN_Project
• StandardProject
• EmptyProject
• Library
See Also
CommonProjectSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 787
Script Engine Class Library User Guide
CompilerMessage Class
Data structure for a compiler message.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.NewProject.CompilerMessage
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public class CompilerMessage
Properties
Name Description
CompilerMessage.Severity Property Severity of the compiler message.
CompilerMessage.Text Property The compiler message.
See Also
SchneiderElectric.Scripting.Types.NewProject Namespace
788 EIO0000003799
Script Engine Class Library User Guide
CompilerMessage.CompilerMessage Properties
The CompilerMessage type exposes the following members.
Properties
Name Description
Severity Severity of the compiler message.
Text The compiler message.
See Also
CompilerMessage Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 789
Script Engine Class Library User Guide
CompilerMessage.Severity Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string Severity { get; set; }
Property Value
Type: String
See Also
CompilerMessage Class
SchneiderElectric.Scripting.Types.NewProject Namespace
790 EIO0000003799
Script Engine Class Library User Guide
CompilerMessage.Text Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string Text { get; set; }
Property Value
Type: String
See Also
CompilerMessage Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 791
Script Engine Class Library User Guide
ControllerSettings Class
Data structure for controller settings for the new project.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.NewProject.ControllerSettings
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public class ControllerSettings
Properties
Name Description
ControllerSettings.device_name Property Device Name.
ControllerSettings.id Property Device description ID.
ControllerSettings.implementation_language Property Programming language.
ControllerSettings.type Property Device description type.
ControllerSettings.version Property Device description version.
See Also
SchneiderElectric.Scripting.Types.NewProject Namespace
792 EIO0000003799
Script Engine Class Library User Guide
ControllerSettings.ControllerSettings Properties
The ControllerSettings type exposes the following members.
Properties
Name Description
device_name Device Name.
id Device description ID.
implementation_language Programming language.
type Device description type.
version Device description version.
See Also
ControllerSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 793
Script Engine Class Library User Guide
ControllerSettings.device_name Property
Device Name.
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string device_name { get; set; }
Property Value
Type: String
See Also
ControllerSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
794 EIO0000003799
Script Engine Class Library User Guide
ControllerSettings.id Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string id { get; set; }
Property Value
Type: String
See Also
ControllerSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 795
Script Engine Class Library User Guide
ControllerSettings.implementation_language Property
Programming language.
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public ImplementationLanguage implementation_language { get; set; }
Property Value
Type: ImplementationLanguage
See Also
ControllerSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
796 EIO0000003799
Script Engine Class Library User Guide
ControllerSettings.type Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public int type { get; set; }
Property Value
Type: Int32
See Also
ControllerSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 797
Script Engine Class Library User Guide
ControllerSettings.version Property
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public string version { get; set; }
Property Value
Type: String
See Also
ControllerSettings Class
SchneiderElectric.Scripting.Types.NewProject Namespace
798 EIO0000003799
Script Engine Class Library User Guide
NewProjectType Class
This type contains methods for creating new projects.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.NewProject.NewProjectType
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public class NewProjectType
Methods
Name Description
NewProjectType.clean_application Method Cleans the application. Raises an
exception if clean is
unsuccessful.
NewProjectType.compile_application Method Compiles the application.
EIO0000003799 799
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.NewProject Namespace
800 EIO0000003799
Script Engine Class Library User Guide
NewProjectType.NewProjectType Methods
The NewProjectType type exposes the following members.
Methods
Name Description
clean_application Cleans the application. Raises an exception if clean
is unsuccessful.
compile_application Compiles the application.
See Also
NewProjectType Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 801
Script Engine Class Library User Guide
NewProjectType.clean_application Method
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public void clean_application(
IExtendedObject<IScriptObject> application
)
Parameters
application
Type: IExtendedObject(IScriptObject)
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
802 EIO0000003799
Script Engine Class Library User Guide
# Clean application
new_project.clean_application(app)
See Also
NewProjectType Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 803
Script Engine Class Library User Guide
NewProjectType.compile_application Method
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public List<CompilerMessage> compile_application(
IExtendedObject<IScriptObject> application
)
Parameters
application
Type: IExtendedObject(IScriptObject)
Return Value
Type: List(CompilerMessage)
List of errors or null if no errors occured.
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
804 EIO0000003799
Script Engine Class Library User Guide
project_path = r"D:\PythonProjects\Example.project"
# Clean application
new_project.clean_application(app)
See Also
NewProjectType Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 805
Script Engine Class Library User Guide
NewProjectType.create_common_project_settings Method
Creates a new instance of the common project settings DTO which can be
used to create a new project.
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public CommonProjectSettings create_common_project_settings()
Return Value
Type: CommonProjectSettings
A new instance of the common project settings DTO.
See Also
NewProjectType Class
SchneiderElectric.Scripting.Types.NewProject Namespace
806 EIO0000003799
Script Engine Class Library User Guide
NewProjectType.create_controller_settings Method
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public ControllerSettings create_controller_settings()
Return Value
Type: ControllerSettings
A new instance of the controller settings DTO.
See Also
NewProjectType Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 807
Script Engine Class Library User Guide
NewProjectType.create_project Method
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public void create_project(
CommonProjectSettings commonProjectSettings,
ControllerSettings controllerSettings
)
Parameters
commonProjectSettings
Type: SchneiderElectric.Scripting.Types.NewProject.CommonProjectSettings
controllerSettings
Type: SchneiderElectric.Scripting.Types.NewProject.ControllerSettings
Examples
Python
# Clean up any open project:
if projects.primary:
projects.primary.close()
808 EIO0000003799
Script Engine Class Library User Guide
See Also
NewProjectType Class
SchneiderElectric.Scripting.Types.NewProject Namespace
EIO0000003799 809
Script Engine Class Library User Guide
ImplementationLanguage Enumeration
Implementation objects for the project wizard script driver.
Namespace: SchneiderElectric.Scripting.Types.NewProject
Assembly: SchneiderElectric.Programming.Scripting.plugin (in
SchneiderElectric.Programming.Scripting.plugin.dll) Version: Version 1.0-dev
(developer build)
Syntax
C#
public enum ImplementationLanguage
Members
See Also
SchneiderElectric.Scripting.Types.NewProject Namespace
810 EIO0000003799
Script Engine Class Library User Guide
Chapter 19
SchneiderElectric.Scripting.Types.Options Namespace
This namespace provides types that allow access to the options and feature
settings.
Classes
Class Description
FeatureSettings Class provides the functionality enable or disable of specific features
Class in the platform. Click on the members to show some examples.
EIO0000003799 811
Script Engine Class Library User Guide
FeatureSettings Class
Class provides the functionality enable or disable of specific features in the
platform.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.Options.FeatureSettings
Syntax
C#
public sealed class FeatureSettings
Methods
Name Description
FeatureSettings.get_feature_setting_value Verifies if a specific feature is
Method enabled.
FeatureSettings.set_feature_setting_value Enables or disables a specific
Method feature.
See Also
SchneiderElectric.Scripting.Types.Options Namespace
812 EIO0000003799
Script Engine Class Library User Guide
FeatureSettings.FeatureSettings Methods
The FeatureSettings type exposes the following members.
Methods
Name Description
get_feature_setting_value Verifies if a specific feature is enabled.
set_feature_setting_value Enables or disables a specific feature.
See Also
FeatureSettings Class
SchneiderElectric.Scripting.Types.Options Namespace
EIO0000003799 813
Script Engine Class Library User Guide
FeatureSettings.get_feature_setting_value Method
Namespace: SchneiderElectric.Scripting.Types.Options
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public bool get_feature_setting_value(
string groupId,
string featureId,
bool defaultValue
)
Parameters
groupId
Type: System.String
featureId
Type: System.String
defaultValue
Type: System.Boolean
If the requested feature is not present, this default value will be returned.
Return Value
Type: Boolean
814 EIO0000003799
Script Engine Class Library User Guide
See Also
FeatureSettings Class
SchneiderElectric.Scripting.Types.Options Namespace
EIO0000003799 815
Script Engine Class Library User Guide
FeatureSettings.set_feature_setting_value Method
Namespace: SchneiderElectric.Scripting.Types.Options
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public void set_feature_setting_value(
string groupId,
string featureId,
bool value
)
Parameters
groupId
Type: System.String
featureId
Type: System.String
value
Type: System.Boolean
See Also
816 EIO0000003799
Script Engine Class Library User Guide
FeatureSettings Class
SchneiderElectric.Scripting.Types.Options Namespace
EIO0000003799 817
Script Engine Class Library User Guide
Chapter 20
SchneiderElectric.Scripting.Types.Visualization Namespace
This namespace provides types that allow access to the visualization settings.
Classes
Class Description
VisualizationSettings Class provides the functionality to show and modify the
Class visualization settings. Click on the members to show some
examples.
818 EIO0000003799
Script Engine Class Library User Guide
VisualizationSettings Class
Class provides the functionality to show and modify the visualization
settings.
Inheritance Hierarchy
System.Object
SchneiderElectric.Scripting.Types.Visualization.VisualizationSettings
Syntax
C#
public class VisualizationSettings
Properties
Name Description
VisualizationSettings.active_profile_name Retrieves or sets the name of the active
Property profile. The name is the directory name of a
profile stored in visual elements repository.
Methods
Name Description
VisualizationSettings.get_all_visual_profile_names Retrieves all visual profile
Method names.
EIO0000003799 819
Script Engine Class Library User Guide
See Also
SchneiderElectric.Scripting.Types.Visualization Namespace
820 EIO0000003799
Script Engine Class Library User Guide
VisualizationSettings.VisualizationSettings Properties
The VisualizationSettings type exposes the following members.
Properties
Name Description
active_profile_name Retrieves or sets the name of the active profile. The name is the
directory name of a profile stored in visual elements repository.
See Also
VisualizationSettings Class
SchneiderElectric.Scripting.Types.Visualization Namespace
EIO0000003799 821
Script Engine Class Library User Guide
VisualizationSettings.active_profile_name Property
Retrieves or sets the name of the active profile. The name is the directory
name of a profile stored in visual elements repository.
Namespace: SchneiderElectric.Scripting.Types.Visualization
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string active_profile_name { get; set; }
Property Value
Type: String
The name of the active profile.
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
proj = projects.primary
822 EIO0000003799
Script Engine Class Library User Guide
# Save project
projects.primary.save()
See Also
VisualizationSettings Class
SchneiderElectric.Scripting.Types.Visualization Namespace
EIO0000003799 823
Script Engine Class Library User Guide
VisualizationSettings.VisualizationSettings Methods
The VisualizationSettings type exposes the following members.
Methods
Name Description
get_all_visual_profile_names Retrieves all visual profile names.
See Also
VisualizationSettings Class
SchneiderElectric.Scripting.Types.Visualization Namespace
824 EIO0000003799
Script Engine Class Library User Guide
VisualizationSettings.get_all_visual_profile_names Method
Namespace: SchneiderElectric.Scripting.Types.Visualization
Assembly: Elau.Epas5.ScriptDriver.plugin (in
Elau.Epas5.ScriptDriver.plugin.dll) Version: Version 1.0-dev (developer build)
Syntax
C#
public string[] get_all_visual_profile_names()
Return Value
Type: String[]
A list of available profile names.
Examples
Python
# We enable the new Python 3 print syntax
from __future__ import print_function
proj = projects.primary
EIO0000003799 825
Script Engine Class Library User Guide
# Save project
projects.primary.save()
See Also
VisualizationSettings Class
SchneiderElectric.Scripting.Types.Visualization Namespace
826 EIO0000003799