cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with version of references

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello experts,

I´m doing some programs with NXOpen in .net C# and I have some doubts about the references in UGII/Managed

NXOpen.dll
NXOpen.UF.dll
NXOpen.Utilities.dll
NXOpenUI.dll
ManagedLoader.dll
Before I used NX9 version and it worked with new versions but now, I need take exactly the same version of the references. If I am going to use the dll with NX10 I need to use the files of the NX10 and Build.

What am I doing wrong? I would like to not have to compile for each version.

Many thanks,

Best regards,

4 REPLIES

Re: Problem with version of references

Honored Contributor
Honored Contributor

You should recompile for each major NX version as the dll files can/do change. You might get away with not recompiling for a newer NX version, but this is not recommended.

Re: Problem with version of references

Siemens Phenom Siemens Phenom
Siemens Phenom

 

Your automation routines really do need to be recompiled for each new major release.  In fact, this is the note about that from the NX10 Release Notes, under NX10 Caveats and Product Notes -> Programming Tools -> Product Notes:

 

Recreating projects when installing a new release
When you install a new, major NX release, such as NX 10, all projects created in the previous release need to be recreated in the new release using the new NX wizard with the corresponding, supported Studio version. This ensures that all project settings are compatible for use with that NX version.

 

But replacing the references is a good step in the right direction!

 

Re: Problem with version of references

Esteemed Contributor
Esteemed Contributor

Make sure to have your references set up to include the UGII_ROOT_DIR as in the example below.

This way you just have to start your IDE from the correct NX command prompt.

            <Reference Include="NXOpen">
                <HintPath>$(UGII_ROOT_DIR)\managed\NXOpen.dll</HintPath>
                <SpecificVersion>False</SpecificVersion>
                <Private>False</Private>
            </Reference>
            <Reference Include="NXOpen.UF">
                <HintPath>$(UGII_ROOT_DIR)\managed\NXOpen.UF.dll</HintPath>
                <SpecificVersion>False</SpecificVersion>
                <Private>False</Private>
            </Reference>
            <Reference Include="NXOpen.Utilities">
                <HintPath>$(UGII_ROOT_DIR)\managed\NXOpen.Utilities.dll</HintPath>
                <SpecificVersion>False</SpecificVersion>
                <Private>False</Private>
            </Reference>
            <Reference Include="NXOpenUI">
                <HintPath>$(UGII_ROOT_DIR)\managed\NXOpenUI.dll</HintPath>
                <SpecificVersion>False</SpecificVersion>
                <Private>False</Private>
            </Reference>
Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Problem with version of references

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Thanks for the replies Smiley Wink