![]() As normally always the first character is underlined, add a & in the front. It returns true, if the modification was successful. Use this function to modify any existing shortcut. You will be prompted to enter a name for the current displayed cell.īool layout::setShortcut( string function, string key) You will be prompted to enter a filename. If filename is empty, you will be prompted to enter a filename. The current opened design will be saved to disc. If the current design was changed, you will be asked to save it before. The design with the name fileName is opened. The netlist utilities are accessible via this class. With setToolbarState the current setup can be restored. Returns: an encoded string containing all required information to restore the current toolbar and dock window setup. An empty string is returned in the case the Cancel button was pressed. This string will be displayed inside the window. The user will be prompted to enter a value in userunits. 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. showMessage(string caption,string label). ![]() setShortcut(string function,string key).getText(string caption,string label,string value="").getSize(QString caption,QString 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).addMacroToolButton(string macroName,string parameter,string iconfilename). ![]()
0 Comments
Leave a Reply. |