First of all, I want to thank people in this forum for their voluntary support and suggestion, which has helped me a lot in learning SKILL. I am still a newbie, so please bear with me, as this is my first post!
Coming to the question: I want the netlist.cir file for the current schematic which is drawn, so that I can copy it somewhere else and do some further manipulation and run similations.
Research done till now: I have searched this forum and found the following code closest to the solution, but it has some limitations:
-While calling the sevNetlistFile() I am always greeted with an AMS output window showing the netlist, which is not desirable for a script running in the background.
-The sevNetlistFile() shows the circuit file path only when called with 'display switch. Hence everytime a change is done in the netlist, I will have to call sevNetlistFile(isession 'create) followed by sevNetlistFile(isession 'display), which will end up showing the AMS windows to the user twice.
So any other approach, in which I can get the updated netlist file from schematic in the background without bothering the user, will be highly appreciated.
Thanks in advance!
asiSess=asiGetCurrentSession()cirFilePath=strcat(asiGetNetlistDir(asiSess) "/" asiGetSimInputFileName(asiSess))
Note, this is not creating the netlist, but getting the path to the netlist.
Alternatively, if you want to create it, you can use these OCEAN functions:
simulator('eldoD)design(libName cellName viewName "r")cirFilePath=createNetlist(?display nil)