Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to test SNAP without licence ? 1

Status
Not open for further replies.

PSI-CAD

Computer
Feb 13, 2009
997
When trying to learn SNAP by my self with this simple Program (found in the SNAP Reference Manual) I have the following message for each line with 'Info Window'

'InfoWindow' is not declared. It may be inaccessible to its protection value.

What's wrong ? I thought this simple program worked
____________________________________________________________________
Imports Snap, Snap.Create

Partial Public Class MyProgram

Public Shared Sub Main()

Dim myString1 As String = "The sky is blue!"
Dim myString2 As String = "The air is fresh!"

Dim myStringArray As String() = {"Sunny", "Windy", "Rainy"}

InfoWindow.Write(myString1)
InfoWindow.WriteLine("")

InfoWindow.WriteLine(myString2)

InfoWindow.WriteLine(myStringArray, 10)

End Sub

End Class
_____________________________________________________________________

TIA


Regards
Didier Psaltopoulos
 
Replies continue below

Recommended for you

What version of NX are you using?

Starting with NX 8.5 we are now including, free of charge, 'MiniSNAP' (a subset of SNAP) which will allow you to test the basic capabilities of a SNAP program by running it from the normal 'Journal Editor'. There is enough functionality available so that you can run all of the sample programs outlined in the 'Getting Started with SNAP' guide which can be found in the NX Help files for programming tools.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Based on the title of this thread I assume that you do NOT have a full license of SNAP, correct? Perhaps the 'InfoWindow' item is not supported by 'MiniSNAP'.

Please remember that the purpose of 'MiniSNAP' was to provide a way for users to 'test drive' the software by being able to work out the sample programs provided in the SNAP getting started guide, but not a whole lot more than that.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
In the "Imports" statements, replace Snap with MiniSnap. And comment/delete or change the line highlighted in red, it will throw an error.

Code:
Imports [highlight #EDD400]MiniSnap[/highlight]
imports [highlight #EDD400]MiniSnap.Create[/highlight]

Partial Public Class MyProgram

Public Shared Sub Main()

Dim myString1 As String = "The sky is blue!"
Dim myString2 As String = "The air is fresh!"

Dim myStringArray As String() = {"Sunny", "Windy", "Rainy"}

InfoWindow.Write(myString1)
InfoWindow.WriteLine("")

[highlight #EF2929]'InfoWindow.WriteLine(myString2, 10)[/highlight]


End Sub

End Class

www.nxjournaling.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor