Exporting a simplified BOM?
Exporting a simplified BOM?
(OP)
Hi,
Can anyone tell me if it's possible to extract various entries from the properties form to a text file in Catia V5? To expand further I would like to open a .catpart and run a macro/ report to pull the Part number, Revision, Nomenclature etc into a txt file to a location on the OS.
Ie .txt file would only contain:
Test_part.catpart
Part number= 12345678
Revision= 2
Nomenclature= 5678
Analyze-BOM command does provide me with all the information but I need a very simple version of this as above.
I also need it to output a similar file for a catproduct to include entries for catparts. Ie:
Test_Assy.catproduct
Part number= 1234
Revision= 1
Nomenclature= 33444
Test_part.catpart
Part number= 12345678
Revision= 2
Nomenclature= 5678
I have very limited experience with macros and don't even know if this is possible. Any help or guidance to point me in the right direction would be greatfully appreciated.
Thanks in advance
Paul
Can anyone tell me if it's possible to extract various entries from the properties form to a text file in Catia V5? To expand further I would like to open a .catpart and run a macro/ report to pull the Part number, Revision, Nomenclature etc into a txt file to a location on the OS.
Ie .txt file would only contain:
Test_part.catpart
Part number= 12345678
Revision= 2
Nomenclature= 5678
Analyze-BOM command does provide me with all the information but I need a very simple version of this as above.
I also need it to output a similar file for a catproduct to include entries for catparts. Ie:
Test_Assy.catproduct
Part number= 1234
Revision= 1
Nomenclature= 33444
Test_part.catpart
Part number= 12345678
Revision= 2
Nomenclature= 5678
I have very limited experience with macros and don't even know if this is possible. Any help or guidance to point me in the right direction would be greatfully appreciated.
Thanks in advance
Paul





RE: Exporting a simplified BOM?
Why don't you "customize" you Analyze-BOM command in order to exclude what ever you want?
Regards
Fernando
RE: Exporting a simplified BOM?
I'm just after a very basic file without the table layout etc. Also for the properties entries to appear on rows rather than columns. I cannot appear to customise to this extent (see example above). Sounds very finicky but its so that a downstream application can import this.
RE: Exporting a simplified BOM?
RE: Exporting a simplified BOM?
RE: Exporting a simplified BOM?
Sorry to be a pain again but does anyone know how to append to the same text file on each BOM listing.
I currently have the following entry in the macro:
assemblyConvertor1.Print "TXT", "C:\temp\" & product1.PartNumber & ".txt", product1
Which creates a new file with the part number as the filename. But if I run the macro on another CATproduct I really need the following:
assemblyConvertor1.Print "TXT", "C:\temp\list.txt", product1.
And for this to add to the bottom of the list.txt rather than overwrite.
Many thanks in advance.