ChangeOptions (Layout Editor)
Use: Changes options for an existing layout. (Does not change global options specified in the registry.) Only those options being changed need to be specified. Options not specified are not affected.
Command: None.
Syntax: ChangeOptions Array("NAME:options",<OptionData>,…)
Return Value: None
Parameters: <OptionData> can be of varying forms:
Type: <String>
Type: integer
Type: Array(float, float, float, float)
An error will be returned if this script command is not used at the top-level hierarchy.
- Global layout defaults are stored in the registry (Layout\Preferences\)
- Names of registry items were selected for backwards compatibility and are consistent with adsn, technology file, and scripting naming
- Local options are both script-able and undo-able
- Global options are neither script-able nor undo-able
|
Option |
Description |
Installed default |
Registry, Scripting Names, Data Type |
|
Arc Drawing Resolution |
Controls drawing of segments for arcs - either dynamic and based on current zoom or fixed to specified value |
Dynamic |
"useFixedDrawingResolution"1 "DrawingResolution" 2 |
|
Major and Minor Grid lines |
Spacing, color, and visibility |
The grid is displayed. Spacing based on current default length units. Major grid lines are 10 minor grid lines apart. The line colors are light blue grays, with major grid lines being darker. |
"MajorColor" 3 "MinorColor" 3 "MajorSize" 2 "MinorSize" 2 "ShowGrid" 1 |
|
Drawing Extent |
Specifies size and coordinates of the layout |
Lower left of the layout is (-0.1, -0.1) and the upper right is (0.1, 0.1) |
"PageExtent" 4 |
|
Background color |
Color of the layout background |
white |
"background color" 3 |
|
Sketch Mode |
Fill patterns and center lines are not drawn. |
off |
"DefaultToSketchMode" 1 |
|
Solid Mode |
Objects are filled in with solid color. |
off |
"fillMode" 1 |
|
Draw Connection Points |
Display pin symbols in the layout. |
off |
"show connection points" 1 |
|
Draw Rats |
Display lines indicating missing physical connections in nets |
on |
"draw rats" 1 |
|
Label Vertices |
Display property text labeling the vertices of selected polygons and lines. |
off |
"display vertex labels" 1 |
|
Net Color |
Color used for highlighting nets |
light yellow |
"NetColor" 3 |
|
Rectangle Description |
Specifies if rectangles are described with two points or center point, width, and height |
2 points |
"rectangle description" 5 |
|
Default Hole Size |
Default size for actual holes in a PC board |
25 mil |
"defaultholesize" 2 |
|
Align Microwave Components |
Snaps components on entry. |
on |
"snaptoport" 1 |
|
Symbol Footprint Scaling |
Used to size symbol footprints placed in layout. |
Based on data extent and current length units. |
"sym footprint scaling" 6 |
|
Primary and Secondary Selection Colors |
Colors used to indicate the first item selected and other items currently selected. |
Primary color is red, secondary color is a darker red |
"primary selectioncolor" 3 "secondary selection color" 3 |
|
Preview Selection |
Highlight the object that would be selected with a left mouse button click in the current location. |
off |
"preview selection" 1 |
|
Snapping options |
Choose snapping sources and targets and the maximum distance (in pixels) for snapping to occur. Constrain edits to grid if desired.
Note: Off-grid objects are ignored if ConstrainToGrid
is asserted.
|
Snap distance is 20 pixels. Snapping sources are vertex, edge center, object center, & elec. conn. Snapping targets are vertex, edge center, object center, elec. conn, & grid. Edits are constrained to grid.
|
"PixelSnapTolerance"7 |
|
Always Show Merge Layers Dialog |
Controls display of the layer merging dialog. |
off – Only show dialog when the user must be involved. |
"AlwaysShowLayerMergeDlg" 1 |
|
Rotation Increment |
During rotation, objects are rotated by multiples of this amount. |
Based on current angle units. |
"anglesnap" 2 |
|
Allow Drag on first click |
Selection and move with one left mouse button click. |
false |
"AllowDragOnFirstClick" 1 |
The footnotes in the table above correspond to the following:
1 = Integer with a value of 1 for on/true and 0 for off/false
2 = String containing a amount and units
3 = Integer representing a Color
4 = An Array containing (lower left x, lower left y, upper right x, upper right y)
5 = Integer with a value of 0 for two points, and 1 for center/width/height
6 = String holding a double.
7 = Integer