In DesignWorks Professional for Windows
- simple or extensive data display and entry boxes (“property sheets”) to allow users to view and display design data using the full power of HTML, including links to outside resources on the web
- import and export of any type of design data using the power of a general-purpose programming language
- new menu commands and functions, such as searching for and updating attribute values, saving and backing up files, creating symbols based on given parameters, organizing and updating libraries, etc.
- linking design data to local or remote databases or web services
- creating and connecting circuit and design elements using script facilities
sigs = currentCircuit.signals(1); // Get selected signals for (i = 0; i < sigs.length; i++) sigs[i].width = 5; // Apply width change
You can see that two simple lines of code is all it takes to add a useful new function to the package. If this script was to be used often, you could attach it to a custom menu command so that a simple mouse selection will apply your new function.
The package includes a number of sample scripts to help you get started, including:
- ChanChange Library Attributes – runs through a library and updates attribute values in each symbol
- Create Circuit – creates a circuit by placing elements from a library and wiring them together under script control
- Create Page Index – creates a text block on the schematic with an index of all the pages in the design
- Create Symbol – generates the graphics and attributes for a symbol under script control
- Design Backup – creates a dated backup copy of the current design
- Design Report – displays a custom panel with design summary information
- Device Properties – displays an HTML dialog prompting for device data
- Generate Hierarchical Design Netlist – Generates a netlist with hierarchy blocks written to separate files
- Generate Segmented Design Netlist – Generates a netlist from a design that has each hierarchy block stored in a separate circuit file.
- Library Report – generates a text report of information on symbols in a library
- Open Device Document – locates and opens a documentation file associated with the selected device
- Remove Custom Menus – updates the program initialization file to remove the sample custom menusThe scope of these examples gives you some idea of the functions that can be added.
- The Custom Panel is a panel that can be opened in a separate window, usually in the tabbed status area at the bottom of the DesignWorks main window, although it can be moved by the user. Once displayed, the window stays up until closed by the user and can remain up while the user edits a design or performs any other functions. Because all other program operations are enabled while a panel is displayed, some care must be taken in scripting these pages as design data can change and disappear during the life of the display.