Cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the parts into Team Center session

Creator
Creator

Below code, brings the parts which are stored in the list into session in native environment.

What should I change so as to make the same in Team Center environment?

  Dim a As Integer = 0
For Each partNames As String In partList
Try
fileOpen(dosyaYolu & partsFolder & "\" & partList(a) & ".prt")
Catch ex As Exception
End Try
a = a + 1
Next

 

2 REPLIES 2

Re: Getting the parts into Team Center session

Phenom
Phenom

@metin_mehel 

 

That is based on what you wrote inside "fileopen" method. if you want to open a teamcenter part using NXopen classes then, best approach is to record a journal or If you want to open the part using ufunc wrapper methods then, the best approach is to find the encoded filename. make sure you are passing correct revision in this case.

 

Post your fileopen method here and also let us know which option do you prefer.

伊尔凡

Re: Getting the parts into Team Center session

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Replace the native path with the Teamcenter short-hand:

@DB/{Item ID}/{Item Revision}

So something like:

@DB/0815/A

Hope this helps.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX12.0.2, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX (1876) | AWC 3.4 Preparing: -

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide