|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
15.使用DispaTCher从NX中创建PDF ! V3 O, }" p1 E
3 ]6 x) B5 M* j8 S
如果你已经配置 nxtocgmdirect 服务运行,可以直接转到步骤 4. 3 ]$ j2 B. W6 o4 Q
1) 首选激活 nxtocgmdirect,通过 TEM 的方式 " H1 w k* ]* j( V- z# ~8 F
/ u q7 h9 Z8 h( \5 A( A) l
2013-11-15
7 W! x& W: `1 C- u% t# q. B或者修改 translator.xml. 8 U3 D9 I: c# }" q
2 Y; D0 V* Z# [4 ^
<!-- Configuration of the NX to Cgm Direct translator -->
/ J9 u7 A9 i. C8 U, H <NxToCgmDirect provider="SIEMENS" service="nxtocgmdirect" isactive="true" , ^7 `" [5 @* E
OutputNeeded="false" * N& j. r' i6 H3 e) x7 |
wrapperclass="&WRAPPER;UGtocgmdirect.UgToCgmDirect"> ; t9 G6 R" m: J' P
<TransExecutable name="nxtocgmdirect.bat"
) F A6 d% I) F0 K/ idir="&MODULEBASE;/Translators/nxtocgmdirect"/>
! L$ [, V% {9 K1 ~4 M# _, x <Options>
; o- k2 v" ?1 ~: l <Option name="inputpath" string="-i"
/ @$ }5 k8 O7 ` R description="Full path to the input file."/>
' _4 i0 t6 o- m </Options> ; E' n2 S& U+ [, Q
<TransErrorStrings> 7 t5 f1 |& F& }3 h4 i& a8 u
<TransInputStream string="Cannot"/> * R3 e) V! f$ n0 f
<TransInputStream string="ERROR"/>
) J- j* P0 L: Y <TransInputStream string="exception"/> 9 I: U6 b* d! b5 m" H
<TransInputStream string="ERRORS"/> ! ], }3 V( a# O' a F1 k' v- x3 z
<TransErrorStream string="Errored"/>
6 ]& j' m3 b7 [ <TransErrorStream string="failed"/>
/ k1 `, G2 M, n6 y </TransErrorStrings> 5 Z+ }; e S P( H9 g6 p- D* c. T4 A0 p
</NxToCgmDirect> " A K+ M- s6 _% O! ^; M: N
) r8 c# l. T/ U5 l: }) }* `2) 你需要验
: }; w: r8 f/ m- e& @证%dispatcher%\Module\Translators\nxtocgmdirect\nxtocgmdirect.bat 正确配( ?1 ^5 V1 q/ q( f7 P0 U0 D5 [/ K
置,特别是下面 4 个变量。 ; t3 b6 _/ l/ X7 A4 G6 y
set TC_ROOT= 5 X2 |/ \$ ^/ j$ l0 ~
set TC_DATA=
8 p: w# U- E; h4 t/ c3 [3 {2 h. {* p: cset UGII_BASE_DIR= 6 \# [2 z f9 M8 r9 \; u
set UGS_LICENSE_SERVER= ! G, r$ o' Y6 x- l- }
0 Z* H! O, b' K2 H6 R) b' Z
3) 验证能否为 NX Drawing 产生有效的 CGM 文件。 / W: g; `9 G2 D* p
选择 数据集 ,然后选择 Translation > Translate > 7 f K$ |7 J0 K9 T1 j
; k, ]0 h! ~: f
2013-11-15
! g0 ]' E; I, B确保选择 nxtocgmdirect,然后完成。
; s) R( X+ f' i. O W( y' F' J4 a # x8 T8 d9 h) S }* r1 ?8 M
确保 Module 和 DispatcherClient 运行没有错误:
6 ?9 A+ k6 L' W$ Y* F2 G& c
: J4 {6 w1 j' ?刷新 Item,CGM 正常产生。
9 f- T3 Q9 z* j; N3 U# X ' o, N3 Y x" L+ ~
4) 现在为了能够创建 PDF,而不是 CGM,你需要 nxtocgmdirect bat 文件后面增加“-
1 I x4 H! U4 V9 spdf -nocgm”。
1 e% H/ [/ H6 e"%UGII_BASE_DIR%\Ugmanager\export_ugdwgimages.exe" -all -text=text –pdf -nocgm %* 7 H: g% H! `" q0 o3 O2 ?
8 l x% |9 @) b5 Q+ R( G4 @ H+ `9 A-pdf 创建 PDF 文件。-nocgm 抑制 CGM 的创建(因为它会通过脚本自动创建)。 更改后,保存文件,然后重新提交任务(或者提交一个新的任务)。 # R2 g0 y9 U6 X# w
4 E$ i9 t* O. e4 U9 I& A7 `
当任务完成后,刷新对象,选择 PDF 数据集,在 Viewer 中验证它的视图。 |
|