Switch from part to drawing and application and vice versa

Hi Group,

The company I work for stores their NX parts and drawings in separate Teamcenter items. Their drawings are always numbered the same as the parts, but with a suffix "_D".

Example:
- Part: 0580-001-005
- Related drawing: 0580-001-005_D

When they switch between the part and the drawing, they always have to switch applications too. Is there anyone who has written some code that I can use to make that easier? I'm thinking of a single journal "switch part/drawing" that checks if there is a drawing ("ActivePartId"+"_D") loaded, make the drawing active AND switch to drafting, and vice versa.

Regards,
Eric

NX9/TC10.1