Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5186

How to create an graphic editable window?

$
0
0

Hi,

 I would like to create a graphic window with a dockable form by programming like below:

 

win1 = hiCreateWindow('default "graphics" "zl_win" "" t)

ses1 = hiCreateWindow('default "session" "zl_ses" "" t)

dock1 = hiCreateDockWindow(?appType "zl_dock1" ?widgetType "form" ?form hiCreateAppForm(?name 'TheForm1 ?formTitle "Test" ?fields list(list(layer_id 20:0 220:30 160))))

hiDockWindow(?window dock1 ?session ses1)

hiDisplayWindow(win1 ses1)

 
p, li { white-space: pre-wrap; }After the window is created, I would like to draw layout within it, however, it says that:

 

 

*WARNING* No application registered for prefix zl_win

 

Then I write: p, li { white-space: prehiRegisterBindKeyPrefix("zl_win" "graphics"). After that, I tried to use the command:
p, li { white-space: pre-wrap

dbCreateRect(geGetEditRep(window(10)) list((0 0) (10 10)) list("met1" "drawing"))

 

to draw a rect. It failed and said that:

 

 
p, li { white-sp*WARNING* (GE-2067): geGetEditCellView: There is no graphical edit environment assigned to window(10) because the window is not a graphic editor window.

Make sure that your current window is a valid graphic editor window.

If it is a valid graph editor window, contact customer service to investigate this issue.

 

I don't know how to assign a graphical edit environment to the window, besides I think I already created a graphic window. Why isn't it recongnized?

 

Thanks in advance

 

Renee


Viewing all articles
Browse latest Browse all 5186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>