Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Documentation for NXOpen C#

Hi,

 

I am having hard time to figure out how i can make use of NXOpen documentation for C#. Because, in the documentation, no such information is given. When i want to use a method, what it returns, for which class the object should be instantiated, no such details are given. I have to use only C# and i want to know if i can refer to any other text, document or something which gives the detailed information. 

 

Thanks

4 REPLIES
Solution
Solution
Accepted by topic author Divyanshu
‎06-20-2016 01:12 AM

Re: Documentation for NXOpen C#

If you are using Visual Studio as your IDE, the Object Browser is a great source for all of this information. The information in the Object Browser is extracted directly from the NXOpen dll's.

Re: Documentation for NXOpen C#

[ Edited ]

Also, there is the .NET Reference Guide. When you (or your system administrator) installs NX, installation of the API documentation is optional, and some people choose not to install it. Maybe that's why you can't find it.

The document is also available on the main page of this forum, below a big title that says "Learning NX programming". https://community.plm.automation.siemens.com/t5/NX-Customization-and-Programming/ct-p/NXProgramming .  It's a CHM file, so you can't read it across a network; you'll have to download it to your computer.

山田
yamada

Re: Documentation for NXOpen C#

I am also using C#, but I found it best to use the C++ documentation for most objects/methods at https://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx_api/en_US/custom/open_c++_r...

 

For some objects the Open C documentation is best:

https://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx_api/en_US/custom/ugopen_doc...

https://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx_api/en_US/custom/ugopen_doc...

 

Using the C++/Open-C documentation has a few minor variations versus C#, but nothing too serious.  The approach was recommended by the instructor for the NXOpen class.

Re: Documentation for NXOpen C#

[ Edited ]

The C++ docs and the .NET docs (and the Java and Python docs, too) are generated from the same files. So the information in them ought to be completely equivalent.

 

So, if you're writing C# code, I can't imagine why you would prefer to use the C++ docs. The C# and C++ function names and calling syntax are similar, but they are certainly not the same, so you have to mentally translate all the time. Could you explain the reason for your preference, please.

 

Edit: For NXOpen.UF stuff, the C/C++ docs are obviously better, because the .NET docs are essentially non-existent (they just point you to the C/C++ docs).

山田
yamada