skill open layout

R

Robin

Guest
Hi all,

I got a question I want to make a skill code that opens a layout view
if it isn't open in a window yet. If its open already then focus it.
But I can't get it working. Sorry I'm very new to skill.
This is what I have:

if(//Some function to check if the design is open//) then
//put focus to window//
else
deOpenCellView("myLibrary" "cellname" "layout" "maskLayout" nil
"a")
);if

So I'm missing some key ingredients. Can anybody help me or give ne a
hint?

Thanks very much
Robin
 
Am 30.04.2010 11:40, schrieb Robin:
Hi all,

I got a question I want to make a skill code that opens a layout view
if it isn't open in a window yet. If its open already then focus it.
But I can't get it working. Sorry I'm very new to skill.
This is what I have:

if(//Some function to check if the design is open//) then
//put focus to window//
else
deOpenCellView("myLibrary" "cellname" "layout" "maskLayout" nil
"a")
);if

So I'm missing some key ingredients. Can anybody help me or give ne a
hint?

Thanks very much
Robin
Hi Robin,

I don't have the time to complete your code, just some hints:

;get all open cellviews ("open" might also be in VM only)
cells=dbGetOpenCellViews()

;search with a foreach/setof through the cells to find the
;cell with the desired name
;search in cell cells if cell~>cellName=="TEST"

;get the windowID for the open cellview( don't forget to check if
;this is !=nil)
win=geGetCellViewWindow(cell)

;raise the window or open new
hiRaiseWindow(win) or else ....


Marc
 
On Friday, April 30, 2010 2:40:00 AM UTC-7, Robin wrote:
Hi all,

I got a question I want to make a skill code that opens a layout view
if it isn't open in a window yet. If its open already then focus it.
But I can't get it working. Sorry I'm very new to skill.
This is what I have:

if(//Some function to check if the design is open//) then
//put focus to window//
else
deOpenCellView("myLibrary" "cellname" "layout" "maskLayout" nil
"a")
);if

So I'm missing some key ingredients. Can anybody help me or give ne a
hint?

Thanks very much
Robin
Hi Robin,
I have the exact same situation only that I just need to simply open the layout.Can you guide me a bit,I tried using the dbOpen function the same way you described above but it's not working.

Thanks
Sumit
 
On 05/09/13 23:37, sumitspade@gmail.com wrote:
On Friday, April 30, 2010 2:40:00 AM UTC-7, Robin wrote:
Hi all,

I got a question I want to make a skill code that opens a layout view
if it isn't open in a window yet. If its open already then focus it.
But I can't get it working. Sorry I'm very new to skill.
This is what I have:

if(//Some function to check if the design is open//) then
//put focus to window//
else
deOpenCellView("myLibrary" "cellname" "layout" "maskLayout" nil
"a")
);if

So I'm missing some key ingredients. Can anybody help me or give ne a
hint?

Thanks very much
Robin

Hi Robin,
I have the exact same situation only that I just need to simply open
the layout.Can you guide me a bit,I tried using the dbOpen function the
same way you described above but it's not working.

Thanks
Sumit
What is not working? Are you using deOpenCellView or dbOpenCellView?
dbOpenCellView won't open a window, but deOpenCellView should...

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top