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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Roll-up child part weight onto parent part in PartStructure

Durga
13-Aquamarine

Roll-up child part weight onto parent part in PartStructure

Hi all,

I'm trying to achieve to display the addition of weights of the child part onto the parent Part in the structure.

Attached is the image of the same.

Referred to CS228951 however that's not working may be I'm making some error.

Any suggestions or references?

Thanks in advance

Regards.

 

 

7 REPLIES 7
abhishekarya
14-Alexandrite
(To:Durga)

Is Weight attribute on WTPart? can you paste your mapping?

Durga
13-Aquamarine
(To:abhishekarya)

Yes its First on EPM from SolidWorks CAD then passed to related WTPart.

Created an alias attribute on subassembly WTPart with following mappings,

Mass is the internal name of attribute on EPM and related WTPart

Tried both given below 

masterReference^wt.part.WTPartMaster~uses@wt.part.WTPartUsageLink~usedBy^wt.part.WTPart~masterReference^wt.part.WTPartMaster~uses@wt.part.WTPartUsageLink~usedBy^com.xxx.sl_wct.RawFinish~Mass

masterReference^wt.part.WTPartMaster~uses@wt.part.WTPartUsageLink~usedBy^com.xxx.sl_wct.RawFinish~Mass

BenLoosli
23-Emerald II
(To:Durga)

We use this relation in part and assembly start files:

/*** SET WEIGHT PARAMETER ***
WEIGHT=PRO_MP_MASS

 

If you have material assigned, the parts will get the weight. You do have this.

In the assembly, it will sum all of the weights of the component parts. This is what you are asking for.

Durga
13-Aquamarine
(To:BenLoosli)

Any references to execute it.

BenLoosli
23-Emerald II
(To:Durga)

No, just add that line to your relations in each part and recalculate the mass, then do a regen to update the Weight parameter. We do it with a mapkey.

Durga
13-Aquamarine
(To:BenLoosli)

Thanks, Ben however no clue about it.

JeffZemsky
17-Peridot
(To:Durga)

@Durga -if you have the attributes on the WTParts you can use this pattern to show rollups in PSB.  It will rollup the values to display in the Structure view (there is not a persistence mechanism - it is always dynamically shown in the structure)

 

Please note when showing this it does add the calculation overhead so one might want to have a table view specific for rollups.  These samples are available from Windchill 11.1 onwards.

 

Sample Code (from Help)

Announcements

Top Tags