Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

How to read part attributes in c++

Status
Not open for further replies.

raggul66

Mechanical
Joined
Aug 6, 2013
Messages
2
I have created a part attribute of type real(number) in NX8. I want to read that details using c++ code. If anyone knows help me regarding this. advance thank you.
 
Please look at the NXObject class, there are the methods to access the attributes.

// Get the session
NXOpen::Session * pTheSession = Session::GetSession();
// Get the workpart (assuming this is your newly created)
NXOpen::Part* pWorkpart = pTheSession->Parts()->Work();
// Now you can inquire the attributes with the memberfunctions of NXObject
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top