×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Create Executables from journals
3

Create Executables from journals

Create Executables from journals

(OP)
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?

RE: Create Executables from journals

(OP)
Any help whatsoever with the general direction/programs would be appreciated.

RE: Create Executables from journals

try bringing the code into the visual basic editor (if available) and do a build. this should create a .exe file

RE: Create Executables from journals

2
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

RE: Create Executables from journals

Dear jpetach
i am using NX 8.5 and visual studio 2012 is installed. where is NX command prompt to do that?

RE: Create Executables from journals

Dear jpetach
sorry, found it

RE: Create Executables from journals

Dear jpetach
NX 8.5 command prompt does not recognize vbc as a valid command!

RE: Create Executables from journals

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

RE: Create Executables from journals

Question for the group,

Will the journals run faster if they are compiled?

Thanks,
whe

RE: Create Executables from journals

Quote:

Will the journals run faster if they are compiled?

In general, yes.

www.nxjournaling.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources