I'm trying to change the layer (tx_layer) of a db object with skill. For example, let's say I have an object that is simply a rectangle of M1. Is there a way to change that object to be the same size rect, but of M1? I'm looking through the documentation, but I don't see any functions that allow you do to this.
Ah, I figured it out.dbSet(cvid "M2" "layerName")
Presumably cvid in your case was not a CellView Id (as the variable name suggests) but the db object representing the shape you want to modify?If so, you could have done this with:shape~>layerName="M2"which is the same as doing:dbSetq(shape "M2" layerName)Using dbSet allows the attribute name (the third argument) to be an expression - in this case the string is converted to a symbol automatically.Regards,Andrew.
Hello,If you like to do this interactive too, when working on selected objects, you could define bindkeys to change the layers of selected objects. I use this regularly to change the layer from one metal to another or to poly. With Shift-Alt-1 to M1, Shift-Alt-2 to M2 etc. Works on single or multiple selected paths or polygons. I also use it when creating layouts to follow paths by changing one selected path deliberately to another layer (and don't forget to change it back!) to easily follow it accross the design. If you want you can look at my bindkeys at: http://relyveld.wordpress.com/ - Relyveld's blog - cadence pageGreetings, William.