Configuring Environment for UNIX

Use the following steps to configure environment for UNIX systems.


Before you begin: Ensure that your integration system is not configured using MX_CATIA_INSTALL_DIR variable. This feature does not work for systems that are configured using MX_CATIA_INSTALL_DIR variable.
  1. Copy the "mxlaunchCATIAV5_Sample.sh" from <catia_install_dir>\<OSNAME>\reffiles to the system path (/usr/bin) and rename it to "mxlaunchCATIAV5.bat"..

  2. 2. Open the SHELL file ("mxlaunchCATIAV5.sh") in the edit mode and provide the following info-:.:

    1. Provide the location where CATIA V5 is installed in the variable: CATIA_INSTALL_DIR
    2. Provide the name of the environment file to be used in the variable: ENV_FILE_NAME
    3. Provide the location of the environment file to be used in the variable: ENV_FILE_LOCATION

      Ensure that you do not enter any extra spaces at the end of each line.

      The SHELL file is supported for CATIA V5 on the following UNIX systems:


      • CATIA V5 on Solaris
      • CATIA V5 on hpux
      • CATIA V5 32bits on AIX

      A sample mxlaunchCATIAV5_Sample.sh supported for solaris, hpux and aix is,

      #!/usr/bin/ksh
      
      CATIA_INSTALL_DIR=/usr/DassaultSystemes/B18
      
      ENV_FILE_NAME= CATIA.V5R18.B18
      
      ENV_FILE_LOCATION=/CATEnv
      
      @REM Please do not edit below this line
      
      case `uname` in
      
            AIX)
      
                OSDS="aix_a"
      
                 ;;
      
              HP-UX)
      
               OSDS="hpux_b"
      
                   ;;
      
              SunOS)
      
                   OSDS="solaris_a"
      
                   ;;
      
            esac
      
      if [ $2 = '"-action:connect"' ];then
      
          "$CATIA_INSTALL_DIR/$OSDS/code/command/catstart" -run "CNEXT -e 
      V6CATIAConnectHdr" -env "$ENV_FILE_NAME" -direnv "$ENV_FILE_LOCATION" 
      &
      
      fi
      
      if [ $2 = '"-action:checkout"' ];then
      
          "$CATIA_INSTALL_DIR/$OSDS/code/command/catstart" -run "CNEXT -e 
      V6CATIASilentCheckoutCmdHdr" -env "$ENV_FILE_NAME" -direnv 
      "$ENV_FILE_LOCATION" &
      
      fi
      
      echo returned
      

      The SHELL file supported for CATIA V5 on 64bit AIX system:

      A sample mxlaunchCATIAV5_Sample.sh supported for aix_a64 is

      #!/usr/bin/ksh
      
      CATIA_INSTALL_DIR=/usr/DassaultSystemes/B18
      
      ENV_FILE_NAME= CATIA.V5R18.B18
      
      ENV_FILE_LOCATION=/CATEnv
      
      @REM Please do not edit below this line
      
      if [ $2 = '"-action:connect"' ];then
      
          "$CATIA_INSTALL_DIR/aix_a64/code/command/catstart" -run "CNEXT -e 
      V6CATIAConnectHdr" -env "$ENV_FILE_NAME" -direnv "$ENV_FILE_LOCATION" 
      &
      
      fi
      
      if [ $2 = '"-action:checkout"' ];then
      
          "$CATIA_INSTALL_DIR/aix_a64/code/command/catstart" -run "CNEXT -e 
      V6CATIASilentCheckoutCmdHdr" -env "$ENV_FILE_NAME" -direnv 
      "$ENV_FILE_LOCATION" &
      
      fi
      
      echo returned