Cancel
Showing results for 
Search instead for 
Did you mean: 

How do I open part (External app - C++ )

Siemens Creator Siemens Creator
Siemens Creator

Hello all,
I've banged my head against this for a while and I'll like for a little help.  How do I
open a part ( C++ )?

 

For example, I want to create an external app, that will open a part file and will write to a TXT file the operations of every feature. 

 

(The project was opened using NX11 NXOpen C++ Wizard)

 

Thanks!

3 REPLIES

Re: How do I open part (External app - C++ )

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

In VB.NET this is the NXOpen.Session.GetSession().Parts.Open() method, there should be an equivalent in C++.

The GTAC solution center is likely to contain an example for that action.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: How do I open part (External app - C++ )

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Session::GetSession()->Parts()->Open (const char * filename, NXOpen:Smiley TongueartLoadStatus**loadStatus)

 

Elias.

Re: How do I open part (External app - C++ )

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Session::GetSession()->Parts()->Open (const char * filename, PartLoadStatus**loadStatus)