
All called functions had to be defined before the main function. If a exitcode unequal 0 is returned, a warning is display. To call a macro use layout macro-file-name design-filename'. Beside this very comfortable features macros can also be called from the command line. The main-function in the macro is executed. Within the LayoutEditor macros can be recorded, execute, edited and embedded in main menu/tools bar of the graphical user interface. The short cut must not be used by a build in features (or removed by a auto start macro). It will be effective only, if the macro is added to the menu. Line 5 is also optional and will set the short cut key to trigger the macro. A UTF-8 encoding is used in the case no coding is defined. The line 2 (#codec.) is optional and only required, if you use non AscII characters. The header must look like: #!/usr/bin/layout Macros are normal text files starting with a special header. The macro will be executed on the design and the result is stored without showing up the normal user interface. To call a macro use `layout macro-file-name design-filename'. Within the LayoutEditor macros can be recorded, execute, edited and embedded in main menu/tools bar of the graphical user interface. Layout->drawing->p(cut_x4+(channel_dx*j), cut_y4) ĭouble cut_x4 = 1150.546, cut_y4 = 7973.As you alreay should know LayoutEditor C++ Macros are the build in scripting interface of the LayoutEditor. Layout->drawing->p(cut_x2+(channel_dx*j), cut_y2) Layout->drawing->p(cut_x1+(channel_dx*j), cut_y1) * -Ĭhannel-1 and Channel-3 always have problem after cut() operation!? Oh, I didn't know macro file cannot be attached. The "FK-polygons" at area 2 and 4 are correctly cut and separated, but there are additional polygons mistakenly added at area 1 and 3. Now please run the macro and you'll see the problematic results. So I define two cut lines and use a for-loop in the macro to execute the cut() command for this purpose. 55 depicts performing a macro playback in a system according to the invention. My goal is to cut the four FK-polygons out of the original design and move them into a different layer. It may, however, permit a nighttime operator to access only loops within.

They are separated by exactly 750um in X-direction.

Read the What are Macros topic to get a more general understanding about macros. This pool is shared by all users in the show file. The Layout Editor allows interactive positioning and sizing of user. In the original GDS file, this structure is repeated drawn in area 1, 2, 3, 4. The macro system is a very powerful tool that can help with the programming and can be used to do make repetitive task simpler and faster. The UI is manipulated using objects, modules and macros in the Network Editor. The 8 coordinates of this FK-polygon is given in the macro as reference. Zoom into the waveguide at area-1 and you'll see a small section that I want to cut out as "FK-polygon".

Open the GDS file first and investigate the waveguide structures marked 1, 2, 3, 4 in the picture. Please see the attached GDS file, picture, and macro. However, there is another bug from this cut() command even using this new release.

The 20220718 version did fix the previous problem.
