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") |
Related Topics
Related Topics
General Methods of All ObjectsaddObserver
attributeWatchable
closeDialog (all objects)
deleteObject
derive
duplicate
extendPath
getHTMLCode (all objects)
getObservers
getXYWH
hasAttribute (2D)
isNameUnique (identifier)
memUsage
moveToFolder
openDialog (all objects)
print (all objects)
removeAllObservers
removeObserver
replace
setName
setPosition
setXYWH
updateDialog