![]() The intention of the function is the preparation for mask manufacturing. The deletion is done in all cells of the design.Īll elements on layers other than the selected one are removed. To size only selected shapes please use the feature Size Adjust in the Adjust Utilities menu.Īll shapes on a choosen layer are removed from the current design. Use the feature Remove Scaled References to avoid it. If the design contains scales references, resulting shapes in these references may appear to be scaled differently. ![]() ![]() Positive sizing values will grow the shapes, negative values will shrink shapes. So all features here are not limited to the current cells and are not limited to selected shapes.Īll shapes on a layer are copied to another layer.Īll shapes on the entered layer are sized in any cell of the design. For some of the features in the menu, there are identical features in other menus with a limitation to the selected shapes. ![]() To use LayoutScript from outside the LayoutEditor set the enviourment variables PATH, LD_LIBRARY_PATH, PYTHONHOME and PYTHONPATH to the correct values before starting python.The Global Tools several features are aggregated that are not limited to modify the current visible cell, but that modify the whole design. It is included in the Windows packages, in all Linux packages and in the package for Mac OS systems. LayoutScript for Python is available for Windows, Linux and Mac. These examples can be open with the integrated TextEditor under Utilities/LayoutEditor/Open Example Macro. These example and many further Python scripts using LayoutScript are including in any LayoutEditor package under macros/examples. #l.drawing.saveFile("/Users/apple/testout.gds") L.drawing.saveFile( os.path.expanduser('~')+"/testout.gds") Space=50 #minimum circle to circle distance Print("Python script completed") import LayoutScript L.drawing.saveFile("/home/username/testout.gds") So please don't forget to save the result in the script. The LayoutScript module is independent of any open layout window. The Application Programming Interface (API) is identical to the LayoutEditor. In the script the line "import LayoutScript" will load the module and the line from LayoutScript import * will enable to use any LayoutScript command without a prefix. You can start a python script from the integrated TextEditor by pressing the execute button. If you need scripting to adjust the user interface with new menu entry, create parametric cells from the schematic or callback macros after changing device parameter, please use LayoutEditor C++ Macros. For designs with unlimited size a full version of the LayoutEditor is required. You can try and run LayoutScript without a license key for small designs. It is build as an easy to use scripting feature for all kind of designs and can be use with all other extension modules Python offers. It is a pure scripting interface without any graphical output and runs independent to the LayoutEditor application. It is an an extension module to a stand alone Python installation. Python can be used as an alternative scripting interface to the build-in C++ Macros having the same Application Programming Interface (API).
0 Comments
Leave a Reply. |