PLM之家精品课程培训,联系电话:18301858168 QQ: 939801026

  • NX二次开培训

    NX二次开培训

    适合初级入门或想深入了解二次开发的工程师,本培训结合ufun,NXOpen C++,大量的实例及官方内部的开发技术对于老鸟也值得借鉴!.

    NX CAM二次开发培训报名 NX二次开发基础培训报名
  • PLM之家Catia CAA二次开发培训

    Catia二次开发培训

    Catia二次开发的市场大,这方面开发人才少,难度大。所以只要你掌握了开发,那么潜力巨大,随着时间的积累,你必将有所用武之地!

  • PLM之Teamcenter最佳学习方案

    Teamcenter培训

    用户应用基础培训,管理员基础培训,管理员高级培训,二次开发培训应有尽有,只要你感兴趣肯学习,专业多年经验大师级打造!

  • PLM之Tecnomatix制造领域培训

    Tecnomatix培训

    想了解制造领域数字化吗?想了解工厂,生产线设计吗?数字化双胞胎,工业4.0吗?我们的课程虚位以待!

PLM之家PLMHome-国产软件践行者

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
6 K: m. H5 A2 U6 z4 |3 `
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
7 t- _3 F. X/ v5 e* F0 a  Y: }3 N# v; @) O: A& p& M5 U4 {4 V
问题
, K) F8 {5 E3 \默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该- F. @  I3 C2 Y% p+ {: f
模块中的功能无法登录
3 W% N" t- E9 y% q( w& ^8 |8 g+ `1 }: k
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
3 b* p3 l% l8 Q- fuser ID or the password is invalid.  0 ^+ A; P2 |: c8 p6 q

! x& b' R! e) u! F0 p方法
) Q6 D' m. X, |2 ?- `% P$ a修改 populatefsc 脚本,增加登录信息 2 M% P% ]# \7 T7 F* i. b) d
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
9 u! H( I) ], I% fset TC_DBA_USER=infodba : o1 F5 O, M3 s4 o6 r" g! _

+ I5 m$ H# M5 f在 populatefsc.pl 中 : . Z% {3 k; J% j* Y4 Y6 ~* G; Z

1 z: w5 y( j! |! i, a1 @在 runPLMXMLExport 子程序下增加红色标记的代码 , n8 Q: d1 ]1 v% z: @
5 W- L5 z) X0 w4 f( f! ~
# This will be the full path to the executable. 1 f* t& @3 B/ |7 s
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ( ?$ ^9 R$ f  K- z# ~0 z: z
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     ) P) E. ?8 i: r
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; $ K( }5 }0 \4 R/ }1 t8 n
# Make sure we can find what we are executing. , F& X0 L/ O8 T/ E" ]
die "The ${exe_name} executable was not found at the following location:
+ ^  M/ i4 p; v: {- }" w${exe_path}\n" unless -x ${exe_path}; ) t, O. u5 P5 t" K3 @
$ {6 X# k; |( c
# Start building the command line.
# A3 o  [& h: }: [my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
2 w* E8 u/ W2 q+ x7 W6 K, Y$ E9 y6 }
# Take care of possible empty spaces in the argument values : b0 m: t" L$ _/ ~  h
my $outputFileStr = $hashRef->{'output_file'};
3 e* ?& s/ Z( B: x$ F. }' W* R1 O$outputFileStr = handleEmptySpaceInPath($outputFileStr); 5 p& t6 t) X, ?
my $scoUid = $hashRef->{'uid'}; ; S$ g. n2 J% T
$scoUid = handleEmptySpaceInPath($scoUid); , b0 q/ f( L: n

0 {4 ?  X4 D0 S; n3 Q$ z7 X# Add the extra options.
3 }) I. C' v' t8 p! \addOption(\@args, '-xml_file=', $outputFileStr, 1);
/ q$ B: i) x- Y4 x8 aaddOption(\@args, '-uid=', $scoUid, 1);
. p0 n  d) i. LaddOption(\@args, '-u=', $tcdbauser, 1);     : J2 K8 K) j, C8 q! \- n# n
addOption(\@args, '-pf=', $pwdfile, 1); 4 c) C1 r& r5 w  e' z1 p

+ s- U3 |8 p( q, |- j/ k在 runLoadFscCache 子程序下增加红色标记的代码 4 D2 I( X) A2 F6 l4 i* ~6 q9 J  u

% }4 x1 e  `! I6 q2 O+ U/ `# This will be the full path to the executable.
3 K) @0 j7 T1 n, L2 umy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
2 m7 K' b' S; a: a, b/ t* K
) v5 X$ |% q  w/ [my $tcdbauser= "$ENV{'TC_DBA_USER'}";
3 R$ f( F9 H: X! ^" @my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
" X0 Y  E5 z% E3 }/ P8 w8 g# Make sure we can find what we are executing. . ]4 l# N3 T. S0 E0 h
die "The ${exe_name} executable was not found at the following location:
. h5 g. K* T/ e${exe_path}\n" unless -x ${exe_path};
( l& p; X# e9 w% r. {0 T0 I) [  s
# Figure out output information from command line input
" q/ Q6 C7 Z( z. v/ e; j/ Z( `my $outputFileStr = $hashRef->{'output_file'}; % M. q  C& @* O2 Z* b
my $fscUri = $hashRef->{'targets'};   t8 o" T% ?; A- ~& u

* C8 X4 G2 a/ a9 ~- f# Check possible empty space in the string 9 W2 y9 [+ A1 _8 r2 ]0 e- K
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 4 e) W: g) K) ]/ a( Y6 `# i
$fscUri = handleEmptySpaceInPath($fscUri); # q% ?4 z& h. q; k" ~1 E

0 A  b" {* Q! G- k& O, f" K# Add the extra options. & v2 M9 D) N$ z+ t
my @args= ( $exe_path, '-f=load' ); 0 L# Z9 R1 L; r1 I" ?# y
addOption(\@args, '-plmxml=', $outputFileStr, 1);
/ O2 ]) `# {5 `6 \( k; v% SaddOption(\@args, '-fsctargets=', $fscUri, 1); ; A) L* ]8 J6 z8 b$ h. W
addOption(\@args, '-u=', $tcdbauser, 1); 9 v( T- s% b/ q8 [- X
addOption(\@args, '-pf=', $pwdfile, 1);
$ I/ ^. L) ?7 l+ W/ T! V9 u4 P% o! N) K; {

1 H, z9 Y! u! X2 Z/ q; Q
2 u# l& }+ L- O6 A7 I# r: g
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复

使用道具 举报

发表回复

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

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

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

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

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

    我知道了