Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

import dxf to teamcenter dataset using NXOpen

Status
Not open for further replies.

lklo

Industrial
Joined
Nov 24, 2010
Messages
226
Location
DK
Hi anyone -

I have tried a little test - to see if it should be possible to import a DXF file into a teamcenter dataset.
But I am not sure I have done it the right way...

my error is :Reference to a non-shared member requires an object reference

But maybe is it not possible at all ,to import a file to a dataset using NXOpen (VB.NET)

If someone here on the board have any usefull comment , I will be very happy


Option Strict Off
Imports System
Imports NXOpen
Imports NXOpen.PDM.FileManagement


Module NXJournal
Sub Main (ByVal args() As String)

Dim theSession As Session = Session.GetSession()
Dim theUI As UI = UI.GetUI()

Dim TCno As String = "D1278216"
Dim TCrev As String = "001"
Dim TCname As String = "D1278216" & "/" & "001"
dim TCtype as string = "DXF"
Dim TCrel As String = "specification"
Dim TCdir As String = "C:\NX_to_DXF_output_directory\"

ImportFiles(TCno, TCrev, TCname, TCtype, TCrel, TCdir)

End Sub
End Module
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top