1. 你的OS是UNIX还是NT,请参考:
User Exits on UNIX
In $IMAN_ROOT/sample, use the link_user_exits script to build a new shareable library. The source files used to build the user_exits shared library must be compiled with -pic or -PIC.
The link_user_exits script requires that all of the user exit object files reside in the current directory. They can be extracted from the user_exits library with the command:
ar x $IMAN_LIBRARY/libuser_exits.a
You can then replace any of the User exit modules by making the appropriate changes in template user exit functions. See the sample directory for the template files. These files contain the default behavior that comes with Teamcenter Engineering.
Make a backup copy of the original shareable library (libuser_exits.so.1.1 for SUN and libuser_exits.sl for the HP). Once you've created a back up copy of the original shareable library, copy the new shareable library back to the $IMAN_LIBRARY.
User Exits on Windows NT
This example uses User Defined Attributes (UDA) user exits as an example.
Create a sub-directory for the user exit library in your HOME directory.
mkdir %HOME%/userexit
Set your IMAN_USER_LIB environment variable.
set IMAN_USER_LIB=%HOME%/userexit
Copy the original user exit library to your directory.
copy %IMAN_ROOT%/dll/user_exits.a %HOME%/userexit/.
Extract objects from the library in your userexit directory. (If your MSDEV_HOME is not set, set it before running the extract script).
%IMAN_ROOT%/sample/extract_objects user_exits.a
There is sample UDA code that uses USER_exit_module and USER_register_properties in %IMAN_ROOT%/sample/properties/smp_props.c. This sample code shows you how to customize Teamcenter Engineering properties.
Copy this file to your userexit directory (or you can create your own).
copy %IMAN_ROOT%/sample/properties/smp_props.c
Compile this (or your) C program.
%IMAN_ROOT%/sample/compile smp_props.c
Once the smp_props.o (or your) object is created, remove the original user_init.o from your userexit directory since your new object also contains the user exit ITK calls. Then build the new library. As a result of the following call, libuser_exits.dll is created.
%IMAN_ROOT%/sample/link_user_exits
Start Teamcenter Engineering.
2。Help对这个模块的描述还是很细致的,不知道你是哪里不明白。
3。TcE支持与主流的CAD系统的紧密集成,包括UG,Pro/E,CATIA,AutoCAD等。
[ 本帖最后由 黑瓦白墙 于 2006-7-21 11:32 编辑 ] |