Embedding GUI Option Settings in Diagram Files
You may embed option settings, such as viewing modes, into your diagram files. A convenient usage is to override the default settings of your gui_setups file for specific diagrams.
For example, if your default has show-link-attributes off (which is a convenient setting for hardware files), you can turn link-attributes on for a DFG file by placing the following directive in your DFG file:
show_link_attr on
(Note the case of the tags is important, and there must be white space after the )
Most of the same settings available in the gui_setups file are also available for setting on a specific file basis. Specifically, the following are controllable:
window_size_x {#pixels}
window_size_y {#pixels}
grid_size {decimal-size}
snap_to_grid {yes/no}
show_grid {yes/no}
show_node_names {on/off}
show_node_types {on/off}
show_node_attr {on/off}
show_port_names {on/off}
show_link_attr {on/off}
background_color {black/dark-gray/medium-gray/light-gray/white}
box_display_style {solid-box/plain-skeleton/3D-border/3D-solid/3D-shadow}
nonsticky
Example:
The options must be placed outside other blocks, one per line, in .sim or .dfg files.
Additional Options
- Prevents creating netinfo file when building simulation. - Controls link-box attachment policy. Namely, under this mode, link attachment preserves to precise-point on box. - Prevents ability to zoom in- and -out. - Causes text to scale with zoom level. - Sets arrow size to xx.
