Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Create Executables from journals 3

Status
Not open for further replies.

cquinker

Bioengineer
Sep 20, 2012
16
Hey guys,

I'm looking into creating Windows executable files from some Visual Basic journal scripts I've written. Any idea how to do this?
 
Replies continue below

Recommended for you

Any help whatsoever with the general direction/programs would be appreciated.
 
try bringing the code into the visual basic editor (if available) and do a build. this should create a .exe file
 
cquinker,

(assuming that Visual Studio or Visual Studio Express is installed)

From an "NX 75 Command Prompt" window...

Code:
vbc /libpath:"%UGII_ROOT_DIR%\managed" /t:library /r:NXOpen.dll /r:NXOpen.Utilities.dll /r:NXOpen.UF.dll /r:NXOpenUI.dll/resource:"%UGII_BASE_DIR%\ugopen\NXSigningResource.res" "the_journal_to_compile.vb"
"%UGII_BASE_DIR%\ugii\SignLibrary.exe" "the_journal_to_compile.dll"

The "/t:library" will generate a dll file (as opposed to an exe) which is probably what you want if you will be running the "journal" in an interactive NX session - perhaps from a custom toolbar.

HTH,

Joe
 
Dear jpetach
i am using NX 8.5 and visual studio 2012 is installed. where is NX command prompt to do that?
 
Dear jpetach
NX 8.5 command prompt does not recognize vbc as a valid command!
 
Moosaviamir,

The most likely reason is that MSvcDir environment variable is not defined or the variable is not pointing to the correct directory.

When the NX shortcut "All Programs, Siemens NX8.5, NX Tools, NX Command Prompt" executes the ugiicmd.bat script, the script invokes %ugii_base_dir%\ugopen\ufvars.bat script which expects to use the MSVCDir environment variable to set the path for MS Visual Studio compilers. If the MSvcdir variable is not set there is a short message about ufvars.bat issued in the command shell window. If the the variable is correctly set the feedback from the ufvars.bat will almost completely fill the command shell window.

HTH,
Joe

 
Question for the group,

Will the journals run faster if they are compiled?

Thanks,
whe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor