duplicate
Syntax
<Path>.duplicate([Destination:object, Name:string]) → object |
The method duplicate duplicates, i.e., copies, the object designated by <Path> in the Class Library. Note that Plant Simulation does not preserve the inheritance hierarchy.
To create the object at a certain position in the Frame, you can use the attribute Coordinate3D.
Parameters
The optional parameter Destination of data type object designates the destination at which Plant Simulation creates the object.
The optional parameter Name of data type string designates the name of the object that will be created.
Return Value
The return value has the data type object. Plant Simulation returns the duplicated object, when it was able to duplicate the object. It returns VOID when duplicating failed.
Examples
.MaterialFlow.Conveyor.duplicate |
var myConveyor:object := .MaterialFlow.Conveyor.duplicate(.Models.Frame,"MyConveyor") |
Related Topics
Related Topics
General Methods of All ObjectsaddObserver
attributeWatchable
closeDialog (all objects)
deleteObject
derive
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
writeObject