×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

drawing BoM/drawing list - AP203

drawing BoM/drawing list - AP203

drawing BoM/drawing list - AP203

(OP)
Is there a way you can customize the default AP203 format when creating a bill of materials/parts list for a drawing. You can define your own format, but when you close the model/session it is lost and reverts to AP203.

Any suggestions ?

Thanks - Kevin

RE: drawing BoM/drawing list - AP203

Kevin, I have created some scripts for this.  Actually one of the few "easy" scripts to make.  Run it before you analyze the BOM.  To create the script.  Start the macro record, go to analyze bom, set the options, close the macro.

Here is a sample.

Language="VBSCRIPT"

Sub CATMain()

Set productDocument1 = CATIA.ActiveDocument

Set product1 = productDocument1.Product

Set assemblyConvertor1 = product1.GetItem("BillOfMaterial")

Dim arrayOfVariantOfBSTR1(0)

assemblyConvertor1.SetCurrentFormat arrayOfVariantOfBSTR1

Dim arrayOfVariantOfBSTR2(5)
arrayOfVariantOfBSTR2(0) = "Quantity"
'            arrayOfVariantOfBSTR2(1) = "Type"
'            arrayOfVariantOfBSTR2(2) = "Source"
'            arrayOfVariantOfBSTR2(3) = "Number"
arrayOfVariantOfBSTR2(1) = "Part Number"
'            arrayOfVariantOfBSTR2(5) = "Revision"
'            arrayOfVariantOfBSTR2(6) = "Definition"
'            arrayOfVariantOfBSTR2(7) = "Nomenclature"
arrayOfVariantOfBSTR2(2) = "Product Description"
'            arrayOfVariantOfBSTR2(9) = "Source"
'            arrayOfVariantOfBSTR2(10) = "Default Representation Source"
'            arrayOfVariantOfBSTR2(11) = "Comment"
'            arrayOfVariantOfBSTR2(12) = "List Of Named URLs"
arrayOfVariantOfBSTR2(3) = "Material"
'            arrayOfVariantOfBSTR2(14) = "Vendor"
'            arrayOfVariantOfBSTR2(15) = "Process"
arrayOfVariantOfBSTR2(4) = "Block Weight"
arrayOfVariantOfBSTR2(5) = "Comment"
assemblyConvertor1.SetSecondaryFormat arrayOfVariantOfBSTR2

End Sub

Regards,
Derek

RE: drawing BoM/drawing list - AP203

(OP)
Thanks for this.

I need it to read - Number (from generated number command in product), part number (actual file name), Description (nomenclature) and Qty (No of parts - 1st level only).

I should be able to figure it out, but only just started using VB, if you could help it would be extremely appreciated!

Thanks - Kevin

RE: drawing BoM/drawing list - AP203

(OP)
Its OK, I have figured it out.

Thanks - Kevin

RE: drawing BoM/drawing list - AP203

(OP)
Just realised another problem!

Trouble is that In my BoM/parts list on my drawing I only whant 1st level of parts to appear (as in the spec tree in product) as would be normal on most engineering drawings.
I think the problem is when you number the parts/products in the product, It numbers all components including parts of sub product.
Can anybody help?

Thanks - Kevin

RE: drawing BoM/drawing list - AP203

Kevin - There is a toggle on the property page - Visualize in Bill of Material.  If you activate at the product level, all sub components do not appear.  Most companies make scripts to accommodate their needs for a BOM.
 
Regards,
Derek

RE: drawing BoM/drawing list - AP203

There is a toggle on the property page - Visualize in Bill of Material.  If you activate at the product level, all sub components do not appear.  Most companies make scripts to accommodate their needs for a BOM.

Can you please explain the above.
In our company we are trying to develop BOM software.

thanks

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources