Hello Cowlayshaw,
Description for requested methods/properties are below.
System Class
It is global object accessible from scripting by keyword "System". It has class CSAOSystem (you can find it by it in reference guide).
System.GetInterface
Name |
Parameters |
Return Type |
GetInterface |
InterfaceName: String |
Dispatch |
Returns object determined by parameter InterfaceName. This method doesn't create new object. It returns already existed objects.
Allowed values of InterfaceName
Value |
Description |
PackageManager |
Return global object package manager (class PackageManager) |
Application |
Return global object tdm application (class CSApplication) |
REManager |
Return global object Reverse Eng. Manager (class REManager) |
Model |
Return Active Model |
System.CreateObject
Name |
Parameters |
Return Type |
CreateObject |
ClassName: string |
Dispatch |
Return object determined by ClassName.
Allowed Values for ClassName
Value |
Class of Return Object |
Description |
Log |
CSAOLog |
Create log object for writing to message explorer (Method Log.Information('Some Message')) |
TextStream |
TextStream |
|
ReverseEngineering |
REManager |
|
ReportRegistrar |
ReportRegistrarFactory |
|
ImagePNG |
ImagePNG |
|
PERWindowManager |
WindowsManager |
Obsolete, you can use Application instead it |
OpenDialog |
CSAOOpenDialog |
|
SaveDialog |
CSAOSaveDialog |
|
SelectFolderDialog |
ICSAOSelectFolderDialog |
|
StringList |
CSAOStringList |
|
FileComparator |
FileComparator |
|
DialogParams |
CSAODialogParams |
|
CSVFile |
CSVFile |
|
List |
CSAOList |
Be aware it is not class List. |
DateTimeTDM |
CSAODateTimeTDM |
|
ArgumentsParserPG |
|
Determined for RE of PG |
CSApplication Classs
It is global object represented TDM application. It is accessiable by keyword "Application".
Application.ActiveModel
Name |
Type |
Attribute |
ActiveModel |
Dispatch |
read-only |
Return Active Model of TDM. If not any model active it will return null. Active model is model that is bold in Application View (typically has focus its designer).
Application.ActiveWorkSpace
Name |
Type |
Attribute |
ActiveWorkSpace |
Dispatch |
read-only |
Return Active Workspace of TDM. If not any workspace active it will return null. If some designer has focus, its workspace is active.
Base Class
Base class is parent class of almost all classes in TDM. It is abstract class.
Name |
Paremeters |
Return Type |
CreateNewObject |
AObjectType: Integer |
Dispatch |
CreateNewObject create object by parameter AObjectType. Object Type is number that is for each object in TDM unique. List of Object Types you can find in Reference Guide. Each object can create only classes which own. For Example: Model is able to create Entity, Procedure, Users etc. Entity is able to create Attribute,Indexes etc. So Procedure cannot create Entity etc.
Name |
Paremeters |
Return Type |
SupportsProperty |
Name: string |
Boolean |
Use this method to determine if class support this property. Name is name of property.
Example:
if (Ent.SupportProperty('Caption'))
Log.Information(Ent.Caption)
else
Log.Information(Ent.Name);
Class List
This class is used for all listed properties. For example Model.Entities, Entity.Atrtibutes etc. See reference Guide for all members.
It has basic functionality to search in list, access to list, Add to list and Remove from list.
If you have some more question to specific workflow let me know and I will describe example or something similar.
Regard
Petr