cancel
Showing results for 
Search instead for 
Did you mean: 

Rebuilding exist NXOpen Code from NX9.0 to NX10.0

Experimenter
Experimenter

I have some existing code that was developed and compiles with VS2012 and NX9.0.  After upgrading to NX10 I am getting problems with GetTag() that is part of TaggedObjects; it is no longer a part of the class and is no in the TaggedObjects.hxx file. 

 

error(C2039: 'GetTag' : is not a member of 'NXOpen:Smiley Frustratedpline'

 

How can I get around this?  Is there some way to still use this function?

2 REPLIES

Re: Rebuilding exist NXOpen Code from NX9.0 to NX10.0

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

The TaggedObject:GetTag() had been deprecated (in NX5 or even earlier) and now it had been removed finally.

 

See also NX9 NXOpen C++ Reference Guide:

 

 

tag_t NXOpen::TaggedObject::GetTag() const
Deprecated. Use Tag instead.


 

So your code should work again by simply replacing GetTag() by Tag().

Re: Rebuilding exist NXOpen Code from NX9.0 to NX10.0

Creator
Creator

Like he mentioned. You just need to replace .getTag() with .tag and it should work if that is the only problem