Element

With the Element functions, you can retrieve information about the elements in your scene and you can add and remove them.

The following is a list of the Element functions:

add
completeFolder
fieldChart
Folder
getNameById
id
modify
numberOf
physicalName
pixmapFormat
remove
renameById
scanType
vectorType

Example

This script adds an element named “newDrawing” to your scene.

function addElement

{

var id = element.add(“newDrawing”, “BW”, 12, “TVG”, “SCAN”);

}

Related Topics 

Scripting Reference