I need to save a backup copy of a layout to a software-selected file using SKILL code - how do I do that?
dbSave() takes optional additional arguments. It can either be dbSave(cvId destCvId) or dbSave(cvId libName cellName viewName). See the documentation for more detail.
If it's a graphical application, you can also use geSaveAs().
In reply to Andrew Beckett:
Thanks for your help. geSaveAs() worked but dbSave() was needed because geSaveAs() would not accept a variable for the library name - it had to be a string literal.
In reply to thomas1000:
We'd have had to work quite hard to make geSaveAs() not take variables and only literal strings. I just tried it, and it worked perfectly:
lib="opamp090"cell="adc_sample_hold"view="layout_final_copied"win=hiGetCurrentWindow()geSaveAs(win lib cell view)
I tried this in both IC5141 and IC615. Looking at the argument list and function type for geSaveAs, it simply can't not accept variables - it's a normal (lambda) function, and so arguments are evaluated before it is called.