cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Get the model handle for the activate component in the current assembly

kishore_venigan1
1-Newbie

Get the model handle for the activate component in the current assembly

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


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

I've looked inside Creo Elements 5.0 / M120 Toolkit API and found :


<h2>Function ProMdlActiveGet</h2>


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

Top Tags