Category Windows and views, Object ProWindow

Function ProObjectwindowCreate


DEPRECATED: Since Creo 3
SUPERSEDED BY: ProObjectwindowMdlnameCreate
Description
Note: This function is deprecated Use ProObjectwindowMdlnameCreate instead. Retrieves a window and attaches the object to it. If the window is already open with the object attached, the function returns the window identifier. If there is an empty window up, the function attaches the object to it. Otherwise, the function creates a new window and attaches the object to it.

NOTE:

This function should be used only when the application must display more than one object simultaneously. Under normal circumstances, use ProMdlDisplay() to show an object in the current or base window.

Synopsis
#include <ProWindows.h>
ProErrorProObjectwindowCreate(
ProName object_name
/* (In)
The name of the object to be retrieved
*/
ProType object_type
/* (In)
The type of the object (PRO_PART, PRO_ASSEMBLY, and so on)
*/
int* p_window_id
/* (Out)
The window identifier in which the object was retrieved
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the window and attached the object to it.
PRO_TK_INVALID_TYPEYou specified an invalid object type.
PRO_TK_BAD_INPUTSEither you specified an invalid object name, or the window identifier is NULL.
PRO_TK_E_DEADLOCKThe Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).

Manual References:

  1. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  2. Technical Summary of Changes for Creo 4.0 F000: Windows