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:

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).

Note: A subsection of the Layout Scripting commands are only accessible once Electronics Desktop has been placed in IC Editor mode (i.e., IC  mode). These commands are all located within the IC Editor Script Commands directory. There are commands common to both the General mode and IC mode environments in every topic within Layout Scripting, but they are designated (General Mode and IC Mode) at the Table of Contents level. Unless otherwise noted, common commands function identically in either environment (e.g., RemoveLayer is divided into two sections for each mode since the command function is similar but not identical).

The topics for this section include:

Object Identifiers and Script Recording

Create Primitives

Create Voids in Primitives

Other Creation Methods

Object Movement and Modification Methods

Activation and Deactivation Methods

Layout and Geometry Interrogation Methods

Boolean Operations on Primitives

Coordinate System Methods

IC Editor Script Commands (IC Mode Only)

Layers Methods

NetClass Methods

Port Methods

Miscellaneous Methods