Exporting STL files from Command Prompt

I have created a journal.vb file and want run it.
This journal file is running fine when I used a "Play journal" button from GUI.

But when I run the same journal file through run_journal.exe command from Command Prompt, I got the error as follows
"Runtime error: NXopen NXException: The required license is not available"

I made sure that the error occurred at PutSheetsInStlFile() method.

Do I need a license for this method ?
Why is the method runnng fine from GUI ?

Thank you for your help.

That particular command requires the moldflow_ppa or sla_3D_systems license. Make sure the system you are running on is configured with the correct license.

Hi,

I am looking for a journal to export STL from part file. If possible, can you please share your journal with me?

Many thanks,

Duong

You can find a code snippet for exporting STL here:
http://nxjournaling.com/comment/370#comment-370

This was taken from a larger program, I can post more of it later, if needed.

Thanks a lot!

Duong

I am a newbie to NX Journaling and this forum has helped me to take baby steps in NX Automation. I found this site very useful and Informative. A Big Thanks to the Contributors for their valuable Suggestions and Contributions. I went through the Code for Exporting Solids to STL, but I wish to have sheet Bodies also to be exported to STL format. I Tried Using theUfSession.Std.PutSheetsInStlFile(---Arguments--),and trying to extract the face information for the particular sheetBodies, but in vain. I am getting a lot of namespace issues and errors. Request anyone to modify the code for exporting sheetbodies also.

Thanks