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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

# |8 p( g6 F/ _1 E  K/ f171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
$ c3 p8 T1 @  a# f% [0 u( n
  A* c  }* g/ j& h4 h7 j; U问题
8 u; U0 u3 i4 P! [, k# V4 \默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该% L" F; T$ y) I" J; i5 @
模块中的功能无法登录
+ V3 I  A3 X5 C& T  n$ Y9 {; q6 l6 L; O0 t; E
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ' Z+ E: y- k; X9 V1 ^' z, D& A5 C7 S
user ID or the password is invalid.  
1 v. Q/ t( q+ }# l
, y. j) z& z) S$ P; c+ i. o" H0 U6 @: `' y方法
/ C5 W; C: w/ ^$ l! N/ I) t修改 populatefsc 脚本,增加登录信息
, g1 C" K+ a' l6 q# s  E在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
0 S1 }* U5 d' a8 f8 p" Pset TC_DBA_USER=infodba 3 b. I; Y2 t( P! s2 O' ^' e

6 Z7 n' p" m6 d3 X在 populatefsc.pl 中 : - n* v) O( a2 U! Z3 ?$ B

% H3 _% f$ |+ K- _( z在 runPLMXMLExport 子程序下增加红色标记的代码
! r/ C# x6 K, Z; A. n1 \! a, Q/ ]9 u2 F, E. Q* K* ]" p" d, `) V
# This will be the full path to the executable. - Q, A* h8 h: B% j/ J
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
# J6 }7 p# R% U$ fmy $tcdbauser= "$ENV{'TC_DBA_USER'}";     
5 d7 s# c0 g1 m$ M% b+ B' Omy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
1 _5 t' ?: [# O8 m! j) s# Make sure we can find what we are executing.
: P- N7 b( U5 ^# Ddie "The ${exe_name} executable was not found at the following location:
3 N) n, B& g% Q" R5 r# I4 ?${exe_path}\n" unless -x ${exe_path}; 1 q3 Z9 j. p2 V( F  m

5 P: \# q2 g3 i* c$ h1 ?1 T# Start building the command line.
3 w3 F' i# c1 T& q1 o4 A/ xmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
5 U2 q: e% Z2 F8 ~+ I0 R* A, L- Y# U  o  P$ Q+ I' j* Z
# Take care of possible empty spaces in the argument values
) {1 T& y3 g' w* Omy $outputFileStr = $hashRef->{'output_file'}; " x7 W( }2 {8 L
$outputFileStr = handleEmptySpaceInPath($outputFileStr); ) ?4 d4 n/ b- }+ n+ L/ c$ u
my $scoUid = $hashRef->{'uid'};
8 R8 o, \9 g3 W# O$ O! i8 w$scoUid = handleEmptySpaceInPath($scoUid);
/ B& k( a( l3 g
1 x; M& d& G& ?. ^% h# Add the extra options.
% F- h+ W2 }7 X- O- ZaddOption(\@args, '-xml_file=', $outputFileStr, 1);
9 {9 W, ~/ v) X0 Z+ p2 [addOption(\@args, '-uid=', $scoUid, 1);
* j6 F+ L, ^1 y8 I0 l% l, DaddOption(\@args, '-u=', $tcdbauser, 1);     
4 h9 X) N: g  oaddOption(\@args, '-pf=', $pwdfile, 1);
0 S7 e" m$ J$ h4 q" W3 y: F/ |% e9 q) \% P6 Z$ F) V% V+ s
在 runLoadFscCache 子程序下增加红色标记的代码 : T% _  f! O4 B( b2 x$ m# H4 U
! J3 M: `6 [1 f- d+ u/ m8 {
# This will be the full path to the executable. 6 m+ r% g; I; v9 V& P( z
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
7 f# V; h8 }% q% \' ^% @
3 `" n) d5 U( {: g; Nmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 9 D  r) H3 O- i; x) q. u
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
" T2 G6 `1 \; G- w# Make sure we can find what we are executing. 9 k5 b( l3 N/ H- F) g! v- y+ n
die "The ${exe_name} executable was not found at the following location:
+ {/ f' l9 R6 x. q${exe_path}\n" unless -x ${exe_path}; 7 Z* F- L% [* Z! M: g) o7 ^

9 y6 T& D) O: `9 J2 F# Figure out output information from command line input
/ b2 o- n+ s$ z: j( Kmy $outputFileStr = $hashRef->{'output_file'};
7 B6 e2 B# Z5 [1 cmy $fscUri = $hashRef->{'targets'};
: c! k. @& |, ~
- W7 q' \3 O/ b3 S/ x. ~( _( s% ~# Check possible empty space in the string
, U( g1 c8 o7 X+ n$outputFileStr= handleEmptySpaceInPath($outputFileStr); - ^& c0 u- H( q, n, Z
$fscUri = handleEmptySpaceInPath($fscUri); 6 a" u0 k+ y: E- {! p  S
6 j6 w" R, K( t( d. ~) @7 d1 ^9 f
# Add the extra options.
3 k. _. E+ b0 S  C9 umy @args= ( $exe_path, '-f=load' );
+ k) z  l8 V9 c: l* a; m: taddOption(\@args, '-plmxml=', $outputFileStr, 1);
* x! G3 q2 I$ k2 V8 N3 r1 I+ H  OaddOption(\@args, '-fsctargets=', $fscUri, 1);
1 H' O% r2 E7 G6 q- m/ g  WaddOption(\@args, '-u=', $tcdbauser, 1); * A* h7 L; X' T
addOption(\@args, '-pf=', $pwdfile, 1); ' O4 \) m& ?- e4 t# j/ A2 C+ }7 s( V

2 q6 S! e) ]% b3 R9 K7 n
9 q$ t4 t7 I  ^5 d4 \
8 r/ |9 x. I0 V, N9 j
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了