

If the LayoutEditor was not started from a terminal the output is not visible.

In the debug mode additional information is printed to the terminal where the LayoutEditor is started. The current design will be removed and an empty design is shown like after the program start. The selected file will be imported and added to the existing file. The selected file will be loaded.Ī file dialog is shown.

The boolean utilities to perform Boolean Operations are accessible via this pointer to the class barcodeModule.Ī file dialog to select a filename is opened. The barcode utilities are accessible via this pointer to the class barcodeModule. The background utilities to add images in the background are accessible via this pointer to the class backgroundTool. So usually this method is used in a autostart macro that is automatic started after program start. It has to be restored with a further macro call. Macrobuttons will not stored with shut-down. It may be used in furture updates to give additional information to the macro. If the given file does not exist, the default macro icon is used. iconfilename points to the file for the icon of the new button.
DRAW OBJECTS MACRO LAYOUTEDITOR FULL
It should include the full path to the macro. macroName specifies the name of the macro to be executed. If this toolbar does not exist, it will be created. The button will be added to the toolbar 'Macros'. Void layout::addMacroToolButton( string macroName, string parameter, string iconfilename)Īdds a new button to the toolbars. The method will adjust the setting for setup::macroPath by adding home/LayoutEditor/menu to it if required. To remove the macro delete the copied version of the macro in the mentioned folder. In contrast to layout::addMacroToolButton the macro will stay in the menu with any restart. For example if the list contains two elements Utilities and My_macros, the macro will be displayed inside the Utilties/My_macros sub menu. The menu position is define by the list menu. Void layout::addMacroMenuEntry( string macroName, stringList menu)Īdds a macro named macroName to the menu of the LayoutEditor by copying the macro to the LayoutEditor folder inside you home folder. macroFileName os the full path of the macro, title the capture and IconFileName the full path of the icon file.

key is the number of the key at the keyboard. Will set an key of an external keyboard to a macro. Void layout::addMacroKey(int key, string macroFileName, string title, string iconFileName) As toolbutton, modification of the extra keyboard are not store and it is recommended to set it with an autostart macro.
DRAW OBJECTS MACRO LAYOUTEDITOR CODE
function is the feature code of the featur you want to add. It is numbered from 0 to the amount of keys the keyboard has. Void layout::addFunctionKey(int key,int function) L=Project.new_layout() # open new instance of layout class for Ruby Member Function Documentation l=project.newLayout() # open new instance of layout class for Python A new layout object had to be created via the project class. In LayoutScript for Python and for Ruby the keyword layout does not exists. A direct access of the drawing is possible via the member drawing to an object of the class drawingField.įurther modules to modify the design data are available with the pointers backgroundTool, barcodeTool, booleanTool, drcTool and netlistTool. Most methods of this call require a user dialog. It is directly accessible via the classname "layout" from any C++ macro. This class is the main widget of the window from which the macro was executed. La=backgroundTool=>ba(backgroundModule)Ĭlick ba "/layoutscript/api/backgroundmodule"Ĭlick br "/layoutscript/api/barcodemodule"Ĭlick bo "/layoutscript/api/booleanhandler"Ĭlick ex "/layoutscript/api/extractionmodule"Ĭlick net "/layoutscript/api/netlistmodule"Ĭlick vd "/layoutscript/api/view3dmodule" GetText(string caption,string label,string value="")ĬlassDef thisClas fill:#eaf5fc,stroke:#3c7faa,stroke-width:4px ĬlassDef clas fill:#eaf5fc,stroke:#3c7faa,stroke-width:1px Ĭlick dr "/layoutscript/api/drawingfield" GetSize(string caption,string label, int value=1) GetOpenFilename(string filter="", string path="") GetItem(string caption,string label,stringList values) GetInteger(string caption,string label, int value=0) GetDouble(string caption,string label,double value=0, int digits=1) MemberĪddMacroKey(int key,string macroFileName, string title, string iconFileName)ĪddMacroMenuEntry(string macroName, stringList menu)ĪddMacroToolButton(string macroName,string parameter,string iconfilename)
