PLM之家PLMHome-工业软件与AI结合践行者

[TC问题解决方案] 172. Teamcenter populatefsc 中止在 TRANSLATIN状态

[复制链接]

2019-8-19 15:47:15 1833 0

admin 发表于 2019-8-19 15:47:15 |阅读模式

admin 楼主

2019-8-19 15:47:15

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
6 L3 k) W7 B2 o
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态   k# ?+ b6 o: E, `% K4 c

/ l4 S% T3 B; `$ D6 M5 l4 G; l) _& s: l问题
% N0 z1 @; B) D+ C: d' O' `默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该4 S- E+ K5 Y- m: t
模块中的功能无法登录 ( L% A4 w3 Y' i+ Y

& Z* p* |7 R2 kERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 8 b- P( \; ?9 n  U, t9 W( k8 u) r
user ID or the password is invalid.  3 t5 K9 p8 o, d: {! _0 Y
5 F0 e1 J- [5 v2 c9 P8 C/ K
方法 1 f) U, Q' H; k& R  h7 `3 c
修改 populatefsc 脚本,增加登录信息 , d1 P4 ?% f. N! J# ^4 J
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
; p' u* N  q  Z9 ^. _set TC_DBA_USER=infodba
) x& o7 x3 H# g6 c$ E/ B) @  }: Z& q  D6 }& [; m) F  L: U
在 populatefsc.pl 中 : ! }) q: U& r) T, f
6 [7 I! C3 g/ S; i% e: e$ V7 d  Y
在 runPLMXMLExport 子程序下增加红色标记的代码 & g* X' c( W( P. z6 M% a$ h; `( J

: z) N6 G' u7 _9 {/ I, q5 _8 a% U# This will be the full path to the executable. 3 y# Y! Y* X+ Y" [1 y) N' c. w5 r
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ; v! P+ T1 Z8 K
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
" k  {( s! H+ T' b# ymy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 2 |& w0 S" _$ O& `) ^* e& p" ^
# Make sure we can find what we are executing. 4 n  p7 G) m* y" W( C& v: `: T
die "The ${exe_name} executable was not found at the following location:
0 ^! j" T# t; ~. e2 V, Y" D${exe_path}\n" unless -x ${exe_path};   C: W: F# A' B! g. k# D

: J- p* B) W- O  L# Start building the command line. ( Q  v! Y# K  D, s, d
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
% D3 [; Y& i0 I
1 w$ b9 Q' o, o/ Z/ B1 P8 l# Take care of possible empty spaces in the argument values 7 O$ ^0 T9 H7 [+ b5 B
my $outputFileStr = $hashRef->{'output_file'}; $ x" ^+ w2 F# w
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
2 b' I: b' R6 J; g9 W, L; D; ^my $scoUid = $hashRef->{'uid'}; 5 M) a$ |, s' x$ y, `2 ?* G
$scoUid = handleEmptySpaceInPath($scoUid);
5 v2 b% ]1 d* H5 e- C4 P
/ C+ w% r! y! l4 L+ Z- S# Add the extra options.   V6 F$ y' ?5 B" |5 q4 \
addOption(\@args, '-xml_file=', $outputFileStr, 1);
6 }& G" N6 [- e# C" g' taddOption(\@args, '-uid=', $scoUid, 1);
; n3 S6 d( K+ uaddOption(\@args, '-u=', $tcdbauser, 1);     3 ^6 x4 y0 ?2 U" }' t
addOption(\@args, '-pf=', $pwdfile, 1); / a9 P% ~; d: r) _3 W6 S
/ j' z8 J) @- P& a
在 runLoadFscCache 子程序下增加红色标记的代码 5 I# B; P/ O& e1 `

( k& q/ p; l, b. r! U- u6 s/ A# This will be the full path to the executable.
1 H4 G3 [2 K8 g/ ~0 \# k/ nmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
/ n* ?* r/ J) s) U: |8 Q+ O! \3 _: N7 a, p% E! o  G
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
( {( _0 v) @0 fmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 1 B( I- N% d! y3 H. x& O" O, a' k
# Make sure we can find what we are executing. ! r" s& A7 l  |- H* K: g/ G2 `9 f
die "The ${exe_name} executable was not found at the following location:
7 r$ f( F/ [% [${exe_path}\n" unless -x ${exe_path};
- D+ Z7 C. `8 G; ?* g, q- p
( b+ R* F. p+ [$ [4 q+ s# Figure out output information from command line input
5 g& H1 ]0 Z1 o+ u/ {my $outputFileStr = $hashRef->{'output_file'}; 2 C& g, v+ \0 d+ f
my $fscUri = $hashRef->{'targets'};
% s/ o9 `. d9 m8 c7 s3 O) q6 j& J3 p% H% F" m. ~
# Check possible empty space in the string - D8 I8 e& m( O" ^6 k
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
' g9 p) B5 X9 n9 j5 s9 k$fscUri = handleEmptySpaceInPath($fscUri);
) D( B# X' j6 H; c. u1 D) n/ ~8 F! _, s
4 z+ j( r$ G" Y. b0 X) p( |+ h6 f; K, P# Add the extra options. 5 _4 L$ H! _6 }
my @args= ( $exe_path, '-f=load' ); * K) G/ b9 k5 n
addOption(\@args, '-plmxml=', $outputFileStr, 1);
; K) v) Q) @( H% }6 k; H4 maddOption(\@args, '-fsctargets=', $fscUri, 1);
1 f: T3 Q" Y' \0 E2 G7 M( |addOption(\@args, '-u=', $tcdbauser, 1); ; [1 @- b6 b; Z! r
addOption(\@args, '-pf=', $pwdfile, 1); ; @- E, N. l& L" k6 v
3 X6 R! q- x  W  E

/ x- i! D; q9 e6 B$ }: n) [* [; ?$ ]
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了