copyObjectsToClipboard

Syntax

copyObjectsToClipboard(Objects:object/object[])

The function copyObjectsToClipboard copies one or several objects to the internal Plant Simulation clipboard. This deletes the previous contents of the clipboard.

Parameter

The parameter Objects of data type object can be a single object or an array of objects.

Note:

A Connector can only be copied to the clipboard successfully when its predecessor object and its successor object are copied as well.

Example

var objs: object[]
objs := [Station, Station1, Connector]
copyObjectsToClipboard(objs)
.Models.Frame2.pasteClipboard