Skip to main content
10-Marble
Jun 26, 2023 5:04 AM UTC
Solved

Need an Idea for find the Bodies Parameters in VB Api

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.

 

 

 

17-Peridot
Jun 29, 2023 7:58 AM UTC

Sample code about how to use ListItems()

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

3 replies

17-Peridot
Jun 26, 2023 6:07 AM UTC

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

Translate
10-Marble
Jun 26, 2023 6:14 AM UTC

Can u give any sample code?

 

Translate
17-Peridot
Jun 29, 2023 7:58 AM UTC

Sample code about how to use ListItems()

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

Translate