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

Re: How to upgrade NX API programs from NX8.5 to 12?

Phenom
Phenom

I'm currently migrating my code (Java) from NX8.5 to NX12. As it's Java I don't use VisualStudio, but Eclipse instead.

Which methods in particular are you having trouble with? I can't readily find any deprecated methods in the NX API to show how they look or anything.

Remember, a method being deprecated is only a warning that it might be removed from the API at some future date. You should avoid using that method so that you don't get a huge update task later on if it is removed.

Our own API has a few deprecated methods and this is how they look in our IDE (Eclipse)...

When writing new code and using code completion, the tooltip that pops up for a method will show it is deprecated and suggest the method to use instead:

DeprecatedTooltipDuringCodeCompletion.png

If you have previously used a method and it has since become deprecated, the source code will show it with strike through and if you hover over the method you will get a tooltip explaining it is deprecated:

DeprecatedMethodCall.png

 

Hope this helps.

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | KF
Production: [NX8.5.3.3 MP11 64bit] Testing: [NX12.0.2 MP1]

Re: How to upgrade NX API programs from NX8.5 to 12?

Valued Contributor
Valued Contributor

I am using Visual Studio and the popup looks similar to the one in Java.

It will be displayed as a warning in VS, so you still can compile it.

But as always you shouldn't compile anything final as long as there are warnings ;-)

 

image.png

This is how it will be displayed in the Error List in Visual Studio

 

image.pngAnd here it shows the warning in the acutal code in Visual Studio.

You also see the method you should use (Use GetUserAttributes instead)

Re: How to upgrade NX API programs from NX8.5 to 12?

Creator
Creator

Definitely, this help. Thanks a lot!

@Inch@WT@LeeThompson@Irfan23

I am mostly working on CAM and CAE related APIs? Does anyone working on similar kind of APIs using Visual studio? If yes, do share your experience to go forward and some screenshots of the compilig and rebuilding of applications DLL file, if possible? 

 

Thank you so much in anticipation!

 

cam.PNGDeprecated APIs.PNGFunctionsmethod2.PNGCAE functions