de_get_alternate_window()

Returns the alternate window instance handle and sets the current window to this alternate. If the alternate window instance does not yet exist, it will be created with the design and the new window instance handle is returned. If the current window type is SCHEMATIC, then the alternate window is type LAYOUT and vice versa.

Syntax:

de_get_alternate_window(winInst, designHandle[, forceCreateWin]);

where

winInst is the current window instance.

designHandle is the handle of a valid design.

forceCreateWin is optional. Default = TRUE. Specifies whether or not to use an alternate window instance with the same design where:

  • TRUE = if no alternate window is opened, returns an alternate window instance with the same design
  • FALSE = if no alternate window is opened, returns NULL

Example:
decl otherWinInst, winInst, designHandle;
winInst = api_get_current_window();
designHandle = de_get_design_in_window(winInst);
otherWinInst = de_get_alternate_window(winInst, designHandle);

Where Used:

Schematic, Layout

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources