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

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

SOLVED
Highlighted
Moonstone

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

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 2

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

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.

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

Hi Gabriel,

I have utilized ProModelitemByNameInit.