I am trying to replicate in an NX Journal (Visual Basic) the same result as going to File > Export > Drawings to Teamcenter.
When I record a new Journal and attempt those actions, nothing is recorded.
I have attempted .SaveCgm and then saving the part. Am I even close?
Is someone able to link an example of what is occuring under the "Drawings to Teamcenter" command?
I haven't been able to find any information on this kind of Export.
Thank you in advance for your help.
Refer the NX documentation link
'Drawings to Teamcenter' command will create the CGM files of drawing sheets and exports them to teamcenter which can be seen under the UGMASTER/UGPART dataset by clicking the triangular icon as shown.
Also from managed NX, File > Export > CGM will export the separate CGM datasets for each drawing under the item revision in Teamcenter.
Thank you Ganesh_Kadole, for explaining the difference between the two Exports.
I recorded a journal while performing File > Export > CGM and that lead me to the CGMBuilder Class.
I have written my journal to use this class and when I use .Commit(), the CGM file is created in Teamcenter under the Item Master as you explained. Is their a way to tell the CGMBuilder to create the CGM file under the Item Revision as you explain in the first part? (image below)
I cannot seem to find any method that changes the Teamcenter save location for the CGMBuilder.
That is the OOTB behaviour of TC-NX for those particular commands.
I am not sure if it is possible to change the behaviour by tweaking the code. I do not know much about journaling, so can't help you on this. Someone else may give you idea about it.