Skip to main content
10-Marble
June 26, 2023
Solved

Need an Idea for find the Bodies Parameters in VB Api

  • June 26, 2023
  • 1 reply
  • 2396 views

Hi all,

     I need to find the multi bodies parameters. I have a multiple body, like Body1, Body2, Body3, etc... Now I want to find these bodies parameters by iterating each and every Body in the 3D Model. So, I need any sample code in VB API to execute this.

 

 

 

Best answer by YaroslavSin

Sample code about how to use ListItems()

\PTC\Creo x.x.x.x\Common Files\vbapi\vbapi_examples\pfcFeaturesExamples.vb

1 reply

17-Peridot
June 26, 2023

Get bodies from model ListItems() with EpfcITEM_BODY as a type. Then read parameters from ModelItem as usual.

10-Marble
June 26, 2023

Can u give any sample code?

 

17-Peridot
June 29, 2023

Sample code about how to use ListItems()

\PTC\Creo x.x.x.x\Common Files\vbapi\vbapi_examples\pfcFeaturesExamples.vb