NX8 Journal Editor
NX8 Journal Editor
(OP)
Hello World,
I am new to NX journaling but not new to Visual Basic programming. Is it possible to use a different editor than the one provided? I am used to Catia and Microsoft Visual Basic for applications (VBA) and the editor provided doesn't provide stepping nor any syntax coloring of the text. Is it possible to edit code in a Microsoft Office application and invoke a "reference"? I've tried that it doesn't seem to like the "Imports System" procedure call. Any step editing outside of the journal editor would be a huge benefit. Any help would be appreciated. Thanks
I am new to NX journaling but not new to Visual Basic programming. Is it possible to use a different editor than the one provided? I am used to Catia and Microsoft Visual Basic for applications (VBA) and the editor provided doesn't provide stepping nor any syntax coloring of the text. Is it possible to edit code in a Microsoft Office application and invoke a "reference"? I've tried that it doesn't seem to like the "Imports System" procedure call. Any step editing outside of the journal editor would be a huge benefit. Any help would be appreciated. Thanks





RE: NX8 Journal Editor
http://www.microsoft.com/visualstudio/eng/download...
In the thread:
thread561-290183: NXOpen VB.net programs
FrankSwinks provides a method to enable 'stepping' through code.
No; MS office uses VBA, NX journaling uses VB.NET. They are different animals.
www.nxjournaling.com
RE: NX8 Journal Editor
RE: NX8 Journal Editor
Option Strict Off
Imports System
Imports System.IO
Imports NXOpen
Imports NXOpen.UF
Module Module1
Sub Main()
Dim theSession As Session = Session.GetSession()
Dim ufs As UFSession = UFSession.GetUFSession()
Dim workPart As Part = theSession.Parts.Work
Dim outputDirectory As String = "C:\temp"
Dim strPartJpg As String = ""
strPartJpg ="c:\temp\image.jpg"
ufs.Disp.CreateImage(strPartJpg, UFDisp.ImageFormat.Jpeg, UFDisp.BackgroundColor.White)
End Sub
Public Function GetUnloadOption(ByVal dummy As String) As Integer
'Unloads the image when the NX session terminates
GetUnloadOption = NXOpen.Session.LibraryUnloadOption.AtTermination
End Function
End Module
If anyone has this already written in VB.NET please let me know. Thanks
Here is the thread that has the code for the Catia version of this functionality.