Skip to main content
1-Visitor
October 28, 2021
Solved

How to add the BOM quantity listed in a note?

  • October 28, 2021
  • 3 replies
  • 7136 views

Is there any way to create a user defined parameter in the .asm file to capture quantities of parts then use that in a note?

I know you can get the quantity from the BOM but in I need more detailed because we use a lot of parts and subassembly so the subassembly can be shown in the BOM but not as a note in order to show it in the selected sheet of each part from the subassembly. currently we put this note manually so we have a several of issues   

Best answer by YaroslavSin

1. In this case you need to create model level parameter - item_no. Create in model "Name_001b" a parameter item_no = "b". Then change int table &asm.mbr.cparam.item_no to &asm.mbr.item_no and in the relations asm_mbr_cparam_item_no to asm_mbr_item_no

 

2. Table borders

How to hide internal borders, not outline

https://community.ptc.com/t5/3D-Part-Assembly-Design/Hide-table-border-lines/m-p/271391#M40548

 

To hide whole table you need to change border color. Need to set not printable color (print by white color on white paper). Depending on you pen table setting.

https://community.ptc.com/t5/3D-Part-Assembly-Design/table-color/m-p/43903

 

3 replies

24-Ruby III
November 1, 2021

@DVsantacruz wrote:

Is there any way to create a user defined parameter in the .asm file to capture quantities of parts then use that in a note?

I know you can get the quantity from the BOM but in I need more detailed because we use a lot of parts and subassembly so the subassembly can be shown in the BOM but not as a note in order to show it in the selected sheet of each part from the subassembly. currently we put this note manually so we have a several of issues   


Hi,

unfortunately I do not know of any simple solution.

 

You can do following manually:

  • in assembly save textual BOM
  • run application that searches textual BOM for part quantities and generates relations defining parameter values
    • for example ... QTY_PART1_NAME=123
  • in assembly open Relation dialog box and paste generated relations into it
    • there may be problems with the length of the parameter name
  • regenerate assembly
  • in assembly open Relation dialog box and remove generated relations
  • regenerate assembly
  • use parameters in notes

I hope you can automate the above mentioned procedure using mapkey. Also you can ask someone to develop Toolkit application for you.

17-Peridot
November 1, 2021

Use table with repeat region and summation. Place the table outside drawing frame. See the video

1-Visitor
November 1, 2021

Thank you so much for you respond, It helped me a lot.... but look what I need is to add the real quantity not the sum of all the pieces... we currently have this note which they made long time ago, I put the &rep.qty in the #REQ value so it changed to the sum of all of them not just the 6, this value we put it manually  

 

DV_10098275_1-1635797828396.png

DV_10098275_2-1635798012162.png

17-Peridot
November 2, 2021

In drawing symbol do you want to show qnty = 6 for item - d ?

17-Peridot
November 9, 2021

One more way. Replace drawing symbol by the table with repeat region.

item_no - is a component level parameter.

Create string parameter in the relations for the repeat region - DISPLAY.

This parameter will be drive the visibility the components in the table by item_no component parameter.

In the relations for repeat region

FILTER = 0
IF asm_mbr_cparam_item_no == DISPLAY
 FILTER = 1
ENDIF

The filter for the repeat region:

&rpt.rel.filter == 1

 

 

ps: I'm not clear understand the structure of your assembly, but think this is close to what you asked. 

1-Visitor
November 9, 2021

Thank you so much for your response. 

First at all, the structure of my assembly is

Name.asm

Name_001.asm subassembly 

Name_001a

Name_001a

Name_001b

Name_002.asm subassmebly

Name_002a

Name_002b

an so on

So sometimes we put Name_001a and Name_002a into the same sheet and sometimes they (operators) dont have the main table to see the real qty of each item becuase they just have the printing sheet they're working, so that's why we put a custom symbol (a note) to each item into the drawing.

......

 

And second one. I have tried this one, and of course that's what I exactly need, it works, I just have a question right here (see image), how to set the "B" as the same name as the other ones, l mean all "Name_001b" is going to have "B" to avoid changing it one by one. and other question, can it be shown just as a text without the lines of the table?

 

 

DV_10098275_0-1636479173283.png

 

 

 

17-Peridot
November 10, 2021

1. In this case you need to create model level parameter - item_no. Create in model "Name_001b" a parameter item_no = "b". Then change int table &asm.mbr.cparam.item_no to &asm.mbr.item_no and in the relations asm_mbr_cparam_item_no to asm_mbr_item_no

 

2. Table borders

How to hide internal borders, not outline

https://community.ptc.com/t5/3D-Part-Assembly-Design/Hide-table-border-lines/m-p/271391#M40548

 

To hide whole table you need to change border color. Need to set not printable color (print by white color on white paper). Depending on you pen table setting.

https://community.ptc.com/t5/3D-Part-Assembly-Design/table-color/m-p/43903