Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

File Class

A File represents an associated file for an element. Files are accessed through the Element Files collection.

Associated table in .EAP file:     t_objectfiles

File Attributes:

Attribute

Type

Notes

FileDate

String

Read/Write

The file date when the entry was created.

 

Name

String

Read/Write

The file name can be a logical file or a reference to a web address (using http://).

 

Notes

String

Read/Write

Notes about the file.

 

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

Size

String

Read/Write

The file size.

 

Type

String

Read/Write

The file type.

 

File Methods:

Method

Type

Notes

GetLastError ()

String

Returns a string value describing the most recent error that occurred in relation to this object.

This function is rarely used as an exception is thrown when an error occurs.

 

Update ()

Boolean

Updates the current File object after modification or appending a new item.

If false is returned, check the GetLastError function for more information.