GridSetup (Schematic Editor)

Changes the settings on the schematic grid

UI Access Schematic>Grid Setup
Parameters
Name Type Description
<Options> Array

Array("NAME:Options", _

"MajorGrid:=", string, _ // Major grid size with units

"Divisions:=", int, _ // Number of minor grid divisions

"MajorColor:=", int, _ // RGB Color of major grid lines

"MinorColor:=", int, _ // RGB Color of minor grid lines

"ShowGrid:=", bool, _ // Should the grid be shown?

"SnapToGrid:=", bool, _ // Should objects snap to grid?

"BackgroundColor:=", int, _ // RGB Color of the background

"SaveAsDefault:=", bool))

Return Value None

 

Note:

For more information about the component name, schematic IDs, and formats, see the section Editor Scripting IDs.

 

Python Syntax GridSetup()
Python Example

oEditor.GridSetup([

"NAME:Options", _

"MajorGrid:=", "10mm", _

"Divisions:=", 10, _

"MajorColor:=", 0x00ff0000, _ # Red

"MinorColor:=", 0x0000ff00, _ # Green

"ShowGrid:=", true, _

"SnapToGrid:=", true, _

"BackgroundColor:=", 0x00ffffff, _ # White

"SaveAsDefault:=", false])