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
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