API Documentation > Miscellaneous > Object ProDisp > Function ProDispObjectSetTransform
Function ProDispObjectSetTransform
Description
Sets the transform of an object relative to it's parent in creo scene. This API is only for 3d mode (part/assembly etc) and won't work in 2D (drawings, sketch, CE).
Synopsis
#include <ProDispObject.h>
ProDispObjectSetTransform
(
int window
/* (In)
Identifier of window in which ProDispObject will be detached from Creo scene
*/
int* key_list
/* (In)
ProArray containing member_identification table of ProDispObject which will be detached from scene graph. This is the "key_list" passed to ProDispObjectAttach plus the "new_key
*/
/* (In)
new transform for this display object relative to its parent.
*/
ProMatrix old_trf
/* (Out)
old transform for this display object
*/
)
Returns
The function succeeded
Invalid window
ProDispObject not found in the scene graph of window
One or more input arguments was invalid
Function is not supported on given window(because it is 2D window, like drawing or sketcher).
User Guide References
Was this helpful?