Notation used in Ruby API documentation
Module: db
Description: Options for saving layouts
This class describes the various options for saving a layout to a stream file (GDS2, OASIS and others). There are: layers to be saved, cell or cells to be saved, scale factor, format, database unit and format specific options.
Usually the default constructor provides a suitable object. Please note, that the format written is "GDS2" by default. Either explicitly set a format using format= or derive the format from the file name using set_format_from_filename.
The layers are specified by either selecting all layers or by defining layer by layer using the add_layer method. select_all_layers will explicitly select all layers for saving, deselect_all_layers will explicitly clear the list of layers.
Cells are selected in a similar fashion: by default, all cells are selected. Using add_cell, specific cells can be selected for saving. All these cells plus their hierarchy will then be written to the stream file.
new SaveLayoutOptions ptr | new | Default constructor |
[const] | SaveLayoutOptions ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
void | add_cell | (unsigned int cell_index) | Add a cell (plus hierarchy) to be saved | |
void | add_layer | (unsigned int layer_index, const LayerInfo properties) | Add a layer to be saved | |
void | add_this_cell | (unsigned int cell_index) | Adds a cell to be saved | |
void | assign | (const SaveLayoutOptions other) | Assigns another object to self | |
void | cif_blank_separator= | (bool flag) | Sets a flag indicating whether blanks shall be used as x/y separator characters | |
[const] | bool | cif_blank_separator? | Gets a flag indicating whether blanks shall be used as x/y separator characters | |
void | cif_dummy_calls= | (bool flag) | Sets a flag indicating whether dummy calls shall be written | |
[const] | bool | cif_dummy_calls? | Gets a flag indicating whether dummy calls shall be written | |
void | clear_cells | Clears all cells to be saved | ||
[const] | double | dbu | Get the explicit database unit if one is set | |
void | dbu= | (double dbu) | Set the database unit to be used in the stream file | |
void | deselect_all_layers | Unselect all layers: no layer will be saved | ||
[const] | new SaveLayoutOptions ptr | dup | Creates a copy of self | |
[const] | int | dxf_polygon_mode | Specifies how to write polygons. | |
void | dxf_polygon_mode= | (int mode) | Specifies how to write polygons. | |
[const] | string | format | Gets the format name | |
void | format= | (string format) | Select a format | |
[const] | string | gds2_libname | Get the library name | |
void | gds2_libname= | (string libname) | Set the library name | |
[const] | unsigned int | gds2_max_cellname_length | Get the maximum length of cell names | |
void | gds2_max_cellname_length= | (unsigned int length) | Maximum length of cell names | |
[const] | unsigned int | gds2_max_vertex_count | Gets the maximum number of vertices for polygons to write | |
void | gds2_max_vertex_count= | (unsigned int count) | Sets the maximum number of vertices for polygons to write | |
void | gds2_multi_xy_records= | (bool flag) | Uses multiple XY records in BOUNDARY elements for unlimited large polygons | |
[const] | bool | gds2_multi_xy_records? | Gets the property enabling multiple XY records for BOUNDARY elements | |
void | gds2_no_zero_length_paths= | (bool flag) | Eliminates zero-length paths if true | |
[const] | bool | gds2_no_zero_length_paths? | Gets a value indicating whether zero-length paths are eliminated | |
void | gds2_resolve_skew_arrays= | (bool flag) | Resolves skew arrays into single instances | |
[const] | bool | gds2_resolve_skew_arrays? | Gets a value indicating whether to resolve skew arrays into single instances | |
[const] | double | gds2_user_units | Get the user units | |
void | gds2_user_units= | (double uu) | Set the users units to write into the GDS file | |
void | gds2_write_cell_properties= | (bool flag) | Enables writing of cell properties if set to true | |
[const] | bool | gds2_write_cell_properties? | Gets a value indicating whether cell properties are written | |
void | gds2_write_file_properties= | (bool flag) | Enables writing of file properties if set to true | |
[const] | bool | gds2_write_file_properties? | Gets a value indicating whether layout properties are written | |
void | gds2_write_timestamps= | (bool flag) | Writes the current time into the GDS2 timestamps if set to true | |
[const] | bool | gds2_write_timestamps? | Gets a value indicating whether the current time is written into the GDS2 timestamp fields | |
void | keep_instances= | (bool flag) | Enables or disables instances for dropped cells | |
[const] | bool | keep_instances? | Gets a flag indicating whether instances will be kept even if the target cell is dropped | |
[const] | double | mag_lambda | Gets the lambda value | |
void | mag_lambda= | (double lambda) | Specifies the lambda value to used for writing | |
[const] | string | mag_tech | Gets the technology string used for writing | |
void | mag_tech= | (string tech) | Specifies the technology string used for writing | |
void | mag_write_timestamp= | (bool f) | Specifies whether to write a timestamp | |
[const] | bool | mag_write_timestamp? | Gets a value indicating whether to write a timestamp | |
void | no_empty_cells= | (bool flag) | Don't write empty cells if this flag is set | |
[const] | bool | no_empty_cells? | Returns a flag indicating whether empty cells are not written. | |
[const] | int | oasis_compression_level | Get the OASIS compression level | |
void | oasis_compression_level= | (int level) | Set the OASIS compression level | |
void | oasis_permissive= | (bool flag) | Sets OASIS permissive mode | |
[const] | bool | oasis_permissive? | Gets the OASIS permissive mode | |
void | oasis_recompress= | (bool flag) | Sets OASIS recompression mode | |
[const] | bool | oasis_recompress? | Gets the OASIS recompression mode | |
void | oasis_strict_mode= | (bool flag) | Sets a value indicating whether to write strict-mode OASIS files | |
[const] | bool | oasis_strict_mode? | Gets a value indicating whether to write strict-mode OASIS files | |
[const] | string | oasis_substitution_char | Gets the substitution character | |
void | oasis_substitution_char= | (string char) | Sets the substitution character for a-strings and n-strings | |
void | oasis_write_cblocks= | (bool flag) | Sets a value indicating whether to write compressed CBLOCKS per cell | |
[const] | bool | oasis_write_cblocks? | Gets a value indicating whether to write compressed CBLOCKS per cell | |
void | oasis_write_cell_bounding_boxes= | (bool flag) | Sets a value indicating whether cell bounding boxes are written | |
[const] | bool | oasis_write_cell_bounding_boxes? | Gets a value indicating whether cell bounding boxes are written | |
void | oasis_write_std_properties= | (bool flag) | Sets a value indicating whether standard properties will be written | |
[const] | bool | oasis_write_std_properties? | Gets a value indicating whether standard properties will be written | |
[const] | double | scale_factor | Gets the scaling factor currently set | |
void | scale_factor= | (double scale_factor) | Set the scaling factor for the saving | |
void | select_all_cells | Select all cells to save | ||
void | select_all_layers | Select all layers to be saved | ||
void | select_cell | (unsigned int cell_index) | Selects a cell to be saved (plus hierarchy below) | |
void | select_this_cell | (unsigned int cell_index) | Selects a cell to be saved | |
bool | set_format_from_filename | (string filename) | Select a format from the given file name | |
void | write_context_info= | (bool flag) | Enables or disables context information | |
[const] | bool | write_context_info? | Gets a flag indicating whether context information will be stored |
[const] | bool | cif_blank_separator | Use of this method is deprecated. Use cif_blank_separator? instead | |
[const] | bool | cif_dummy_calls | Use of this method is deprecated. Use cif_dummy_calls? instead | |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | gds2_no_zero_length_paths | Use of this method is deprecated. Use gds2_no_zero_length_paths? instead | |
[const] | bool | gds2_write_cell_properties | Use of this method is deprecated. Use gds2_write_cell_properties? instead | |
[const] | bool | gds2_write_file_properties | Use of this method is deprecated. Use gds2_write_file_properties? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
_const_cast | Signature: [const] SaveLayoutOptions ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
add_cell | Signature: void add_cell (unsigned int cell_index) Description: Add a cell (plus hierarchy) to be saved The index of the cell must be a valid index in the context of the layout that will be saved. This method clears the 'select all cells' flag. This method also implicitly adds the children of that cell. A method that does not add the children in add_this_cell. |
add_layer | Signature: void add_layer (unsigned int layer_index, const LayerInfo properties) Description: Add a layer to be saved Adds the layer with the given index to the layer list that will be written. If all layers have been selected previously, all layers will be unselected first and only the new layer remains. The 'properties' argument can be used to assign different layer properties than the ones present in the layout. Pass a default LayerInfo object to this argument to use the properties from the layout object. Construct a valid LayerInfo object with explicit layer, datatype and possibly a name to override the properties stored in the layout. |
add_this_cell | Signature: void add_this_cell (unsigned int cell_index) Description: Adds a cell to be saved The index of the cell must be a valid index in the context of the layout that will be saved. This method clears the 'select all cells' flag. Unlike add_cell, this method does not implicitly add all children of that cell. This method has been added in version 0.23. |
assign | Signature: void assign (const SaveLayoutOptions other) Description: Assigns another object to self |
cif_blank_separator | Signature: [const] bool cif_blank_separator Description: Gets a flag indicating whether blanks shall be used as x/y separator characters Use of this method is deprecated. Use cif_blank_separator? instead See cif_blank_separator= method for a description of that property. This property has been added in version 0.23.10. The predicate version (cif_blank_separator?) has been added in version 0.25.1. Python specific notes: |
cif_blank_separator= | Signature: void cif_blank_separator= (bool flag) Description: Sets a flag indicating whether blanks shall be used as x/y separator characters If this property is set to true, the x and y coordinates are separated with blank characters rather than comma characters. This property has been added in version 0.23.10. Python specific notes: |
cif_blank_separator? | Signature: [const] bool cif_blank_separator? Description: Gets a flag indicating whether blanks shall be used as x/y separator characters See cif_blank_separator= method for a description of that property. This property has been added in version 0.23.10. The predicate version (cif_blank_separator?) has been added in version 0.25.1. Python specific notes: |
cif_dummy_calls | Signature: [const] bool cif_dummy_calls Description: Gets a flag indicating whether dummy calls shall be written Use of this method is deprecated. Use cif_dummy_calls? instead See cif_dummy_calls= method for a description of that property. This property has been added in version 0.23.10. The predicate version (cif_blank_separator?) has been added in version 0.25.1. Python specific notes: |
cif_dummy_calls= | Signature: void cif_dummy_calls= (bool flag) Description: Sets a flag indicating whether dummy calls shall be written If this property is set to true, dummy calls will be written in the top level entity of the CIF file calling every top cell. This option is useful for enhanced compatibility with other tools. This property has been added in version 0.23.10. Python specific notes: |
cif_dummy_calls? | Signature: [const] bool cif_dummy_calls? Description: Gets a flag indicating whether dummy calls shall be written See cif_dummy_calls= method for a description of that property. This property has been added in version 0.23.10. The predicate version (cif_blank_separator?) has been added in version 0.25.1. Python specific notes: |
clear_cells | Signature: void clear_cells Description: Clears all cells to be saved This method can be used to ensure that no cell is selected before add_cell is called to specify a cell. This method clears the 'select all cells' flag. This method has been added in version 0.22. |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
dbu | Signature: [const] double dbu Description: Get the explicit database unit if one is set See dbu= for a description of that attribute. Python specific notes: |
dbu= | Signature: void dbu= (double dbu) Description: Set the database unit to be used in the stream file By default, the database unit of the layout is used. This method allows one to explicitly use a different database unit. A scale factor is introduced automatically which scales all layout objects accordingly so their physical dimensions remain the same. When scaling to a larger database unit or one that is not an integer fraction of the original one, rounding errors may occur and the layout may become slightly distorted. Python specific notes: |
deselect_all_layers | Signature: void deselect_all_layers Description: Unselect all layers: no layer will be saved This method will clear all layers selected with add_layer so far and clear the 'select all layers' flag. Using this method is the only way to save a layout without any layers. |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
dup | Signature: [const] new SaveLayoutOptions ptr dup Description: Creates a copy of self Python specific notes: |
dxf_polygon_mode | Signature: [const] int dxf_polygon_mode Description: Specifies how to write polygons. See dxf_polygon_mode= for a description of this property. This property has been added in version 0.21.3. Python specific notes: |
dxf_polygon_mode= | Signature: void dxf_polygon_mode= (int mode) Description: Specifies how to write polygons. The mode is 0 (write POLYLINE entities), 1 (write LWPOLYLINE entities), 2 (decompose into SOLID entities), 3 (write HATCH entities), or 4 (write LINE entities). This property has been added in version 0.21.3. '4', in version 0.25.6. Python specific notes: |
format | Signature: [const] string format Description: Gets the format name See format= for a description of that method. Python specific notes: |
format= | Signature: void format= (string format) Description: Select a format The format string can be either "GDS2", "OASIS", "CIF" or "DXF". Other formats may be available if a suitable plugin is installed. Python specific notes: |
gds2_libname | Signature: [const] string gds2_libname Description: Get the library name See gds2_libname= method for a description of the library name. This property has been added in version 0.18. Python specific notes: |
gds2_libname= | Signature: void gds2_libname= (string libname) Description: Set the library name The library name is the string written into the LIBNAME records of the GDS file. The library name should not be an empty string and is subject to certain limitations in the character choice. This property has been added in version 0.18. Python specific notes: |
gds2_max_cellname_length | Signature: [const] unsigned int gds2_max_cellname_length Description: Get the maximum length of cell names See gds2_max_cellname_length= method for a description of the maximum cell name length. This property has been added in version 0.18. Python specific notes: |
gds2_max_cellname_length= | Signature: void gds2_max_cellname_length= (unsigned int length) Description: Maximum length of cell names This property describes the maximum number of characters for cell names. Longer cell names will be shortened. This property has been added in version 0.18. Python specific notes: |
gds2_max_vertex_count | Signature: [const] unsigned int gds2_max_vertex_count Description: Gets the maximum number of vertices for polygons to write See gds2_max_vertex_count= method for a description of the maximum vertex count. This property has been added in version 0.18. Python specific notes: |
gds2_max_vertex_count= | Signature: void gds2_max_vertex_count= (unsigned int count) Description: Sets the maximum number of vertices for polygons to write This property describes the maximum number of point for polygons in GDS2 files. Polygons with more points will be split. The minimum value for this property is 4. The maximum allowed value is about 4000 or 8000, depending on the GDS2 interpretation. If gds2_multi_xy_records is true, this property is not used. Instead, the number of points is unlimited. This property has been added in version 0.18. Python specific notes: |
gds2_multi_xy_records= | Signature: void gds2_multi_xy_records= (bool flag) Description: Uses multiple XY records in BOUNDARY elements for unlimited large polygons Setting this property to true allows producing polygons with an unlimited number of points at the cost of incompatible formats. Setting it to true disables the gds2_max_vertex_count setting. This property has been added in version 0.18. Python specific notes: |
gds2_multi_xy_records? | Signature: [const] bool gds2_multi_xy_records? Description: Gets the property enabling multiple XY records for BOUNDARY elements See gds2_multi_xy_records= method for a description of this property. This property has been added in version 0.18. Python specific notes: |
gds2_no_zero_length_paths | Signature: [const] bool gds2_no_zero_length_paths Description: Gets a value indicating whether zero-length paths are eliminated Use of this method is deprecated. Use gds2_no_zero_length_paths? instead This property has been added in version 0.23. Python specific notes: |
gds2_no_zero_length_paths= | Signature: void gds2_no_zero_length_paths= (bool flag) Description: Eliminates zero-length paths if true If this property is set to true, paths with zero length will be converted to BOUNDARY objects. This property has been added in version 0.23. Python specific notes: |
gds2_no_zero_length_paths? | Signature: [const] bool gds2_no_zero_length_paths? Description: Gets a value indicating whether zero-length paths are eliminated This property has been added in version 0.23. Python specific notes: |
gds2_resolve_skew_arrays= | Signature: void gds2_resolve_skew_arrays= (bool flag) Description: Resolves skew arrays into single instances Setting this property to true will make skew (non-orthogonal) arrays being resolved into single instances. Skew arrays happen if either the row or column vector isn't parallel to x or y axis. Such arrays can cause problems with some legacy software and can be disabled with this option. This property has been added in version 0.27.1. Python specific notes: |
gds2_resolve_skew_arrays? | Signature: [const] bool gds2_resolve_skew_arrays? Description: Gets a value indicating whether to resolve skew arrays into single instances See gds2_resolve_skew_arrays= method for a description of this property. This property has been added in version 0.27.1. Python specific notes: |
gds2_user_units | Signature: [const] double gds2_user_units Description: Get the user units See gds2_user_units= method for a description of the user units. This property has been added in version 0.18. Python specific notes: |
gds2_user_units= | Signature: void gds2_user_units= (double uu) Description: Set the users units to write into the GDS file The user units of a GDS file are rarely used and usually are set to 1 (micron). The intention of the user units is to specify the display units. KLayout ignores the user unit and uses microns as the display unit. The user unit must be larger than zero. This property has been added in version 0.18. Python specific notes: |
gds2_write_cell_properties | Signature: [const] bool gds2_write_cell_properties Description: Gets a value indicating whether cell properties are written Use of this method is deprecated. Use gds2_write_cell_properties? instead This property has been added in version 0.23. Python specific notes: |
gds2_write_cell_properties= | Signature: void gds2_write_cell_properties= (bool flag) Description: Enables writing of cell properties if set to true If this property is set to true, cell properties will be written as PROPATTR/PROPVALUE records immediately following the BGNSTR records. This is a non-standard extension and is therefore disabled by default. This property has been added in version 0.23. Python specific notes: |
gds2_write_cell_properties? | Signature: [const] bool gds2_write_cell_properties? Description: Gets a value indicating whether cell properties are written This property has been added in version 0.23. Python specific notes: |
gds2_write_file_properties | Signature: [const] bool gds2_write_file_properties Description: Gets a value indicating whether layout properties are written Use of this method is deprecated. Use gds2_write_file_properties? instead This property has been added in version 0.24. Python specific notes: |
gds2_write_file_properties= | Signature: void gds2_write_file_properties= (bool flag) Description: Enables writing of file properties if set to true If this property is set to true, layout properties will be written as PROPATTR/PROPVALUE records immediately following the BGNLIB records. This is a non-standard extension and is therefore disabled by default. This property has been added in version 0.24. Python specific notes: |
gds2_write_file_properties? | Signature: [const] bool gds2_write_file_properties? Description: Gets a value indicating whether layout properties are written This property has been added in version 0.24. Python specific notes: |
gds2_write_timestamps= | Signature: void gds2_write_timestamps= (bool flag) Description: Writes the current time into the GDS2 timestamps if set to true If this property is set to false, the time fields will all be zero. This somewhat simplifies compare and diff applications. This property has been added in version 0.21.16. Python specific notes: |
gds2_write_timestamps? | Signature: [const] bool gds2_write_timestamps? Description: Gets a value indicating whether the current time is written into the GDS2 timestamp fields This property has been added in version 0.21.16. Python specific notes: |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
keep_instances= | Signature: void keep_instances= (bool flag) Description: Enables or disables instances for dropped cells If this flag is set to true, instances for cells will be written, even if the cell is dropped. That may happen, if cells are selected with select_this_cell or add_this_cell or no_empty_cells is used. Even if cells called by such cells are not selected, instances will be written for that cell if "keep_instances" is true. That feature is supported by the GDS format currently and results in "ghost cells" which have instances but no cell definition. The default value is false (instances of dropped cells are not written). This method was introduced in version 0.23. Python specific notes: |
keep_instances? | Signature: [const] bool keep_instances? Description: Gets a flag indicating whether instances will be kept even if the target cell is dropped See keep_instances= for details about this flag. This method was introduced in version 0.23. Python specific notes: |
mag_lambda | Signature: [const] double mag_lambda Description: Gets the lambda value See mag_lambda= method for a description of this attribute. This property has been added in version 0.26.2. Python specific notes: |
mag_lambda= | Signature: void mag_lambda= (double lambda) Description: Specifies the lambda value to used for writing The lambda value is the basic unit of the layout. The layout is brought to units of this value. If the layout is not on-grid on this unit, snapping will happen. If the value is less or equal to zero, KLayout will use the lambda value stored inside the layout set by a previous read operation of a MAGIC file. The lambda value is stored in the Layout object as the "lambda" metadata attribute. This property has been added in version 0.26.2. Python specific notes: |
mag_tech | Signature: [const] string mag_tech Description: Gets the technology string used for writing See mag_tech= method for a description of this attribute. This property has been added in version 0.26.2. Python specific notes: |
mag_tech= | Signature: void mag_tech= (string tech) Description: Specifies the technology string used for writing If this string is empty, the writer will try to obtain the technology from the "technology" metadata attribute of the layout. This property has been added in version 0.26.2. Python specific notes: |
mag_write_timestamp= | Signature: void mag_write_timestamp= (bool f) Description: Specifies whether to write a timestamp If this attribute is set to false, the timestamp written is 0. This is not permitted in the strict sense, but simplifies comparison of Magic files. This property has been added in version 0.26.2. Python specific notes: |
mag_write_timestamp? | Signature: [const] bool mag_write_timestamp? Description: Gets a value indicating whether to write a timestamp See write_timestamp= method for a description of this attribute. This property has been added in version 0.26.2. Python specific notes: |
new | Signature: [static] new SaveLayoutOptions ptr new Description: Default constructor This will initialize the scale factor to 1.0, the database unit is set to "same as original" and all layers are selected as well as all cells. The default format is GDS2. Python specific notes: |
no_empty_cells= | Signature: void no_empty_cells= (bool flag) Description: Don't write empty cells if this flag is set By default, all cells are written (no_empty_cells is false). This applies to empty cells which do not contain shapes for the specified layers as well as cells which are empty because they reference empty cells only. Python specific notes: |
no_empty_cells? | Signature: [const] bool no_empty_cells? Description: Returns a flag indicating whether empty cells are not written. Python specific notes: |
oasis_compression_level | Signature: [const] int oasis_compression_level Description: Get the OASIS compression level See oasis_compression_level= method for a description of the OASIS compression level. Python specific notes: |
oasis_compression_level= | Signature: void oasis_compression_level= (int level) Description: Set the OASIS compression level The OASIS compression level is an integer number between 0 and 10. 0 basically is no compression, 1 produces shape arrays in a simple fashion. 2 and higher compression levels will use a more elaborate algorithm to find shape arrays which uses 2nd and further neighbor distances. The higher the level, the higher the memory requirements and run times. Python specific notes: |
oasis_permissive= | Signature: void oasis_permissive= (bool flag) Description: Sets OASIS permissive mode If this flag is true, certain shapes which cannot be written to OASIS are reported as warnings, not as errors. For example, paths with odd width (are rounded) or polygons with less than three points (are skipped). This method has been introduced in version 0.25.1. Python specific notes: |
oasis_permissive? | Signature: [const] bool oasis_permissive? Description: Gets the OASIS permissive mode See oasis_permissive= method for a description of this predicate. This method has been introduced in version 0.25.1. Python specific notes: |
oasis_recompress= | Signature: void oasis_recompress= (bool flag) Description: Sets OASIS recompression mode If this flag is true, shape arrays already existing will be resolved and compression is applied to the individual shapes again. If this flag is false (the default), shape arrays already existing will be written as such. This method has been introduced in version 0.23. Python specific notes: |
oasis_recompress? | Signature: [const] bool oasis_recompress? Description: Gets the OASIS recompression mode See oasis_recompress= method for a description of this predicate. This method has been introduced in version 0.23. Python specific notes: |
oasis_strict_mode= | Signature: void oasis_strict_mode= (bool flag) Description: Sets a value indicating whether to write strict-mode OASIS files Setting this property clears all format specific options for other formats such as GDS. Python specific notes: |
oasis_strict_mode? | Signature: [const] bool oasis_strict_mode? Description: Gets a value indicating whether to write strict-mode OASIS files Python specific notes: |
oasis_substitution_char | Signature: [const] string oasis_substitution_char Description: Gets the substitution character See oasis_substitution_char for details. This attribute has been introduced in version 0.23. Python specific notes: |
oasis_substitution_char= | Signature: void oasis_substitution_char= (string char) Description: Sets the substitution character for a-strings and n-strings The substitution character is used in place of invalid characters. The value of this attribute is a string which is either empty or a single character. If the string is empty, no substitution is made at the risk of producing invalid OASIS files. This attribute has been introduce in version 0.23. Python specific notes: |
oasis_write_cblocks= | Signature: void oasis_write_cblocks= (bool flag) Description: Sets a value indicating whether to write compressed CBLOCKS per cell Setting this property clears all format specific options for other formats such as GDS. Python specific notes: |
oasis_write_cblocks? | Signature: [const] bool oasis_write_cblocks? Description: Gets a value indicating whether to write compressed CBLOCKS per cell Python specific notes: |
oasis_write_cell_bounding_boxes= | Signature: void oasis_write_cell_bounding_boxes= (bool flag) Description: Sets a value indicating whether cell bounding boxes are written If this value is set to true, cell bounding boxes are written (S_BOUNDING_BOX). The S_BOUNDING_BOX properties will be attached to the CELLNAME records. Setting this value to true will also enable writing of other standard properties like S_TOP_CELL (see oasis_write_std_properties=). By default, cell bounding boxes are not written, but standard properties are. This method has been introduced in version 0.24.3. Python specific notes: |
oasis_write_cell_bounding_boxes? | Signature: [const] bool oasis_write_cell_bounding_boxes? Description: Gets a value indicating whether cell bounding boxes are written See oasis_write_cell_bounding_boxes= method for a description of this flag. This method has been introduced in version 0.24.3. Python specific notes: |
oasis_write_std_properties= | Signature: void oasis_write_std_properties= (bool flag) Description: Sets a value indicating whether standard properties will be written If this value is false, no standard properties are written. If true, S_TOP_CELL and some other global standard properties are written. In addition, oasis_write_cell_bounding_boxes= can be used to write cell bounding boxes using S_BOUNDING_BOX. By default, this flag is true and standard properties are written. Setting this property to false clears the oasis_write_cell_bounding_boxes flag too. This method has been introduced in version 0.24. Python specific notes: |
oasis_write_std_properties? | Signature: [const] bool oasis_write_std_properties? Description: Gets a value indicating whether standard properties will be written See oasis_write_std_properties= method for a description of this flag. This method has been introduced in version 0.24. Python specific notes: |
scale_factor | Signature: [const] double scale_factor Description: Gets the scaling factor currently set Python specific notes: |
scale_factor= | Signature: void scale_factor= (double scale_factor) Description: Set the scaling factor for the saving Using a scaling factor will scale all objects accordingly. This scale factor adds to a potential scaling implied by using an explicit database unit. Be aware that rounding effects may occur if fractional scaling factors are used. By default, no scaling is applied. Python specific notes: |
select_all_cells | Signature: void select_all_cells Description: Select all cells to save This method will clear all cells specified with add_cells so far and set the 'select all cells' flag. This is the default. |
select_all_layers | Signature: void select_all_layers Description: Select all layers to be saved This method will clear all layers selected with add_layer so far and set the 'select all layers' flag. This is the default. |
select_cell | Signature: void select_cell (unsigned int cell_index) Description: Selects a cell to be saved (plus hierarchy below) This method is basically a convenience method that combines clear_cells and add_cell. This method clears the 'select all cells' flag. This method has been added in version 0.22. |
select_this_cell | Signature: void select_this_cell (unsigned int cell_index) Description: Selects a cell to be saved This method is basically a convenience method that combines clear_cells and add_this_cell. This method clears the 'select all cells' flag. This method has been added in version 0.23. |
set_format_from_filename | Signature: bool set_format_from_filename (string filename) Description: Select a format from the given file name This method will set the format according to the file's extension. This method has been introduced in version 0.22. Beginning with version 0.23, this method always returns true, since the only consumer for the return value, Layout#write, now ignores that parameter and automatically determines the compression mode from the file name. |
write_context_info= | Signature: void write_context_info= (bool flag) Description: Enables or disables context information If this flag is set to false, no context information for PCell or library cell instances is written. Those cells will be converted to plain cells and KLayout will not be able to restore the identity of those cells. Use this option to enforce compatibility with other tools that don't understand the context information of KLayout. The default value is true (context information is stored). Not all formats support context information, hence that flag has no effect for formats like CIF or DXF. This method was introduced in version 0.23. Python specific notes: |
write_context_info? | Signature: [const] bool write_context_info? Description: Gets a flag indicating whether context information will be stored See write_context_info= for details about this flag. This method was introduced in version 0.23. Python specific notes: |