标题: 关于的tc三个问题 [打印本页] 作者: 2323220987 时间: 2006-7-9 15:33 标题: 关于的tc三个问题 想提三个问题
1。我在用libusers_exits的时候,link无法通过,好象是缺少了库文件,不知大家是不是也有这个问题?我的版本是9.1.2
2。有没有哪位用过simulation process studio,我看help没看明白。
3。我想试试teamcenter engineering和pro/e的连通,也就是保持数据一致,我查了相关资料,好象是要用到web service等中间件技术,实现起来好象比较复杂。有哪位作过吗?作者: 黑瓦白墙 时间: 2006-7-21 11:30
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.
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.