Skip to main content
1-Visitor
December 15, 2020
Solved

Items visit in assembly Simp rep

  • December 15, 2020
  • 1 reply
  • 2190 views

Hello all

 

We have Creo 4.0 M130 and working on toolkit side.

 

I am aware that direct api which visits / collects all items in simp rep for assembly is not visiting all the items.... Items must be set as Either master or Exclude (only these two options) for api to work perfectly...

 

Concern is that designers set derived status as well for components of assembly for simp rep.... In this case , we obviously miss status of items which must be ignored or considered as item of simp rep.... Is there a way to achieve all the items which are active for a simp rep even though it might be set as excluded or master rep or derive status?

 

Feel free to ask for clarification if question is not clear.. thanks in advance...!

 

 

Best answer by FV_01

@Ketan_Lalcheta wrote:

Hello all

 

We have Creo 4.0 M130 and working on toolkit side.

 

I am aware that direct api which visits / collects all items in simp rep for assembly is not visiting all the items.... Items must be set as Either master or Exclude (only these two options) for api to work perfectly...

 

Concern is that designers set derived status as well for components of assembly for simp rep.... In this case , we obviously miss status of items which must be ignored or considered as item of simp rep.... Is there a way to achieve all the items which are active for a simp rep even though it might be set as excluded or master rep or derive status?

 

Feel free to ask for clarification if question is not clear.. thanks in advance...!

 

 


Hello all,

Ketan,

There is an option to use ProAsmcompVisibilityGet(...) while visiting assembly components.

Regarding usage of ProSimprepdataitemsVisit(...) or accessing ProSimprepdata structure's 'items' member directly, one needs to remember that prosimprepdata items are not assembly components but rather inclusion/exclusion rules for assembly components. User Guide provides rather simplistic example of the function usage which indeed would work with Master or Exclude variations.

HIH.

FV.

 

1 reply

FV_0117-PeridotAnswer
December 22, 2020

@Ketan_Lalcheta wrote:

Hello all

 

We have Creo 4.0 M130 and working on toolkit side.

 

I am aware that direct api which visits / collects all items in simp rep for assembly is not visiting all the items.... Items must be set as Either master or Exclude (only these two options) for api to work perfectly...

 

Concern is that designers set derived status as well for components of assembly for simp rep.... In this case , we obviously miss status of items which must be ignored or considered as item of simp rep.... Is there a way to achieve all the items which are active for a simp rep even though it might be set as excluded or master rep or derive status?

 

Feel free to ask for clarification if question is not clear.. thanks in advance...!

 

 


Hello all,

Ketan,

There is an option to use ProAsmcompVisibilityGet(...) while visiting assembly components.

Regarding usage of ProSimprepdataitemsVisit(...) or accessing ProSimprepdata structure's 'items' member directly, one needs to remember that prosimprepdata items are not assembly components but rather inclusion/exclusion rules for assembly components. User Guide provides rather simplistic example of the function usage which indeed would work with Master or Exclude variations.

HIH.

FV.