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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

# S% l' H% X& @1 U0 M171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
4 `, R$ `  M6 Z8 k) ]. u
5 f4 G' Y9 {& i0 ~/ M问题   J: k/ t  V' g: K
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
& f# Z* N. N5 b- H* i模块中的功能无法登录
( q3 J7 ~$ L( D% i2 w: t
! v2 c, L4 K8 n6 GERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 4 k4 z1 Q9 H; ?& G1 R1 s& D
user ID or the password is invalid.  
+ C6 X3 y. `& V( e
" O! ]+ `+ L/ S# `7 x8 j方法
5 @+ |5 ~" W" R4 n# m修改 populatefsc 脚本,增加登录信息 ; E2 {/ L" |' k, x
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 0 r; B+ ?/ _1 C* B! u: ^
set TC_DBA_USER=infodba " v; k  i* U3 \7 V; {+ @

/ R; c5 c8 c" J$ B在 populatefsc.pl 中 : 8 q! l7 P/ j6 S0 v$ }7 L
5 g: f+ q9 X8 ~- s: I9 L
在 runPLMXMLExport 子程序下增加红色标记的代码
$ J& }, @+ w5 Q- c: Z
% Y- f# _3 X3 |6 j, c; R% o# This will be the full path to the executable. ; R/ x( v& a+ ]7 h$ E  G
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
+ K% E6 {& D" X6 T+ kmy $tcdbauser= "$ENV{'TC_DBA_USER'}";     
- E( ~2 E5 |# `5 H7 Kmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";   c8 t( [! h  x2 b$ P
# Make sure we can find what we are executing. 9 G: s4 V9 W# V# {2 Y& ^2 {
die "The ${exe_name} executable was not found at the following location:
( d# E8 h+ j7 h  [+ D. Y5 V+ d${exe_path}\n" unless -x ${exe_path}; 2 Q# [/ D" E; j& }
7 J, u) o# T2 _& d! \- Y
# Start building the command line. 4 g' `0 n' J- o; Z& o+ Y
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); ; a! v" s! E$ Q0 G! D4 ?& x
9 w2 J$ R; H; u' ^; H
# Take care of possible empty spaces in the argument values " x2 x/ x6 p: x0 }
my $outputFileStr = $hashRef->{'output_file'}; 2 K+ ]# V* i, I! o8 }& N$ i3 u: N  z
$outputFileStr = handleEmptySpaceInPath($outputFileStr); * f  B( _7 S$ n/ _$ n$ S) J, E- w
my $scoUid = $hashRef->{'uid'};
5 \. o9 _/ X' b4 s; o$scoUid = handleEmptySpaceInPath($scoUid); 5 U: ~4 K. J6 v- v9 n
% i, S  s, g5 J# b# m
# Add the extra options.
* B( b# R0 C# B" O" K! BaddOption(\@args, '-xml_file=', $outputFileStr, 1);
! t  e+ M  ]( q. YaddOption(\@args, '-uid=', $scoUid, 1);
. _5 Y4 w! b3 M4 w4 }& O' gaddOption(\@args, '-u=', $tcdbauser, 1);     # ^* b" P5 n2 S3 Z( ?; W5 j! \
addOption(\@args, '-pf=', $pwdfile, 1); 3 O! u- ^2 l/ }
/ i6 C3 @" ]6 B6 y0 e2 E; t5 j2 H
在 runLoadFscCache 子程序下增加红色标记的代码 ( \1 v5 ~+ P# i# W- X4 x( L0 W8 g

! t5 W  c7 X6 D# This will be the full path to the executable. * c# u1 j0 G- [9 C
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; : r2 r+ e+ w; Z" b+ y0 \
8 |4 m2 K7 Y8 T. o7 W
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; & Z- f( h. p5 B( h
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
; g6 \5 u+ R4 G7 [0 W- H$ h+ k! y# Make sure we can find what we are executing.
' ]" e8 p- y0 {7 Z; w. }' _% H  ydie "The ${exe_name} executable was not found at the following location:   {0 {3 I% Z1 o: f1 o. h/ ?. s$ V
${exe_path}\n" unless -x ${exe_path};
9 \- b- C& N5 t- i& ~
- x/ s  q) J7 t  `: V# Figure out output information from command line input 3 o6 S' i/ l! y8 B
my $outputFileStr = $hashRef->{'output_file'};
9 z$ V& B0 j0 K1 G! F+ ^2 A/ smy $fscUri = $hashRef->{'targets'};
$ |9 |: a& }- M0 D; f. O8 |
, d9 p7 M7 W4 c, O$ b7 F# Check possible empty space in the string   O7 U$ z) D" N/ A3 [9 w! X
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
6 B( R) c% a1 c: z$fscUri = handleEmptySpaceInPath($fscUri); / V/ Z3 P  b2 N
( X4 y2 d+ `5 X* A; R8 a3 V5 C
# Add the extra options. " o+ j- G9 x3 k( N, H3 y9 a
my @args= ( $exe_path, '-f=load' ); * R- L+ }+ _" k
addOption(\@args, '-plmxml=', $outputFileStr, 1);
1 \* G4 @( L+ G4 U' w1 k7 i8 KaddOption(\@args, '-fsctargets=', $fscUri, 1);
% R  N- \$ e" OaddOption(\@args, '-u=', $tcdbauser, 1); 0 T/ Q* l3 N; {; J5 `
addOption(\@args, '-pf=', $pwdfile, 1);
. y  a* W( C7 _. I; \7 y
" w- X" R# ]( {$ k9 b
2 z5 B( A1 c7 M1 o* S0 s
  P1 p- V' ]2 c' O, L* 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二次开发专题模块培训报名开始啦

    我知道了