I have a script (http://www.cadence.com/Community/forums/p/24288/1317148.aspx#1317148) that will save the design tree file to a shell to run a shell script on, working in Virtuoso v5, but is breaking in Virtuoso v6 on the command hiSaveAsViewFile.
The Save File As form looks quite different in v6, but I cannot figure out Cadence's documentation to search for (anything..) something like this.
In v5 I use:
hiSaveAsViewfile->file->value-> = Newfilename
However, in v6, I get the error message " eval: unbound variable - hiSaveAsViewfile".
Since testing with print statements is able to show me that the variable Newfilename is properly defined, and the command hiSaveAsViewfile() works in v6, I can only guess that the form itself is different in v6, and the format hiSaveAsViewfile->file->value is not the same.
2 Questions -
1. how can I test for the version of Virtuoso as an environment variable so I can handle this save function accordingly?
2. what is the v6 format for hiSaveAsViewfile->file->value??
many thanks in advance!
Use the hiSaveViewfile() function instead, it has a third optional argument g_donotOverwrite that you can set to nil in this case. This function appears to exist in both IC5141 and IC61x versions.