Description | |||||||||||||||||
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. This function should be used on model present in the session. Note: In Creo 3 this function does not support names longer than 80 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for ProMdlName will be added in a future release. |
|||||||||||||||||
Replacement in Object TOOLKIT: | pfcBaseSession::CreateModelWindow | ||||||||||||||||
pfcBaseSession::OpenFile | |||||||||||||||||
wfcWSession::OpenSource | |||||||||||||||||
Synopsis | |||||||||||||||||
#include <ProWindows.h> | |||||||||||||||||
ProError | ProObjectwindowMdlnameCreate | ( | |||||||||||||||
ProMdlName object_name | |||||||||||||||||
/* (In) | |||||||||||||||||
The name of the object to be retrieved | |||||||||||||||||
*/ | |||||||||||||||||
ProType object_type | |||||||||||||||||
/* (In) | |||||||||||||||||
The type of the object (PRO_PART, PRO_ASSEMBLY, PRO_CATIA_PART, PRO_SW_ASSEM and so on) | |||||||||||||||||
*/ | |||||||||||||||||
int* p_window_id | |||||||||||||||||
/* (Out) | |||||||||||||||||
The window identifier in which the object was retrieved | |||||||||||||||||
*/ | |||||||||||||||||
) | |||||||||||||||||
Returns | |||||||||||||||||
|