![]() If the trigger 'layoutStart' and 'layoutNew' is set, the macro is only executed once during LayoutEditor lounch. Defined triggeres on autostart macros were introduced with version 20180420. > Autostart macros are usefull for initial setups like adjusting userunits, prepare own toolbars, adjust short cuts etc. > debug("the autostart macro was triggered by") > #help=example of an automatic start macro You can detect in the macro which action has triggered the macro. Only a single macro can be set as autostart macro. The trigger and the name of the macro is set in the setup dialog. ![]() > A autostart macro is a macro that is executed on a defined trigger by the LayoutEditor in a automatic way. ![]() Is there a concise documentation of project setup practices?Īre there any examples of a "working project" setup macro (chain) that might instruct me? I saw once in reading through the help docs, something about this but I cannot find it now.Ĭan you give me an example of a command-line invocation of layout (schematic editor would be nice, too) that invokes a local setup script and how to make that script attach layers definition (another macro, maybe?) and whatever other technology dependent "stuff" that would commonly be wanted? Any list of what that might be? I would like something like the "autostart macro" but I want it to be defined from the Linux environment, not from within layout by menu. I mean, after I type "layout" what init files will be looked for and executed if found? Is there any default filename in the $cwd that layout will read and act upon? I still have not found a description of the "startup chain of events". For more details on OpenAccess Script please see. (license key required, only available for Linux and 64bit Wondows) It can be use identical to LayoutScript: just press the execute button to start it. OpenAccess Script is a direct scripting interface to the OpenAccess library. save_file( " /home/user/testout.gds ") 23 24 puts( " Ruby script completed ")įurther examples are shipped in the LayoutEditor package. Afterwards the created file can be loaded in the LayoutEditor.ġ # load the module 2 require 'LayoutScript' 3 # remove the need of the prefix 4 include LayoutScript 5 6 #create a new layout object 7 l= Project. So please don't forget to save the result in the script. The means that all class names start with a capital letter and all methods are named with a separating "_" instead of the use of CamelCase.The LayoutScript module is independent of any open layout window. All names are adjusted to the ruby naming convention. The Application Programming Interface (API) is identical to the LayoutEditor. In the script the line "require 'LayoutScript'" will load the module and the line "include LayoutScript" will enable to use any LayoutScript command without a prefix. You can start a ruby script from the integrated TextEditor by pressing the execute button. Using LayoutScript for Ruby is very simple. ![]() OpenAccess Script cannot be started from outside the LayoutEditor. 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 general Linux package also includes it, but it may interfere with the installed python version. On Linux it is recommended to use the package for your distribution. LayoutScript is not included in the Windows XP package and the package for older Mac Systems. It is also often be used for Multi-Chip-Modules (MCM), Chip-on-Board (COB), Low temperature co-fired ceramics (LTCC), Monolithic Microwave Integrated Circuits (MMIC), printed circuit boards (PCB), thick film technology, thin film technology. It is include in the Windows packages, in all Linux packages and in the package for the newest Mac OS systems. The LayoutEditorLayoutEditor is the most popular software to edit designs for MEMS and IC fabrication. LayoutScript for Python is available for Windows, Linux and Mac. ġ import oa 2 from oa import * 3 4 p= oaPointArray() 5 6 p. (license key required, only available for Linux and 64bit Windows) It can be use identical to LayoutScript: just press the execute button to start it. You will find it in the folder macros/examples. saveFile( " /home/username/testout.gds ") 24 25 print( " Python script completed ")įurther examples are shipped in the LayoutEditor package. newLayout() 8 9 #rename a layer 10 layers. 1 # load the LayoutScript module 2 import LayoutScript 3 # use LayoutScript without prefix 4 from LayoutScript import * 5 6 #create a new layout object 7 l= project.
0 Comments
Leave a Reply. |