Cancel
Showing results for 
Search instead for 
Did you mean: 

Cut specific teamcenter-relation with NXOpen?

Creator
Creator

Hello,

 

Is it possible to cut a specific non-master part (PDF) in teamcenter with NXOpen?

 

Actual situation:
After a save operation in NX we will create a PDF automatically in teamcenter (PrintPDFBuilder)

 

Problem:
The name of this PDF is: ItemID_ItemRevID_ObjectName
So if the revision will be renamed NX will create a second PDF and doesn't overwrite the existing one.

Work-around:
1) Before the program creates the new PDF it should cut the old PDF, but I don't know if it is possible to cut relations in teamcenter with NXOpen.

2) Otherwise I must create a post-action in teamcenter that removes the old PDF

 

Thanks,

3 REPLIES

Re: Cut specific teamcenter-relation with NXOpen?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

You can't do it with NXOpen but you can call SOA  methods to do it from your NXOpen code. Maybe better solution than defining a postaction.

Regards,

Xtof

Re: Cut specific teamcenter-relation with NXOpen?

Creator
Creator

Thank you for this information.
Is there an sample code how can I call SOA methods in NXOpen?
Thanks,

Re: Cut specific teamcenter-relation with NXOpen?

Siemens Phenom Siemens Phenom
Siemens Phenom

 

Yes, we distribute an example with NX.  Have a look in this folder, wherever you have NX installed:

 

...\UGOPEN\SampleNXOpenApplications\C++\SOAConnectionExample

 

Note that it will make a new connection to the database.  Be sure to have a close look at the "SOAConnectionExample_ReadMe.txt" file in that folder.