×
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

VB Code: BOM comaprison of 2 Assembly REVs

VB Code: BOM comaprison of 2 Assembly REVs

VB Code: BOM comaprison of 2 Assembly REVs

(OP)
Hello,

I'd like to create a VB program that runs in Teamcenter 9.1 and creates a comparison between the current REV and the previous REV from the Product Structure Editor (PSE). The program would have the comparison in a multi-level fashion, while displaying the BOM expanded to the lowest level. Afterwards, a printout would be generated.

Can someone please help me to get started on such a program?

Thank you for your help ahead of time.

Regards,
NX Prof

RE: VB Code: BOM comaprison of 2 Assembly REVs

Have you looked at Graphical BOM Compare under the Tools menu in Structure Manager? That will allow you to compare 2 different revisions.

Mike Hyde
www.astonmartin.com
NX8.5 with TC9.1

RE: VB Code: BOM comaprison of 2 Assembly REVs

(OP)
Thank you Mike for your response. But I have been performing my BOM comparisons just as you've described.

In order to save time and effort, I would like to develop a short VB program, which would run through Teamcenter, that would do the following:
1 - prompt the user for the assembly model number
2 - prompt the user for the current REV letter of the assembly
3 - prompt the user for the previous REV letter of the assembly
4 - provide a readout of the comparison, while printing the comparison in the background

If you're unfamiliar with programming (Teamcenter in particular), possibly someone else can help. Thank you again for attempting to assist me.

Regards,
NX Prof

RE: VB Code: BOM comaprison of 2 Assembly REVs

You may need to look at PLMXML to achieve what you want.

Regards

Mike

Mike Hyde
www.astonmartin.com
NX8.5 with TC9.1

RE: VB Code: BOM comaprison of 2 Assembly REVs

Could you not do it with a workflow process rather than a VB script, the item revs could be placed into folders beneath a workflow item which are attached as process targets to compare contents at all structure levels?

Khimani Mohiki
Design Engineer - Aston Martin
NX8.5

RE: VB Code: BOM comaprison of 2 Assembly REVs

You need to create an ITK program for that. It's not VB script but C/C++.

Please find the attached sample program from GTAC.

RE: VB Code: BOM comaprison of 2 Assembly REVs

(OP)
Thank you Mike, Khimani, and Mukundh each for your advice. But since I am unfamiliar with PLMXML, a workflow process, and C/C++, I will have to place this one on hold until another solution may be possible with VB code.

Thanks again.

Regards,
NX Prof

RE: VB Code: BOM comaprison of 2 Assembly REVs

You may be able to use ugmanager_transfer_program -assylist=<output file> -input=<part file> to list an assembly tree for each part and then compare the output from each assembly. This just gives basic item ID and revision and the command could be called from a VB script. The command may need to be packaged in a batch file in order to set the path and the environment variables required to run Teamcenter Integration for NX.

Details of the command can be found in the utilities section of the Teamcenter Integration for NX helpfiles under Transfer Parts Utility.

Mike Hyde
www.astonmartin.com
NX8.5 with TC9.1

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