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!

exporting a table

Status
Not open for further replies.

benjimain

Aerospace
Joined
Jun 16, 2015
Messages
9
Location
GB
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
 
You can find some information on writing to a text file here:

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top