Layout Scripting
The Layout scripting interface is a set of commands that can be executed by the Layout Editor interface of Design objects. Accessing the Layout Editor interface can be done by the SetActiveEditor method of a Design object, for example:
Dim oEditor
oEditor = DesignObject.SetActiveEditor ("Layout")
The call to each scripting method contains three elements:
- Layout editor
- Method name
- Method arguments (if any)
For instance, in Visual Basic, a call might look like this:
oEditor.Delete ("rect_1")
The behavior of the scripting methods is similar to the corresponding commands in the Layout editor. This correspondence is particularly evident when recording a script in Layout Editor (Tools>Record Script).
The topics for this section include:
Object Identifiers and Script Recording
Object Movement and Modification Methods
Activation and Deactivation Methods
Layout and Geometry Interrogation Methods
Boolean Operations on Primitives