I was always quite uncomfortable in switching between the layout window and the lsw when selecting layers to draw. It recently occured to me that there were alot of space on the horizontal tool bar just above the black screen. I was thinking whether I can populate this bar with icons of the layers i frequently use, so that i don't have to take the extra step of switching between windows to select layers.
I am aware that virtuoso has the option to include the lsw in the layout window itself. but it takes space from the black screen.
I hope to create the layer icons that look similar to the ones in the lsw (picture and all).
How can i do this
This can only be done in Cadence 6.1.x and is not be hard to do. Personally, I'd rather use bindkeys either to set common layers, or to toggle the visibility of the layer palette. However, to create a toolbar of common layers could be done like this:
1. Create a directory in your home directory:mkdir -p ~/.cadence/dfII/toolbars/byApplication2. Create a file called Layout.toolbars with content like this: ( nil inheritToolbarsFrom "Layout" )
( nil name myLayerToolbar text "MyLayers" items ( ( nil type action name setActiveLayerMetal1 text "metal1" iconFile "metal1.png" callback "leSetEntryLayer(list(\"metal1\" \"drawing\"))" ) ) ))You can have as many items as you want.3. Create a directory for your layer icons:mkdir -p ~/.cadence/icons/24x24
4. Look at some sample icons from Cadence ($CDSHOME/share/cdssetup/icons/24x24/). You can choose one of these, or edit it in your favorite picture/icon editor. You could even grab a screenshot of the layer from your layer palette and use that. Create an icon file called metal1.png (portable network graphics image file) in your new 24x24 directory.
5. Restart Cadence, open your layout editor and enable your new toolbar by right clicking in the toolbar area and choosing the new "MyLayers" toolbar.