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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Change Component to User Defined Rep

Navku
13-Aquamarine

Change Component to User Defined Rep

Hi,

 

Can you suggest api to change component in assembly to user defined representation.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
FV
17-Peridot
17-Peridot
(To:Navku)

Having ProAsmcomppath for a component and ProSimprep for a user defined representation.

 

  • get ProSimrepdata with ProSimprepDataGet()
  • get ProSimprepActionType type with ProSimprepdataDfltGet()
  • create a ProSimprepAction with the acquired type
  • create ProSimprepdataitem with  ProSimprepdataitemInit(), use component's ProAsmcomppath  values to fill function arguments
  • add item to a data structure with ProSimprepdataitemAdd()
  • set data with ProSImprepdataSet()
  • free data with ProSimprepdataFree()

 

View solution in original post

2 REPLIES 2
FV
17-Peridot
17-Peridot
(To:Navku)

Having ProAsmcomppath for a component and ProSimprep for a user defined representation.

 

  • get ProSimrepdata with ProSimprepDataGet()
  • get ProSimprepActionType type with ProSimprepdataDfltGet()
  • create a ProSimprepAction with the acquired type
  • create ProSimprepdataitem with  ProSimprepdataitemInit(), use component's ProAsmcomppath  values to fill function arguments
  • add item to a data structure with ProSimprepdataitemAdd()
  • set data with ProSImprepdataSet()
  • free data with ProSimprepdataFree()

 

Navku
13-Aquamarine
(To:FV)

Hi,

 

Thanks for the reply.

 

The one I missed was ProSubstitutionInit to change user defined rep.

 

Top Tags