Shading with Catia 4

Below is a user submitted description of how to enable shading with Catia 4. Catia 4 used the PHIGS graphics rendering standard which was superseded by OpenGL. The PHIGS extension was removed altogether from the X Window System protocol in 2004.

http://en.wikipedia.org/wiki/PHIGS

This method for enabling shading has not been tested by StarNet.

Remote CATIA V4 Shading Setup
# Step 1. Edit your CATIA V4 environment.
#
# – copy and paste the below lines to the environment file.
# – No spaces before any lines except for the 3rd line indentation (2 or 3 spaces is fine)
# – No spaces after the last character in each line.
# – I suggest retyping these lines instead of doing a cut and paste from this email.
#
# – Example of an Environment file: /home/catadm/env/YOUR.env
# ======================================================================

if [ “$DISPLAY” != “:0.0” ] || [ “$DISPLAY” != “`hostname`:0” ] || [ “$DISPLAY” != “`hostname`:0.0”]
then
export gPPROFILE=$CAT_CUST/XWIN32/PROFILE
fi

#
# Step 2. Add the file to your CATIA V4 administrators home directory path……
#
# – Set the path for CAT_CUST to your CATIA V4 administrator $HOME directory
# – The following commands create a new file with specific lines inserted to the file using the echo command.
# – Do Not enter in manually. Run the echo commands which place spaces and blank lines correctly.
#
# – Example location of completed file: /home/catadm/XWIN32/PROFILE
# ======================================================================

CAT_CUST=/home/catadm
mkdir -p $CAT_CUST/XWIN32
echo ‘ AFMMNICK TOCONNID=*,’ > $CAT_CUST/XWIN32/PROFILE
echo ‘ TOWSTYPE=XSOFT,’ >> $CAT_CUST/XWIN32/PROFILE
echo ‘ PROCOPT=((STRDEVS,16),(LOCDEVS,2),(VWTBLSZ,64),(ECHOMETH,2),’ >> $CAT_CUST9/XWIN32/PROFILE
echo ‘ (LSTES,32))’ >> $CAT_CUST/XWIN32/PROFILE
echo “\n” >> $CAT_CUST/XWIN32/PROFILE
chmod 644 $CAT_CUST/XWIN32/PROFILE

#
# Step 3. Make sure you have all the OpenGL, X11, and GraPHIGS required for AIX..#
#
# – I believe these AIX code sets also need to be installed, but I’m not positive ???????
# ======================================================================
OpenGL.OpenGL_X.rte.soft
PEX_PHIGS.graPHIGS.rte.soft