exporting a table
exporting a table
(OP)
Hi everyone
I have build a table in nx journal and I would like to export this table in a text file that I would use with matlab.
I know to methode in VBA that do what I want but it doesn't work in the journal. can someone help me with this " conversion "
this what I have in VBA :
Dim intFicBat As Integer
Dim FichierBat As Variant
intFicBat = FreeFile
‘ChDrive strDrive
‘ ChDir strDirectory
FichierBat = Application.GetSaveAsFilename(fileFilter:="Text Files (*.txt), *.txt")
‘FichierBat = strDirectory & "\Batch.bat"
Open FichierBat For Output As intFicBat
Print #intFicBat, strEcriture
Close intFicBat
the comment lines discribe the second methode
thanks for your help
I have build a table in nx journal and I would like to export this table in a text file that I would use with matlab.
I know to methode in VBA that do what I want but it doesn't work in the journal. can someone help me with this " conversion "
this what I have in VBA :
Dim intFicBat As Integer
Dim FichierBat As Variant
intFicBat = FreeFile
‘ChDrive strDrive
‘ ChDir strDirectory
FichierBat = Application.GetSaveAsFilename(fileFilter:="Text Files (*.txt), *.txt")
‘FichierBat = strDirectory & "\Batch.bat"
Open FichierBat For Output As intFicBat
Print #intFicBat, strEcriture
Close intFicBat
the comment lines discribe the second methode
thanks for your help





RE: exporting a table
http://nxjournaling.com/content/write-text-file
If you are using a .net language, you can Google the term ".net write to text file" for literally thousands of webpages showing how to do it. You can use the common .net framework commands to read and write files, you don't need any special knowledge of the NXOpen API to do it.
www.nxjournaling.com