Skip to main content
16-Pearl
Oct 24, 2016 12:58 PM UTC
Solved

How to select the Datum plane from Model Tree by Program itself instead if User Interactive Selection?

Hi All,

  I am planning to create the Extrude feature by Toolkit Program in predefined datum plane as reference. Since I know the plane exactly where would be the extrude. I won't like to make the user  to select the plane as user interaction method. So anybody let me know how to do this.


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.
14-Alexandrite
Oct 26, 2016 12:26 PM UTC

You will need to use the ProSelectionAlloc function. If you are working within a part model the ProAsmcomppath member (first argument) can be NULL.

To get the modelitem handle you can use either ProModelitemInit or ProModelitemByNameInit.

2 replies

14-Alexandrite
Oct 26, 2016 12:26 PM UTC

You will need to use the ProSelectionAlloc function. If you are working within a part model the ProAsmcomppath member (first argument) can be NULL.

To get the modelitem handle you can use either ProModelitemInit or ProModelitemByNameInit.

Translate
16-Pearl
Oct 26, 2016 1:02 PM UTC

Hi Gabriel,

I have utilized ProModelitemByNameInit.

Translate