Skip to main content
16-Pearl
October 24, 2016
Solved

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

  • October 24, 2016
  • 2 replies
  • 2522 views

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.
Best answer by GabrielZaha

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
October 26, 2016

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.

16-Pearl
October 26, 2016

Hi Gabriel,

I have utilized ProModelitemByNameInit.