Once you have elements of your layout positioned correctly, it may be desirable to Group the elements. Horizontal Spacing will horizontally space all selected objects equally. Horizontal Centers will find a horizontal midpoint between all selected objects and align all selected objects to that point. Rights will align all selected items to the right edge of the rightmost object selected. Lefts will align all selected items to the left edge of the leftmost object selected. Vertical Spacing will vertically space all selected objects equally. Vertical Centers will find a vertical midpoint between all selected objects and align all selected objects to Top will align all selected items to the top edge of the uppermost object selected.īottom will align all selected items to the bottom edge of the bottommost object selected.
Here you can choose exactly how to align and/or distribute the objects by clicking on one of the alignment icons (for example, Top means the top of every object is at exactly the same level). Choosing Arrange from the menu, FlowJo will display a list of alignment features. Allowing FlowJo to align your layout objects saves time and ensures accurate distribution and alignment. 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.When you have more than one object selected in the Layout Editor, you can align them relative to each other.
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).