Sunteți pe pagina 1din 17

Developer’s toolkit

Aveva Marine 12 series dev. languages.

toolkit  Aveva Marine 12 series dev. languages. - PML(Programmable macro language). - Vitesse(Python). -

- PML(Programmable macro language).

- Vitesse(Python).

- C#(.NetFrame).

- Query

Aveva Marine 12 series dev. languages. - PML(Programmable macro language). - Vitesse(Python). - C#(.NetFrame). - Query
Aveva Marine 12 series dev. languages. - PML(Programmable macro language). - Vitesse(Python). - C#(.NetFrame). - Query

About C#

Introduction of C# Language.

- OOP(Object Oriented Programming language).

- Based on C++.

- Added convenience of visual basic.

- Developed for .Net Platform.

- Run in CLR environment.

Common Language Runtime .NET Framework Operating System (Windows, Linux…)
Common Language Runtime
.NET Framework
Operating System
(Windows, Linux…)
.Net Platform. - Run in CLR environment. Common Language Runtime .NET Framework Operating System (Windows, Linux…)
.Net Platform. - Run in CLR environment. Common Language Runtime .NET Framework Operating System (Windows, Linux…)

About C#

General Example.

About C#  General Example. - Display a message in console window. - Namespace : Group

- Display a message in console window.

- Namespace : Group of similar „Class‟.

- Class

: Real working individual. Users run this.

- Block, Area : From brace „{„ to brace „}‟ symbol. Use for divide block or work area in programming.

run this. - Block, Area : From brace „{„ to brace „}‟ symbol. Use for divide
run this. - Block, Area : From brace „{„ to brace „}‟ symbol. Use for divide

About C#

General Example.

About C#  General Example. - Function. Main() : Entry function of program. In addition, The

- Function. Main() : Entry function of program. In addition, The start class of program always has main function.

- Of „.‟

: The symbol dot(‟.‟) means „of‟.

So, The line means „I use WriteLine function of console class of System namespace with input value “Hello, everyone!”‟.

means „I use WriteLine function of console class of System namespace with input value “Hello, everyone!”‟.
means „I use WriteLine function of console class of System namespace with input value “Hello, everyone!”‟.

About C#

General Example.

- To use this sample, „C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.xxxx‟ have to set in path.

- csc.exe is compile application for making execution file.

\ Framework \ v2.0.xxxx‟ have to set in path. - csc.exe is compile application for making
\ Framework \ v2.0.xxxx‟ have to set in path. - csc.exe is compile application for making
\ Framework \ v2.0.xxxx‟ have to set in path. - csc.exe is compile application for making

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Add References(.DLLs) Aveva.ApplicationFramework Aveva.ApplicationFramework.Presentation marAPI MarUserInterface
Add References(.DLLs)
Aveva.ApplicationFramework
Aveva.ApplicationFramework.Presentation
marAPI
MarUserInterface
PMLNet
References(.DLLs) Aveva.ApplicationFramework Aveva.ApplicationFramework.Presentation marAPI MarUserInterface PMLNet
References(.DLLs) Aveva.ApplicationFramework Aveva.ApplicationFramework.Presentation marAPI MarUserInterface PMLNet

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Using namespaces Aveva.ApplicationFramework Aveva.ApplicationFramework.Presentation Aveva.Marine.UI Aveva.PDMS.PMLNet
Using namespaces
Aveva.ApplicationFramework
Aveva.ApplicationFramework.Presentation
Aveva.Marine.UI
Aveva.PDMS.PMLNet
Using namespaces Aveva.ApplicationFramework Aveva.ApplicationFramework.Presentation Aveva.Marine.UI Aveva.PDMS.PMLNet
Using namespaces Aveva.ApplicationFramework Aveva.ApplicationFramework.Presentation Aveva.Marine.UI Aveva.PDMS.PMLNet

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Add Method Add running method when the event occurred.
Add Method
Add running method when the
event occurred.
Usage on AVEVA Marine 12  Sample program – Module Changer Add Method Add running method
Usage on AVEVA Marine 12  Sample program – Module Changer Add Method Add running method

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Create new class This class will be used in AM application. Create new constructor This
Create new class
This class will be used in AM application.
Create new constructor
This constructor will be always ran first.
If user want to initializing value, define
in here.
Make Assign method
This method is always needed for
running this class.
Create new method
This method will be loaded in AM
application.
This method is always needed for running this class. Create new method This method will be
This method is always needed for running this class. Create new method This method will be

Basic Usage on AVEVA Marine 12

Sample program Module Changer

on AVEVA Marine 12  Sample program – Module Changer Copy built (.dll) file to AM
on AVEVA Marine 12  Sample program – Module Changer Copy built (.dll) file to AM
on AVEVA Marine 12  Sample program – Module Changer Copy built (.dll) file to AM
Copy built (.dll) file to AM install folder. ← Run application like that.
Copy built (.dll) file to AM install folder.
← Run application like that.
12  Sample program – Module Changer Copy built (.dll) file to AM install folder. ←

Basic Usage on AVEVA Marine 12

Sample program Module Changer

Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer
Basic Usage on AVEVA Marine 12  Sample program – Module Changer

Basic Usage on AVEVA Marine 12

Sample program Line New

Basic Usage on AVEVA Marine 12  Sample program – Line New
Basic Usage on AVEVA Marine 12  Sample program – Line New