Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello,
I open an assembly in Pro/E WF 5.0 and i activated one the component in the given assembly(right click and activate).I run my pro/toolkit application to get the model handle for the activated component from the given assembly.I tried with all releven API in pro/toolkit.I could not able to differentiate the activated component from the assembly.Is any one come across such a suituation any work around method to get the model handle.
I attched the image file where i marked as a red color for which i should get the model handle object from Pro/Toolkit application.
With regards,
Kishore V
I've looked inside Creo Elements 5.0 / M120 Toolkit API and found :
Synopsis
#include <ProAssembly.h>
ProErrorProMdlActiveGet(
ProMdl* p_handle
/* (Out)
The model handle
*/ ) Returns
PRO_TK_NO_ERROR
The function successfully initialized the handle.
PRO_TK_BAD_CONTEXT
The active Creo Parametric object is not set.
This should be the right function to get the active Model back from your Creo Ele 5.0.
Best regards,
Eike