CreateFile

<< Click to Display Table of Contents >>

 

CreateFile

CreateFile(ProjectName, ClassName, [FileName], [FolderName], [RunWizard], [OpenView])

Creates a new object on a project file (.prj). Parameters for this method are the following:

ProjectName: The name of the project file to insert the object. This parameter cannot be empty, and the project file must be loaded in E3 Studio. It can be a project file's full path or a Domain file's relative path. There is no need to add a .prj extension

ClassName: The name of the object's class to create. Please check the next table for possible values for this parameter

FileName: The name of the inserted object. If this parameter is omitted, then it uses a default name to create an object of the type indicated by ClassName. The maximum allowed size for this parameter is 32 characters, and if it already exists, it is automatically incremented

FolderName: The name of the Folder to create the object. If this parameter is omitted, the object is then created at project file's root. The Folder name must obey the same rules of Note's section of the RenameFolder method

RunWizard: A Boolean indicating whether the configuration wizard of the class indicated by ClassName is opened after executing this method. If this parameter is omitted, the configuration wizard is opened

OpenView: A Boolean indicating whether the View of the inserted object is opened after executing this method. If this parameter is omitted, object's View is opened

Possible values for the ClassName parameter

Object to create

Parameter value

Alarm Configuration

DB.AlarmConfig

Alarm Server

DB.AlarmServer

Database

DB.DBServer

Data Server

Panel.DataServer

Formula

DB.Formula

FrameSet

Panel.FrameSet

Historic

DB.Hist

I/O Driver

IODrv.IODriver

OPC Driver

IODrv.OPCDriver

OPC UA Driver

IODrv.UaDriver

Report

Panel.Report

Screen

Panel.Screen

Storage

DB.Historian

Viewer

Panel.Viewer

 

Was this page useful?