×
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

Exporting a simplified BOM?

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
 

RE: Exporting a simplified BOM?

Hi

Why don't you "customize" you Analyze-BOM command in order to exclude what ever you want?

Regards
Fernando

RE: Exporting a simplified BOM?

(OP)
Hi,
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?

Have you tried the listing report from the same dialog??

RE: Exporting a simplified BOM?

(OP)
Thanks, perfect! just what I need.

RE: Exporting a simplified BOM?

(OP)
Hi

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.
 

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