×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Image file from NXOpen/Journal

Image file from NXOpen/Journal

Image file from NXOpen/Journal

(OP)

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

RE: Image file from NXOpen/Journal

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

RE: Image file from NXOpen/Journal

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources