GridSetup (Schematic Editor)

Changes the settings on the schematic grid

UI Access Schematic > Grid Setup
Parameters
Name Type Description
<Options> 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

])