Build a NX open. NET application

Source: Internet
Author: User

A basic setup to build a NX open. NET application using Visual Studio (IDE)

Interactive application: . Net authoring license is required

Start Visual Studio 2003 (7.1)

Create Class Library Project

    • File-> New-> Project-> Visual C # projects (project types)-> class library

Add references

    • Project-> Add reference...

Browse to ugii_base_dir \ UGII \ managed \
Add the following files

    • Nxopen. dll
    • Nxopen. Utilities. dll
    • Nxopen. UF. dll
    • Nxopenui. dll (only needed if you build an user interface for your application)

Add main () function to the class

      Public static void main ()
      {

      }

Compile and build the application

Test appilcation:

Launch NX

Run your sample application

    • File-> execute-> NX/Open... (Browse to your sample application \ bin \ debug \ location, select your application. dll)

Sign application:
In order to release an application and have non programers use this (someone without a. Net authoring license) You need to sign your application.

Add Resource fileNxsigningresource. ResTo your Visual Studio Project

    • File-> Add existing item-> browse to ugii_base_dir \ ugopen \ nxsigningresource. Res

Set the nxsigningresource. Res file build action to embedded Resource

    • Properties on the nxsigningresource. Res file that's attached to your Visual Studio Project

Sign the application, at a command prompt:

    • Ugii_base_dir \ UGII \ signlibrary.exe yoursampleapplicationlocation \ sampleapplication. dll

If you don't sign your application when you release it to your end users, they will be required to have a ". Net authoring license". This is very costly and unnecesary.

Set your project configuration build to release
This will change the build arguments and remove the unnecessary debug statements for the released application

    • Build-> Configuration Manager
    • Set "Active solution configuration" to release

Compile, build, and test

Summary
This application does not do anything but it does set up the foundation needed to get an application built using the Visual Studio IDE and have it signed for release.

Reference:

Http://plmexchange.net/build-a-nx-open-net-application/#comment-713

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.