A static class for any global setup. More...
|void||dataStore(string name, string value)|
|void||set(string parameter,string value)|
|void||setBackgroundColor(int red, int green, int blue)|
|tatic void||setBusColor(int red, int green, int blue)|
|void||setDeviceColor(int red, int green, int blue)|
|void||setGridColor(int red, int green, int blue)|
|void||setHighlightColor(int red, int green, int blue)|
|void||setInstanceColor(int red, int green, int blue)|
|void||setMouseColor(int red, int green, int blue)|
|void||setNetlistFormat(string type, string value)|
|void||setNetlistSubFormat(string type, string value)|
|void||setNetlistSubModelFormat(string type, string value)|
|void||setPinColor(int red, int green, int blue)|
|void||setSelectColor(int red, int green, int blue)|
|void||setTextColor(int red, int green, int blue)|
|void||setWireColor(int red, int green, int blue)|
|void||setZeroColor(int red, int green, int blue)|
In this cell you can modify the basic setup.
Alternative you can call the ''set'' method to modify any value. The ''set'' method is the preferred method in the LayoutEditor for Python.
Scripting from Python:
The class setup has only static members and accessing static class member variables from Python is a bit different. Next to the setup::set(...) way this work.around can be used:
SetUp=setup() print SetUp.fontSize print cvar.setup_fontSize #further option to access it from Python
Add ''datatype'' the the list of datatypes, which are ignored in the BuildConnections feature.
Lamda value for the preview of the Alliance physical format.
If true, all layers not used in the current design are disabled atfer a loading
If true, layer setting will be save to disc on shutdown of the LayoutEditor and restored on program start.
After this time in minutes any design (layout and schematic) is saved to the temporary system folder as backup. The store is only performed if the design was modified. Set this value to 0 to disable this feature.
A file name of a macro is named which is executed automaticly after program start. If the string a empty no auto start macro will be called. For more details please see the [[SetupDialog#Autostart_Macro|setup dialog]]
A list of triggers that will start the autostartMacro. Available triggers are:
|layoutStart||after start of the LayoutEditor, this event will not be triggered if also the layoutNew event is enabled|
|layoutNew||opening a new layout window|
|layoutOpen||after opening a deisng in the layout window|
This feature was introduced with release 20180420.
holds the pathes where callback macros and tcl callbacks for the [[iPDK]] are searched.
It checks if a setup for the given netlist type exists. If not or if the setup is empty the default setting is used for the setup of this netlist type. The default setup can be adjusted with the setup::setNetlistFormat command or with the SetupDialog. Please see NetlistGeneration for more details on generating netlists.
Clears the list of datatypes, which are ignored inthe BuildConnections feature.
If true, regular polygon are saved as circle in cif files.
of the design. If more than one top cell exists, the top cell with the most shapes is used. Some CIF viewer need this option to avoid a warnings.
The angle pro point for conversion of circles to polygons.
Field delimiter for the csv file format import/export.
Remove the entry ''name'' from the user data.
Removes all entries from the user data.
Returns: the user data for name
User specific data for name is stored. The data will be stored with the setup data of the LayoutEditor and will be available after a restart of the LayoutEditor. Although the data size has no limitations, it is intended for a small amount of data.
The iteration depth of bezier elements. The number of additional points can be calculated by (2^defaultBezierIteration)-1.
The default cap of path elements.
|0||flat ended caps|
|2||square ended caps|
The default width of path elements.
Selfintersecting polygons (polygons where two boaderlines cross) are fixed automaticly.
Points which have no effect in a polygon are removed. e.g. three point in a line, the middle point is removed.
Angle limitation for creating new shapes:
|1||fine angles (5°)|
The default text presentation of new created text element.
The default width of text elements.
net names to be stored under specialnets section instead of the net section in the DEF file. This setting will be be stored after program shut-down.
Extra information store in the DEF file. This setting will be be stored after program shut-down.
The reference depth of the displayed cells. If is set to 0, all cellref are displayed.
If true, the name of the cells are display in cellrefs.
If true, the origin of cell ref will be displayed.
If true, the complete cells are display in cellrefs.
If the to a positive layer, cellrefs are only display with this layer number. Any negative value will disable this feature and all layers of the cellrefs are displayed. (introduced with version 20180429)
If true, text elements will be displayed. Otherwise all text elements are rendered as a dot only.
Layer used for board bounder in DSN output.
Comma separated list of all layers with keepout area in DSN output. The keep out area will be used for all signal layers.
If true, DXF arcs and bulge value are stored instead of the points of the arc.
If true, regular polygon are saved as circle in dxf files.
unit in meter used for reading/writing of DXF files. A value of 0 uses the user units instead.
Character use for EOF in PS/EPS format: 0 for LFCR, 1 for LF
Additional scaling for PS/EPS files.
Path and file of the fontfile for text to polygon conversion
The iteration depth of bezier elements in fonts for convertion to polygons. The number of additional points can be calculated by (2^defaultBezierIteration)-1.
size in pixel of documenting text in the drawing, e.g. ruler text, etc.
Returns: true, if a full license is installed. Otherwise false.
Returns: a list with all datatype which are ignored in the BuildConnections feature.
If true, any layer/datatype combination in a gds file is maped to an other layer
If true, all boxes are saved as polygons
If true, the layers are mapped during GDSII file load/file save.
The maximal number of points for polygons and path elements can be set. If elements have more points, they are splited during the gds save into two or more elements. The technical limit of the GDS file format is 8191. In early GDS versions this number was limited to 200 points.
The gds file format is limited to 8191 point per record. So polygons are limited to the number of points as well. As a workaround it is possible to save multi record for the points. This is not part of the gds standard, but supported by some viewers. If false, all poygons are splitted into a couple of polygon to store all information.
If true, shapes on disabled layers are not saved to GDSII.
If true, the length of stored gds files is extended to N*2048 Bytes by add 0 to the end of the file. Some tape storages and old system may need this opention to handle the files.
If true, all path elements with a width bigger than 0 are stored as polygons in GDSII files.
If true, an additional cell LayerNames is created with the current layer setup during file save. On file load this cell is processed, the layer setup made accordingly and the cell is removed. This layer storage is not part of the GDS standard.
If true, all text elements are saved as polygons. The current design is converted as well. gdsTextToPolygonDefaultWidth is used for scale independent text elements. For details see below.
If gdsTextToPolygon is true, this value is used for scale independent text elements. If it is 0, scale independent text elements are not converted.
If gdsValidate is true, a validation on any store GDSII file is made. Also a sha1 checksum is stored next to any GDSII file.
If true shapes with negative polarity will be stored on a different layer. If false a boolean operation will be performaed between shapes with positive and negative polarity.
If true pathes are checked for arcs. These arcs will be saved with circular interpolation.
If true, regular polygon are saved as circle in gerber files.
If true, gerber files are optimized to a minimal non exposure length.
Returns: the filename of the main lib.defs file with all OpenAccess Libraries (introduced with release 20180614)
Returns: the description of the netlistformat
Returns: the description of hierarchical components in the netlist
Returns: the description of hierarchical components in the model section of netlist
If true, any text is displayed non rotate and non mirror for a optimal readability.
style of the layer dock, 0 for automatic
Layer on which nominal bounding box of the cell will be added. In LEF file the nominal bounding box must not be identical with the real box dimensions.
horizontal pitch of the LEF file. This setting will be be stored after program shut-down.
vertical pitch of the LEF file. This setting will be be stored after program shut-down.
Extra information store in the LEF file. This setting will be be stored after program shut-down.
A list of paths is set containing the macro tree to be added to the main menu.
holds the pathes where models for the 3d view are searched.
The type of the mouse in the drawing windows can be set:
|2||cross over drawing|
If true, netlist are automatically extracted after any modification of the design.
See also: Autotrigger of building Connections/Netlists
If true, extracted netlists will contain any connected cell reference as a netlist device. If false only cell refereneces with type information/devicename will be added as a device to a netlist.
Returns: a list with all defined netlist formats
Regular expression for nodes, which should be defected as global.
Any device type name and node name is converted to upper characters while importing netlists from structual VHDL files.
The component library from the schematic is used as well to match imported devices.
Prefix for node names, if not named via the text element.
If true, any layer/datatype combination in a oasis file is maped to an other layer
If true, the layers are mapped during OASIS file load/file save.
If true, disabled layers are not saved to GDSII
If true, compressed blocks are used to write oasis files
If true, regular polygon are saved as circle in oasis files.
If true, suitable polygon are saved as ctrapezoid in oasis files.
See also: using Ctrapezoids/Trapezoids
If true, suitable polygon are saved as trapezoid in oasis files.
unit in meter used for reading/writing of OFF files. A value of 0 uses the user units instead.
if not empty, it will be search at this path for an OpenAccess PyCell plugin on startup of the LayoutEditor. If found the correct openAccess version is choosen for this installation. If set it is to CNI_ROOT ,the enviourment variable is used. Any modification of this value will take effective with the next restart. This feature was introduced with version 20180420.
The paint engine defines how the elements are displayed on the screen. Modifications will take affect after program restart.
|0||overlay: Elements are drawn over each other.|
|1||transparent: Elements are semi transparent.|
|2||stacked: Elements are painted in the order as used for the 3D view (using layer.level3d).|
Value used for the solder mask clearance in all file format for PCB not explicite naming this value (e.g. Eagle, KiCad).
Value used for the solder cream clearance in all file format for PCB not explicite naming this value (e.g. Eagle, KiCad).
For pixel import method map colors to layers ' only: The color resolution for pixel import can be set with this value. Values from 1 to 8 bit are possible. A value of 4 bit equals (2^4 )^ 3 = 4096 colors. Lower value will result in a better performance. Higher value in a better quality.
For pixel import method grey scale with dithering only:
Sets the used dithering method: 0 Floyd-Steinberg Dithering, 1 Jarvis, Judice, and Ninke Dithering, 2 Sierra Dithering (introduced with release 20181108)
For pixel import method grey scale with dithering only: Set whether black or white collor is used for background/pixel.
For pixel import method map colors to layers only: If a pixel file is imported, boxes are added to the layer with the closest color to the original pixel color. By activating this option all layer colors above the entered value are adapted for a optimal display. Set to -1 to disable any adaption.
Set the method used for the pixel image import. Two methods are available:
'''For pixel import method ''grey scale with dithering'' only:''' The relative size to the pixel size of the smallest allowed shape.
The resolution for pixel export in pixel per meter.
For pixel import method grey scale with dithering only: Number of sizes for shapes.
If true the place feature will will in PCB mode. In that mode a mirrored placing is not possible. Instead the component will be placed on the bottom off the PCB. The layers of the refered cell will be mapped.
unit in meter used for reading/writing of POV files. A value of 0 uses the user units instead.
Postfix of the used python command. For example if you want to use python3.5, set this value to ''3.5''. (Linux and Mac only, no effect on Windows).
Sets the toolbars to the default position after the next restart.
scroll direction of the arrow key can be changed if this value is set to true
Sets the parameter of the setup class to value. This method is a workaround for some python installation which fails to set static variables and should be used for python macros only.
The bachground color is set.
The wirecolor for the schematic is set.
The default device color for the schematic is set.
The gridcolor is set. The gridpoint are painted in this color.
The highlightbrush is set. The same brushes as for layer are possible.
The highlightcolor is set. The highlichtcolor is used in the select and deselect modes to highlight the element/point to be selected with a mouse click.
The default instance color for the schematic is set.
Installs a license key.
The mousecolor is set. The mousepoint is painted in this color.
Sets the decription of the netlistformat of type. Please see NetlistGeneration for details on netlist generation.
sets the decription of hierarchical components in the netlist will be defined.
sets the decription of hierarchical components in the model section of netlist will be defined.
The default pin color for the schematic is set.
The selectcolor is set. All select element/points are painted in this color.
The default text color for the schematic is set.
The wirecolor for the schematic is set.
The zerocolor is set. In the zerocolor the zeropoint of the coordinatessystem is painted.
If true, a grid is painted in the drawing.
If true, icon are shown next the menu entries.
If true, the port names in the SchematicEditor are always displayed . If false the port names are only displayed with the mouse pointeron the component.
Situation when a report is shown automaticly.
|value||show report on|
If true, a scale is painted in the drawing.
If true, a small symbol is display next to the mouse cusor in case a snapping was made. (introduced with release 20180503)
Database units for the source format
unit in meter used for reading/writing of STL files. A value of 0 uses the user units instead.
Character use for EOF in SVG format: 0 for LFCR, 1 for LF
Conversionfactor, if tld/tlc file are saved in lamda values. Value in µm.
enables regular checks for updates
Sets the OpenAccess plugin to be used. It had to be called with before creating the first window. The string mus contain the OpenAccess version number without any prefix like setup.useOaVersion("22.50"). This feature will have no effect in LayoutEditor macros. There the OpenAccess version to be specified as parameter on program start.
mouse wheel direction for zooming can be changed by this value.
Return: true, if the background is set to white or almost white. Otherwise false is returned.
The path is set containing the macro tree to be added to the main menu.
> holds the relative path where callback macros and tcl callbacks for the iPDK are searched. Multi pathes are separated with a :. this method can only used for read out. To set the callback path, please use setup::callbackPath.