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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image file from NXOpen/Journal 1

Status
Not open for further replies.

Guillermo391

Mechanical
Joined
Mar 31, 2014
Messages
4
Location
MX

I have tried searching the documentation for this, but I'm relatively new to this (student working part time on new project)...
Is there any way I can call to open an image file from within the Journal? Reason is it asks for input from user, but I'm required to graphically show the user what is the required info to reduce errors. Is there some way I can make this happen?

Thanks,
Guillermo391
 
You have an image file (such as .bmp, .jpg, or .png) and simply want to open it to display it to the user?

If so, the following is probably the easiest way to do it (only uses .net functionality, no NXOpen functions required).

Code:
Option Strict Off
Imports System
Imports NXOpen

Module Module1

    Sub Main()

        'image file to open
        Dim myImage As String = "{replace with path to your image file}"

        Try
            System.Diagnostics.Process.Start(myImage)

        Catch ex As Exception
            'handle error

        End Try

    End Sub

End Module

www.nxjournaling.com
 
If you are using the block styler, you can add an image to your NX dialog to serve as a legend.

Mark Rief
Product Manager
Siemens PLM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top