writeObject

Syntax

<Path>.writeObject(FileName:string[, SaveAsLibrary:boolean, Password:string]]) → boolean

The method writeObject saves the object to a file into the active folder (compare setCurrentDirectory) or into the folder whose absolute path you enter. This method applies to all classes and folders in the Class Library.

Parameters

  • The parameter FileName of data type string designates the name of the object file.

  • The optional parameter SaveAsLibrary of data type boolean determines if Plant Simulation saves the designated folder as a library (true) or as a normal object (false).

  • The optional parameter Password of data type string sets the password Plant Simulation uses when saving the designated file.

Return Value

Example

.Informationflow.DataList.writeObject("MyDataList.psobj")
.Materialflow.ParallelStation.writeObject("mypp.psobj"
.ApplicationObjects.Productionsystem.writeObject("MyLibrary.lib", true)

Related Topics

Save Object As

setLibraryInfo