This is the Makefile and asySimple.cxx file from $(SDRC_INSTL)/oidev/examples/cmd-async. The file has been simplified and renamed as "my_command.cc".

To use these files:

  1. Copy them to one of your sub-directories.
  2. Start I-DEAS (not I-DEAS NX).
  3. In the Prompt window, type "oaxx start xterm" to start an xterm window (the SDRC_INSTL environment variable will be set automatically).
  4. Change to the sub-directory where you copied the files.
  5. Type "make" to compile the program.
  6. Type "setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/arch/apps/ideas9/oirun/lib:/usr/arch/apps/ideas9/orbix/lib
  7. Type "./my_command" to execute the program.
  8. Type "/file import". This command will be sent by the program to I-DEAS.  This particular command is the same as selecting from the menu: File->Import.  To find out what other commands are available, turn on the menu mnemonics: (Options->Menus On; Options->Preferences->Menus->Mnemonics Display on)
  9. Type "quit" to exit the program.

 

Makefile

my_command.cc

Makefile_for_X_Windows