Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drawing BoM/drawing list - AP203

Status
Not open for further replies.

kevwoogs

Mechanical
Aug 15, 2006
40
0
0
GB
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
 
Replies continue below

Recommended for you

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
 
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
 
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
 
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
 
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
 
Status
Not open for further replies.
Back
Top