Skip to main content
1-Visitor
May 3, 2016
Question

ProXsecCompXhatchGet()

  • May 3, 2016
  • 1 reply
  • 1608 views

Hello,

Could anyone will be able to let me know what need to be passed for argument "int id" for toolkit API ProXsecCompXhatchGet()?

We are using Creo 2.0 M090.

Thanks and Regards

Ketan


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

12-Amethyst
May 3, 2016

Took a look at the code.  'id' is a bit of a misnomer here.  What is wanted is the index in the array returned by ProXsecGeometryCollect.

1-Visitor
May 3, 2016

Hello,

Thank you for your help on this...

I am based out of India and hence, I could not check what you have suggested...

If I am not wrong, I presume ProXsecGeomCollect would give me array. While API for Hatch get require only integer as argument.

Could you please help me to know what to be taken from array returned from ProXsecGeomCollect API? I.e. what is the logic to be considered for taking index from array.

Thanks in advance.

Regards

Ketan

12-Amethyst
May 3, 2016

Index in an array is the position of the desired item in the array (starting at 0).  If you call ProXsecGeometryCollect(xsec, view, &geom_arr) and you get geom_arr with size 3, you have three ProXsecGeometry structures, indices 0, 1, and 2.  If you look at the first one, and find its memb_id_tab is the component you are interested in changing the hatching of, you would pass 0 as the id.  If it is the next one, you would pass 1, and so on.