Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

UGOPEN configuration problem 1

Status
Not open for further replies.

man2007

Aerospace
Nov 6, 2007
283
IN
We are doing some customization by writing UFUNC programs (VC++).

Visual Studio 2005 is installed on one machine and NX4 is also installed in that machine. We copied vc7_files from UGOPEN directory to C:\Program Files\Microsoft Visual Studio 8\VC, and the variable UGII_USERFCN=C:\Program Files\UGS\NX 4.0\UGOPEN is also set.

When I open Visual studio and select File->New Project and select "NX4 Open Wizard" icon and click OK, nothing is happening, it is not creating new project, neither it is giving me any error.

Am I missing any other setting?

We are using XP SP2, IE6
 
Replies continue below

Recommended for you

Plese find below text from documentation.
I set up manualy project If I use MS compilator.

Creating a Visual C++ Project

You have two choices for creating a Visual C++ project. You can create a project by using the Open C AppWizard, or by creating a project manually. It is highly recommended that you choose the Open C AppWizard. It automatically performs all of the steps described in "Creating an Open C Project Manually".

Using the Open C AppWizard

To use the Open C AppWizard:

Step 1 Select the File-->New menu item to activate the New dialog and click the Projects tab.

Step 2 Select Open C AppWizard from the list of project types.

Step 3 Enter a project name into the "Project name:" text box. By default this becomes the name portion of the program being built. For instance, a project named "MyUGOpenApp" produces either a "MyUGOpenApp.dll" or "MyUGOpenApp.exe". You can override this later if necessary.

Step 4 Click "OK" and follow the on-screen instructions to create your Open C project.

Creating an Open C Project Manually

To create an Open C Project manually, you must: create a new project, configure project settings, and add files to the project. The details follow.

Create a New Project

Step 1 Select one of the following project types:

"Win32 Dynamic-Link Library" for an internal Open C application

"Win32 Console Application" for an external Open C application.

Step 2 Configure other options if desired.

Step 3 Press the "OK" button to create the project.

Configure Project Settings

Step 1 Configure compile options.

Select the "Project->Settings" menu item to activate the

"Project Settings" dialog and click the "C/C++" tab.

In the "Category:" list box, select "Code Generation". In the "Use run-time library:" list box, select "Multithreaded DLL".

Step 2 Configure link options.

Click the "Link" tab on the "Project Settings" dialog. In the "Object/library modules:" text box, add the necessary NX libraries. For an Internal mode application, add libufun.lib and libugopenint.lib. For an External mode application add libufun.lib.

Add the libraries identified in the previous step to the "Object/library modules:" text box.

Click the "OK" button.

Step 3 Configure the include path.

Select the "Tools->Options" menu item to activate the

"Options" dialog and click the "Directories" tab.

In the "Show directories for:" list box, select "Include files". Add an entry for "%UGII_ROOT_DIR%\ugopen" to the

directory list using the proper expansion for the "UGII_ROOT_DIR" environment variable (e.g. C:\ugv160\ugopen).

Use the arrow icon buttons to move the ugopen directory above all other directories.

Step 4 Configure the library path.

Select "Library files" in the "Show directories for:" list box of

the "Options" dialog.

Add an entry for "%UGII_ROOT_DIR%\ugopen" to the

directory list using the proper expansion for the "UGII_ROOT_DIR" environment variable (e.g. C:\ugnx30\ugopen).

Use the arrow icon buttons to move the ugopen directory above all other directories.

Click the "OK" button.

Add Files To The Project

Step 1 Select the "Project->Add To Project->Files" menu item to activate the "Insert Files into Project" dialog.

Step 2 Select the files to be added and click the "OK" button.

Compiling and Linking

Select the "build" icon or press the "F7" function key to build the project. Projects created using the Open C AppWizard compile and run "as-is".
 
Thanks for your reply Siwy.
After Step 3 mentioned in your post I am not getting the Wizard.

In the mean time, we uninstalled Visual Studio 2005 and installed 2003 back, and now I am able to get the wizard (which gives the options like internal/external program, entry point etc.). But I still want to know why wizard is not popping up in Visual Studio 2005
 
In my opinion problem is with comformity MS version;

Settings files are older then MSDev.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top