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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

  |" p9 Y4 ~" w171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
: X' u6 O0 c5 M) o$ D$ n* n/ M* n. h- W0 t0 N) B+ h) g, g7 ~
问题 7 v9 \; ?) k- r2 |. u
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
- x6 c% t; M9 P' K, V' ~模块中的功能无法登录
: S! G) l! F1 U+ w$ K3 U0 z8 W2 [$ g
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
$ P- T. W% y- }- q$ v, ], iuser ID or the password is invalid.  
$ ~7 W: w) x! Z2 y9 e
% P0 R0 V  R, Q方法 ( ~& p0 m7 d- t' j! \
修改 populatefsc 脚本,增加登录信息
! \- ]" V( m/ k! q0 V* ]8 E5 `" W在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行   i: c* E9 u4 y8 w
set TC_DBA_USER=infodba
3 U( L0 ?; T. g( C. }; b
1 |, D. \: ]4 m! \; h- i$ h$ ]2 g在 populatefsc.pl 中 :
2 o4 |# @- {  S
/ Y! J( \+ P! Y7 T在 runPLMXMLExport 子程序下增加红色标记的代码
: Q' A+ C- I0 v+ u* _+ c2 n% L* I3 I7 H+ g" C
# This will be the full path to the executable.
6 C% e2 Z7 C, W! j  X# v3 Kmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
! Y' x9 s. U" \1 l! Emy $tcdbauser= "$ENV{'TC_DBA_USER'}";     7 x9 r8 d2 E$ k" O& i) m  V
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; " {1 D/ A9 q) l7 S
# Make sure we can find what we are executing. ; I. H; C# `3 ?5 b
die "The ${exe_name} executable was not found at the following location:
1 e$ I: ]3 ]+ V$ j& K! Q${exe_path}\n" unless -x ${exe_path};
, f$ T( q' ~' f# w
; R/ q  k/ }: }. i4 v' ]# Start building the command line.
. {: D& W# G( [$ |; l6 Wmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); " Q, N0 S- `- L% C2 v
% f5 W' l5 Y0 X& Q  z0 G; I4 l
# Take care of possible empty spaces in the argument values % V7 s; y! t' X* i( V8 ^- d
my $outputFileStr = $hashRef->{'output_file'};
' f4 \  L( ^7 s$outputFileStr = handleEmptySpaceInPath($outputFileStr); 4 A6 o+ S  n6 R: P
my $scoUid = $hashRef->{'uid'};
9 z8 I6 \( a3 M/ X$scoUid = handleEmptySpaceInPath($scoUid); # X5 ~( s% n% x1 n  X

. e# S6 t# d4 p: g9 Y# Add the extra options. 7 o  ]/ K1 s. }7 h5 n0 F( a# g+ K3 a$ S
addOption(\@args, '-xml_file=', $outputFileStr, 1);
6 P6 s8 f7 C. t, m9 u5 z; vaddOption(\@args, '-uid=', $scoUid, 1); / d3 Q$ k0 M- ]0 G* m7 i- h' l7 F! @
addOption(\@args, '-u=', $tcdbauser, 1);     0 V4 u2 L0 A0 `5 i" X$ e
addOption(\@args, '-pf=', $pwdfile, 1);
* A: V5 O- _7 y4 V& q  N5 @2 C2 O& g; `, k, ]7 x4 V# v
在 runLoadFscCache 子程序下增加红色标记的代码 : x) H/ i* r( r0 F

# M6 n6 ]6 D7 q: O" b# This will be the full path to the executable.
1 b: J/ C$ @5 `, V- |5 amy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
) }2 C+ E% D) x$ N" f7 I& q
. ~/ G5 X6 y8 I* d1 U8 J2 K- Ymy $tcdbauser= "$ENV{'TC_DBA_USER'}";
9 d, I7 U2 v" {+ zmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
% J3 Z; F# i- y5 |# Make sure we can find what we are executing. ; r# b/ t( K) V* O- _: [6 C1 M0 {
die "The ${exe_name} executable was not found at the following location:
$ [$ r  y7 Z& T4 O; O: g7 z) d${exe_path}\n" unless -x ${exe_path};
$ E6 ~8 C3 q% ?2 v- u) O' v- e) R0 T6 E  i, x
# Figure out output information from command line input 2 ]! ]0 R& [. ]! g
my $outputFileStr = $hashRef->{'output_file'}; 1 C1 m$ A: o' Y* c3 z' ?/ V: c
my $fscUri = $hashRef->{'targets'};
, h, ?6 u8 J$ o# Y' f1 n  ^- I$ z, I/ }8 y: b0 x
# Check possible empty space in the string 2 Z1 Y! \$ ?; ?$ v2 M0 A5 m
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 2 |: _; K9 Q* c% W) c5 {  H, _
$fscUri = handleEmptySpaceInPath($fscUri); 9 h! s# ~* j% |

" ]% W4 j, y7 `5 C% d) n$ d  f5 x# Add the extra options.
$ f3 U7 n0 s1 Z) n; c5 U* umy @args= ( $exe_path, '-f=load' );
  [* Y2 K+ E6 U  naddOption(\@args, '-plmxml=', $outputFileStr, 1); ' Z: b  E3 g8 H) o
addOption(\@args, '-fsctargets=', $fscUri, 1);
* F( C5 q0 V2 A- D& ]addOption(\@args, '-u=', $tcdbauser, 1); , V8 |. u; w  }$ y! @
addOption(\@args, '-pf=', $pwdfile, 1);
. m2 p6 I2 m8 c/ u. b
* F2 J2 M* N; n) m. K- l! \) ?
2 `' Z- `' }+ S
9 L# |) V( r$ R/ z; e6 g0 X9 f
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了