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 1575 0

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

admin 楼主

2019-8-19 15:47:15

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

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

x
4 V( [% ^9 t4 H% R+ _
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
1 u% [2 f1 ^+ |3 X' L1 t1 M6 O( l+ R$ ?2 P% x* A. ^. B# X
问题 $ v- S" `& g( j/ `% `4 Q
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
4 w% ?0 N6 _- o4 T3 h9 h2 p" N模块中的功能无法登录
% Y5 t; E, m9 l5 h
- d; a% q- b8 P1 U. l( K7 V( XERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
; E% X9 B7 I) N6 iuser ID or the password is invalid.  
* o  B! n0 u# n' N. S: i" t$ T$ |! L
方法
8 L" k, W+ d# Z3 Y9 i8 b3 T# O修改 populatefsc 脚本,增加登录信息 $ o; x( b" w8 e1 z
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ( L# H/ @$ H/ S$ ?0 w
set TC_DBA_USER=infodba . W! q) Y$ W% G; |
+ I6 n) V* W% m  m* x7 t7 Q
在 populatefsc.pl 中 : 8 L# S# ]0 B2 t  ?% ?! a
" a& a2 ~0 r# `. v; d5 P
在 runPLMXMLExport 子程序下增加红色标记的代码 , ?- t, W& K/ V+ @' y
) I# V, v7 E7 e
# This will be the full path to the executable. ) O: V5 F; j, ]
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 3 \; k; ?4 B; N; K
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
5 j# A" w1 n$ `. i; Jmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 7 `8 b5 D8 I% {2 U
# Make sure we can find what we are executing.   y4 q# p  b* k7 N
die "The ${exe_name} executable was not found at the following location:
$ P+ i" X7 c- w* {! F; g${exe_path}\n" unless -x ${exe_path};
2 \9 ?3 s% V4 p- ^- _; Z; b9 X9 j
- U% w% G1 F% j; ^# Start building the command line.
1 D$ {3 c/ \9 X7 p! Zmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 6 V6 ]. r+ u, B: Z3 G4 X" z
# K% Q  C3 H4 D) X  k7 z- M9 w: Q
# Take care of possible empty spaces in the argument values
1 C; F' ~7 }* `; l- r( Q+ h. ymy $outputFileStr = $hashRef->{'output_file'};
# _  C# b+ s# e9 t* {& H$outputFileStr = handleEmptySpaceInPath($outputFileStr); + }% g" ?. ]5 {' Z" l
my $scoUid = $hashRef->{'uid'}; . J( R% ]  `9 r; Y
$scoUid = handleEmptySpaceInPath($scoUid);
6 T3 b& K6 H" x+ r* `
# Q/ A3 ^# i" `% I. q- j5 I. @# Add the extra options. $ c9 `( G% s, e2 F+ Y6 E; m1 _
addOption(\@args, '-xml_file=', $outputFileStr, 1); + M9 F! ^4 _' u/ t% V+ o
addOption(\@args, '-uid=', $scoUid, 1);
8 i7 ]& o( Y2 n5 B, R5 K" v7 IaddOption(\@args, '-u=', $tcdbauser, 1);     
$ w1 y0 x& s9 b9 J) taddOption(\@args, '-pf=', $pwdfile, 1); 5 c7 N: N; W* J! T" e; _" Y- i* g

! [6 Z! B4 x- i! ?( [& |# `* ]6 o在 runLoadFscCache 子程序下增加红色标记的代码   H+ z' `1 s' h! f
  s& P( Q6 v9 H0 U* P2 w- K1 f' ^
# This will be the full path to the executable.
, ?: Z& T9 s9 X# Q9 jmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
, K; k6 c0 o* A. P; S; N( s$ S3 {1 ^2 q6 X
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ' J5 j0 H$ \( s- h& P# x$ Q
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; # P7 ~& s; P2 ^1 b8 @/ ]2 n
# Make sure we can find what we are executing.
7 @5 w9 I+ u! i8 h& Zdie "The ${exe_name} executable was not found at the following location:
2 J- ?1 G2 \% A! c${exe_path}\n" unless -x ${exe_path};
& j. w; }7 _& V2 m2 I8 N6 U! z: m5 m& Y8 E+ {3 x9 n" G4 R
# Figure out output information from command line input
5 A& W! {1 ]) o9 l, c0 t& Qmy $outputFileStr = $hashRef->{'output_file'};
' A8 e' B! \; A+ \/ G% i  smy $fscUri = $hashRef->{'targets'}; " O7 B. q8 h. s, e* Y" ]! P
0 H) F; [+ B( ?  f" H
# Check possible empty space in the string 3 A* O8 j/ N3 V9 f. R
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 2 j: T7 o/ p! Z4 i" v1 P. @* g
$fscUri = handleEmptySpaceInPath($fscUri); 3 P8 m* G6 Z: {9 V' k
1 Q: j; H3 O& p3 k9 }) q! \. n. m, }
# Add the extra options. 0 |+ j4 O0 o% |* I5 ~  ~; K
my @args= ( $exe_path, '-f=load' ); 8 v- z$ h" {. h( A1 ?* ]4 b
addOption(\@args, '-plmxml=', $outputFileStr, 1); ( w5 i7 `: i& a$ V7 P" B
addOption(\@args, '-fsctargets=', $fscUri, 1);
7 p3 f' U  I+ a- d* |. SaddOption(\@args, '-u=', $tcdbauser, 1); 2 j5 |, b+ I* H( A6 A/ S
addOption(\@args, '-pf=', $pwdfile, 1); # b% v  D% `/ I. ^. N9 E4 A1 {3 B
8 B# P& H# k. \0 g

2 k5 O& T% p. ?0 R3 h) {; z
( \9 R& B" Z! z4 A1 }( \' q
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了