Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Using Snap API

Creator
Creator

Hello All,

 

I am using C++ language for NX Customsiation , How can i use Snap Api with NXOpen Api for creating a any feature.

For using NXOpenAPI i use

using namespace NXOpen;

Is there something i need to add for using Snap Api in my code?

 

Thanks in advance 

 

Thanks & Regards

Rohit Lakade

4 REPLIES 4

Re: Using Snap API

Siemens Phenom Siemens Phenom
Siemens Phenom

SNAP is only available in Visual Basic, not C++.

Re: Using Snap API

Creator
Creator
I believe SNAP is a separate license from NX/Open as well
Ric Hotchkiss - Principal Methodology Engineer
Design Automation Associates Inc 860-749-3832
rhotchkiss@daasolutions.com

Engineering Software & Services - NX/UG/Unigraphics:
Design Automation: Knowledge Fusion & UG/Open
Check-Mate Validation: Authoring & Customizing
Advanced Parametric Design & Modeling

Re: Using Snap API

Creator
Creator

Thanks i thought so , Because the documentation i was refering was just showing Visual Basic Code which was being used.

 

Re: Using Snap API

Siemens Phenom Siemens Phenom
Siemens Phenom

It's not quite true that SNAP functions can only be called from VB. SNAP is a .NET DLL, and this means you can call its functions from any .NET language. There are dozens of these, listed here; the best-known are VB, C#, F#, IronPython, etc. There is also a .NET variant of C++, which is called C++/CLI. You can read about it here. The syntax of C++/CLI is somewhat different from standard C++, and you might find it easier to switch to C#.

 

SNAP requires an additional license, but it's pretty inexpensive. Using SNAP will probably save you time, but I don't know how much your time is worth, so I can't say whether the additional license cost is justified. There is a free subset called MiniSnap, which is intended for working through the tutorials in the Getting Started guide.

 

 

山田
yamada