×
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

Use SNAP in NX Journal

Use SNAP in NX Journal

Use SNAP in NX Journal

(OP)
Hello

I'm kind of new to NX journaling and I ran into some issues trying to create a little SNAP program. Any suggestions will be much appreciated.

I'm trying to get familiar with the SNAP option. I found some examples in the "SNAP_Getting_Started_V10.pdf" document.

I keep getting two errors and after some research I haven't been able to solve the issue. I'm trying to create a User Input Box with a couple of options, based on the selection the main journal will run a specific portion of the code.

Basically I want to create something like this:


These are the errors I'm getting:
'Snap" is not declared. it may be inaccessible due to its protection level.
'GetChoice' is not declared. it may be inaccesible due to its protection level.

I will appreciate any feedback. I will keep researching and post if I find any solutions.

Thanks in advance!

Here's the code I have so far.

CODE -->

Option Infer On
Imports Snap
Imports Snap.Create
Imports Snap.UI.Input
Imports MiniSnap
Imports MiniSnap.Create
Imports System
Imports NXOpen
Imports NXOpen.UF
Imports NXOpenUI
 
Public Class MyProgram
 
   Public Shared Sub Main()
 
Dim cue = "Please choose the correct option"
Dim title = "Choose Component Type"
Dim label = "Type"
Dim componentType As String( ) = {"Detail", "Weldment"}
Dim style = Snap.UI.Block.EnumPresentationStyle.RadioBox
Dim choice = GetChoice(componentType, cue, title, label, style)
 
 
   End Sub
 
End Class 


RE: Use SNAP in NX Journal

Do you have a full SNAP license? If not, you will be limited to miniSNAP.

www.nxjournaling.com

RE: Use SNAP in NX Journal

(OP)
Hi cowski

Thank you for your answer. I think that might be the issue.

I'm waiting for an answer from IT. If we don't have the license, hopefully I can requested in order to make this work.

Thanks again!

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