Polynom3000
Mechanical
- Apr 30, 2014
- 21
Hello community!
My aim is to write VB code within Visual Studio and execute it directly in NX. I usually copied the source code from Studio and pasted it into the NX Journal Editor. Since the code is pretty easy there are no problems with this method. While working on complex projects with forms, images etc. it is not possible anymore to simply copy and paste. I know there exists some workarounds but it should be possible to launch a project directly from Studio in NX.
None of the information I researched for could finally solve the problem mentioned above.
Further information about the system:
Microsoft Visual Studio Professional 2013 (30 days trial)
NX 8.0.3.4
Windows 7 Professional, SP1, 64bit
The NX documentation gives a hint:
After doing so and clicking in Studio on start -> new project there appears a new entry which is called “NX8 Open VB Wizard” under templates/Visual Basic. I select a save as path for the new project, hit OK and instantly get the error message: "creating project “NX8_Open_VB_Wizard1”... Project Creation Failed". The screen shows the old Studio welcome page again and nothing has happened at all.
Finally I have two questions:
1) What causes the error in Studio? Am I missing any point?
2) Do I still have to edit the “ufvars.bat“ file [%UGII_BASE_DIR%\UGOPEN] or is this step redundant in the latest Studio versions? Anyway I changed the MSVCDir variable several times, but without any success.
Latest try: set MSVCDir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE
Thanks in advance. ;-)
My aim is to write VB code within Visual Studio and execute it directly in NX. I usually copied the source code from Studio and pasted it into the NX Journal Editor. Since the code is pretty easy there are no problems with this method. While working on complex projects with forms, images etc. it is not possible anymore to simply copy and paste. I know there exists some workarounds but it should be possible to launch a project directly from Studio in NX.
None of the information I researched for could finally solve the problem mentioned above.
Further information about the system:
Microsoft Visual Studio Professional 2013 (30 days trial)
NX 8.0.3.4
Windows 7 Professional, SP1, 64bit
The NX documentation gives a hint:
* represents the current version of the Studio softwareNX Open Programmer's Guide -> Wizard Setup said:For each wizard, copy any files and/or folders under each subdirectory from the kit to the Visual Studio installation. This example is for the C language so substitute VB or VC# and the appropriate subdirectory for the other languages. Copy:
%UGII_BASE_DIR%\UGOPEN\vs_files\VC\VCWizardsto
C:/program Files\Microsoft Visual Studio *\VC\VCWizardsand
%UGII_BASE_DIR%\UGOPEN\vs_files\VC\vcprojects\
to
C:/program Files\Microsoft Visual Studio *\VC\vcprojects\
Repeat for each language.
After doing so and clicking in Studio on start -> new project there appears a new entry which is called “NX8 Open VB Wizard” under templates/Visual Basic. I select a save as path for the new project, hit OK and instantly get the error message: "creating project “NX8_Open_VB_Wizard1”... Project Creation Failed". The screen shows the old Studio welcome page again and nothing has happened at all.
Finally I have two questions:
1) What causes the error in Studio? Am I missing any point?
2) Do I still have to edit the “ufvars.bat“ file [%UGII_BASE_DIR%\UGOPEN] or is this step redundant in the latest Studio versions? Anyway I changed the MSVCDir variable several times, but without any success.
Latest try: set MSVCDir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE
Thanks in advance. ;-)