![]() Int layout::getSize(QString caption,QString label, int value=1) The parameter filter was introduced with version 20140704. The filter format is "filtername (*.ex1 *ex2)". The optional parameter filter set the default filter use in the dialog. String layout::getSaveFilename( string filter="")Ī file save dialog is shown. Returns: a string with some statistic information on the design. Returns: a string with the filename or a empty string if cancelled The parameter filter was introduced with version 20140704 and the parameter path was introduced with version 20170406. With path the folder the dialog starts with is set. The optinal parameter filter set the default filter use in the dialog. String layout::getOpenFilename( string filter="", string path="")Ī file open dialog is shown. 1 is returned in the case the Cancel button was pressed. Returns: the layer number set by the user. This string will be displayed inside the window The execution of this macro stopped until the termination of the new started macro. Int layout::executeMacro( string filename)Īnother macro is executed. The design rule checker is accessible via this class. ![]() This class is the main class of the drawing. The current design will be removed and an empty design is shown like after the program start. The selected file will be imported.(= add to the existing file) The boolean utilities are accessible via this class pointer. The barcode utilities are accessible via this class pointer. The background utilities are accessible via this class pointer. MacroToolButtons will not stored with shut-down. 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. 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)Īdd a new button to the toolbars. L=Project.new_layout() # open new instance of layout class for Ruby 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 the keyword layout does not exists. See also: MacroClassBackgroundModule, MacroClassBarcodeModule, MacroClassBooleanHandler, MacroClassDrawingField, MacroClassDrc, MacroClassView3dModule 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. Layout->filename="/var/layouts/samples1.gds" It is directly accessible via the classname "layout". This class is the main widget of the window from which the macro was executed.
0 Comments
Leave a Reply. |