How to use skill command to close a schematic window?

Guest
Hi
I want to ask a simple question:
How to use skill command to close a schematic window?

I did some search but can not find a proper command.
Can anyone help? thank you.


--la
 
On Dec 18, 12:14 am, lee.amand...@gmail.com wrote:
Hi
I want to ask a simple question:
How to use skill command to close a schematic window?

I did some search but can not find a proper command.
Can anyone help? thank you.

--la
hiCloseWindow(window_id) should do it.

The key is to find the right window_id and that depends on what you
are trying to do. For example, if the window you want to close is
always the current window:

hiCloseWindow(hiGetCurrentWindow())

or if the variable 'cv' refers to the cell view currently displayed in
the window you wish to close:

hiCloseWindow(geGetCellViewWindow(cv))

I hope that helps.

Joel
 
On Dec 17, 10:14 pm, lee.amand...@gmail.com wrote:
Hi
I want to ask a simple question:
How to use skill command to close a schematic window?

I did some search but can not find a proper command.
Can anyone help? thank you.

--la
If you use dbOpenCellViewByType and assign the return database
object id to a variable, such as

myCell = dbOpenCellViewByType(libName cellName viewName)

then you can close it by

dbClose(myCell)
 
layoutDesign wrote, on 12/19/08 02:51:
On Dec 17, 10:14 pm, lee.amand...@gmail.com wrote:
Hi
I want to ask a simple question:
How to use skill command to close a schematic window?

I did some search but can not find a proper command.
Can anyone help? thank you.

--la

If you use dbOpenCellViewByType and assign the return database
object id to a variable, such as

myCell = dbOpenCellViewByType(libName cellName viewName)

then you can close it by

dbClose(myCell)
Although that will only close the window if there is nothing else referencing
the cellView - effectively the system keeps track of the number of opens vs
number of closes.

So hiCloseWindow() is the right way to close a window.

Only if the cellView gets purged from memory (num closes == num opens, or
dbPurge is used) will any containing window get closed too.

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top