Skip to main content
1-Visitor
June 17, 2015
Question

What is the PTC parameter for Quantity.

  • June 17, 2015
  • 5 replies
  • 7330 views

Hello Creo Experts,

What is the PTC parameter for Quantity.

I want to create user define parameter which contain actual part quantity+spare quantity.

which need to replicated in BOM table as (4+8)

where 4=actual part quantity used in assemble

and 8=spare quantity delivered with product.

spare quantity will be user input.

Thanks you in advance

Best Regards,

Manoj


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

5 replies

12-Amethyst
June 17, 2015

that would be  &rpt.qty in the BOM table repeat region

mwaghmode1-VisitorAuthor
1-Visitor
June 17, 2015

Thanks Ron St.Pierre,

How can assign the Value of quantity as actual quantity + spare.

so that my BOM quantity looks like 8+4.

somthing I will create Relation QTY= &rpt.qty+spare.

12-Amethyst
June 17, 2015

Assuming you have a bom table, in the table tab > repeat region, select relations then your repeat region in the bom table.

A menu will come up where you can write some programming.

Put this in your relations:

bom_qty=rpt_qty+4

Then in your bom table, the first row of your repeat region, select it (if you select switch dims in the table relation menu, you will see the parameters)

we need to change what is being reported in the bom table

Right mouse button > report parametets

select rpt... > rel... > User Defined > type in bom_qty

switch your symbols back then update tables.

ron


12-Amethyst
June 17, 2015

For the components that are supposed to show additional items in the BOM table, use the Include function in the assembly rather than manipulating the BOM table.

mwaghmode1-VisitorAuthor
1-Visitor
June 17, 2015

Thanks Don,

will it replicate in BOM?

My customer want it in BOM table only.

Regards,

manoj

12-Amethyst
June 17, 2015

Yes, it will show up in the BOM. It will show in the Model Tree, but it will not be shown in the CAD model. I'm pretty sure the intent of the Include function is specifically for cases like yours. It's pretty easy to use, so, try it out.

mwaghmode1-VisitorAuthor
1-Visitor
June 17, 2015

Thank you all.

Appreciate  your quick help.

Dale_Rosema
23-Emerald III
23-Emerald III
June 18, 2015

Coming late to the discussion, but this was a similar thread where I only needed 1/2 of a part:

 

1/2 of a part

 

 

Patriot_1776
22-Sapphire II
June 17, 2015

Interesting stuff here.  While I don't have a use for it as yet, I'll have to check it out, thanks!

1-Visitor
June 19, 2015

Not tested, but I guess the following code will do the trick. Put it in repeat region relations.

IF exists("asm_mbr_spare_check")

    RR_SPAREQTY_CHECK=asm_mbr_spare_check

ELSE

    RR_SPAREQTY_CHECK=false

ENDIF

COPY_OF_SPAREQTY=asm_mbr_spare

IF COPY_OF_SPAREQTY<>"" & COPY_OF_SPAREQTY<>" " & RR_SPAREQTY_CHECK=true

    USER_QTY=rpt_qty+"+"+asm_mbr_spare

ELSE

    USER_QTY=rpt_qty

ENDIF

For the code to work &rpt.rel.USER_QTY needs to be defined in the repeat region column table, SPARE parameter needs to be defined on part level as a string, SPARE_CHECK parameter also at part level as boolean, and I think that's it.

If you don't like the SPARE_CHECK thing you can just weed it out, but I can't tell for sure the code is gonna work without it. Just have to test it.