Submitted by dhusk09 on Mon, 01/27/2014 - 08:40
Forums:
I have a functioning visual studio project that I would like to transform into a journal to run within NX. It is a calculator with a VB form that takes in one of 3 different sets of inputs and outputs a number for our machining spreadsheets. This calculator doesn't take any information from the .prt file(currently we use it as an .exe) but learning how to adapt the visual studio project to run int NX would lead to other advances in journaling. Can anyone lead me through taking the code that was create from the form and events that occur when buttons/inputs are clicked/filled and turning that into a journal?
re: journaling with forms
This is a topic that I'd like to write a tutorial on, but have not yet found the time.
One of the limitations of plain journaling is that all the code has to be contained in one file. You will need to create a new file and copy all the journal code, form code, and form designer code into it. The Sub Main of the journal will instantiate the form and display it as a dialog (modal forms are another limitation of plain journaling).
A quick example can be found here:
http://www.eng-tips.com/viewthread.cfm?qid=332871
The code from the start to the "End Module" statment is from the NX journal code, "Public Class Dialog1" to "End Class" is the form code, and the rest is the form designer generated code.