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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
( ~2 j/ K9 N7 l2 I
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
# h! F  c/ ~5 |; G" Q. e/ W, Z7 m4 f3 e# O
问题
8 ?+ t8 Z9 i$ ^' w8 e1 |默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
; V) E' U6 ]: i9 h5 {, e模块中的功能无法登录 # a& b& j" u3 I9 w/ E; X

5 f- C( F9 Q5 [: A8 wERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
& d3 [; B, s) |2 y- u5 Wuser ID or the password is invalid.  
  @, e& F7 |$ I! l; `) ~
% ?) M& [3 N. r) i$ B方法 ( X/ W: s* \! E& m$ w
修改 populatefsc 脚本,增加登录信息 8 W: A( ], T# S: U- F) D* O  Y
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行   a! Z! T8 D; |* h' N: @9 }5 B
set TC_DBA_USER=infodba
8 R1 S! k9 t% ~: c& h0 l/ x/ M/ u% K$ D2 y
在 populatefsc.pl 中 : & v% k/ b) s/ f2 _

) y) M: r. O1 k  H9 O* P在 runPLMXMLExport 子程序下增加红色标记的代码 : k3 Z+ K( E4 f# \4 G; J; m- f; ^9 w
7 I5 V1 b6 c' v& V8 h) l
# This will be the full path to the executable. ( E& ^) p# o, J! [. Z4 E5 d
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 7 a3 O! \0 _. p& Q3 g. ^
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
$ \; P' u9 B* P" ]3 @/ Qmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
) Z9 Z9 `4 _% g3 Y8 v$ W. I# Make sure we can find what we are executing.
4 `) E; d" I2 \. S& [die "The ${exe_name} executable was not found at the following location: 2 W, c1 M* A" j9 }/ s* O; h0 R7 U1 s
${exe_path}\n" unless -x ${exe_path};
( J9 n8 I5 F4 y
5 h6 i* J- }4 D& B+ k: q$ I2 d# Start building the command line.
! F' X+ `5 `  Xmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
! u& h+ N: s. r1 t- ~7 V" R/ h# @, E) x! |/ m$ t/ d
# Take care of possible empty spaces in the argument values
7 x: `4 H1 k9 Z- j" O  pmy $outputFileStr = $hashRef->{'output_file'};
% H/ s8 }$ S, }. N0 W: g$outputFileStr = handleEmptySpaceInPath($outputFileStr);
9 d- l7 X/ `. h* ^* G5 ?my $scoUid = $hashRef->{'uid'}; + C2 _6 ~, B4 h# a& w
$scoUid = handleEmptySpaceInPath($scoUid); - G* y4 d% h& M! @4 z/ D/ B
5 D9 o( K7 ^9 W
# Add the extra options.
3 O8 Y5 p+ A7 i, JaddOption(\@args, '-xml_file=', $outputFileStr, 1); $ [+ C) J- a% t1 _' Y
addOption(\@args, '-uid=', $scoUid, 1);
5 B+ E* e2 ?5 L* L" B% YaddOption(\@args, '-u=', $tcdbauser, 1);     
- K% z9 g( Y. i2 xaddOption(\@args, '-pf=', $pwdfile, 1);
6 ?1 U: u; P+ G2 f2 b; u. U! E( H
9 u8 x& P; X! ^$ P/ `* {+ n# g) |在 runLoadFscCache 子程序下增加红色标记的代码 0 `9 e( x4 G6 ~! O5 E9 V

6 c/ s6 r% O( {5 N$ U9 X* |) s# This will be the full path to the executable.
8 Y, g  z. R" Smy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
) B! H+ r0 \% a  s1 x7 D8 t: J# b- d. V8 V0 R" r2 [' [
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ! i2 c3 t9 C& Y1 @) y( e1 n4 ~8 N
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; * W- V  p' q& U% F9 J0 R- p2 d1 m% ]
# Make sure we can find what we are executing. & J; _, D0 t, c5 @. Q" k, a* m
die "The ${exe_name} executable was not found at the following location:   U, W. h' j7 L/ x' ^
${exe_path}\n" unless -x ${exe_path};
+ n& Q: i5 J/ _! H
! w3 }. `, R. G; l7 p# Figure out output information from command line input ; I- h/ ^: G' E8 [
my $outputFileStr = $hashRef->{'output_file'};
9 J6 k% F' M) Z2 X1 hmy $fscUri = $hashRef->{'targets'}; : G/ J) Q  ~, f
3 a% s' [! B: l9 E0 _* @* k. q' ?
# Check possible empty space in the string
% Y, J6 V! |' b1 l, L$outputFileStr= handleEmptySpaceInPath($outputFileStr); ( ]  s! T; c' ?% w, W4 k: V) f
$fscUri = handleEmptySpaceInPath($fscUri); : T! M& p3 f# W2 N
$ O& Z) N- n: J7 j( {
# Add the extra options.
4 j# q. A1 ~2 _  R7 J9 Qmy @args= ( $exe_path, '-f=load' ); ; F4 D3 H9 _) T$ u
addOption(\@args, '-plmxml=', $outputFileStr, 1); ( y) j" \# d0 X! t: E" O
addOption(\@args, '-fsctargets=', $fscUri, 1);
' `' \+ H' \$ EaddOption(\@args, '-u=', $tcdbauser, 1); , @0 S! j" R2 A+ ]; Z' M! D  V
addOption(\@args, '-pf=', $pwdfile, 1); ; l* I- e6 B# G! h  A& u: ^

7 i* c3 k, y- N& j
) K! j1 K( g$ e0 b4 _* ~/ C" Y( S5 y( Q: |; f, z# p
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了