|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
15.使用DispaTCher从NX中创建PDF
- ]' R6 |! @* @3 `3 q$ {8 u
$ _8 }4 q, E8 A' N: P# v如果你已经配置 nxtocgmdirect 服务运行,可以直接转到步骤 4. " u9 }5 s: D3 a7 n$ o1 D( ?6 T
1) 首选激活 nxtocgmdirect,通过 TEM 的方式 5 S) y6 z- e2 j" `
5 L# q$ @" H, L* {+ V5 Y
2013-11-15 , \7 Y |' P9 Q9 [0 R. W; U3 @
或者修改 translator.xml. 2 c& w1 M1 D% p D8 A" F; W. {! K
7 O. |/ b. }) e7 p1 H8 O! b<!-- Configuration of the NX to Cgm Direct translator -->
# ~% f4 M+ g2 \7 z7 G0 } <NxToCgmDirect provider="SIEMENS" service="nxtocgmdirect" isactive="true"
/ P* M! l) S( ?OutputNeeded="false"
, z+ z. ]3 d, @: j" V/ G wrapperclass="&WRAPPER;UGtocgmdirect.UgToCgmDirect"> M, ]% |- x, n$ [4 f' s
<TransExecutable name="nxtocgmdirect.bat" : F, E3 L& C) [
dir="&MODULEBASE;/Translators/nxtocgmdirect"/>
# }; p9 U. @: s& x" a) N <Options>
& Y% [: \' Z+ l5 @. L <Option name="inputpath" string="-i" % Q$ f2 s3 X, v7 z. w+ L
description="Full path to the input file."/> , z# s2 k# ^% L& A& x2 K
</Options> " O2 P: d' D7 @1 B" d
<TransErrorStrings> 6 N* E, d7 c3 }( `- E; H
<TransInputStream string="Cannot"/> 2 s6 W8 A& `: C4 U. a$ r: _% h
<TransInputStream string="ERROR"/>
O) E; b% M3 [- m. Y <TransInputStream string="exception"/>
! O% Z c; u8 S* m$ R, \: e3 F <TransInputStream string="ERRORS"/>
! j8 l+ u0 i: V/ s" z5 m <TransErrorStream string="Errored"/>
+ r( T+ j6 R% s <TransErrorStream string="failed"/>
" U* n" V% ~1 ~" i* b( U- d </TransErrorStrings> 5 R2 j7 |8 l# d5 u6 [+ y
</NxToCgmDirect> ; d: u4 R# I7 x0 K- g* c
8 Z- W: |0 E: B% k8 ~( z0 k
2) 你需要验: T8 P5 h7 U4 X x7 V
证%dispatcher%\Module\Translators\nxtocgmdirect\nxtocgmdirect.bat 正确配/ z8 i; S, b O, P, |7 O
置,特别是下面 4 个变量。
- M) J K% m- X& {* iset TC_ROOT= 8 b: h6 `' H9 ~9 `5 b
set TC_DATA=
5 }; c+ J: h1 r- P4 A6 _" W7 vset UGII_BASE_DIR= , R, f9 [+ l( q& r# n5 n
set UGS_LICENSE_SERVER=
+ R+ @* E# s- ^" V1 ]* [% f* \5 |0 v " D# }' }, U! c) ^. w0 R! z
3) 验证能否为 NX Drawing 产生有效的 CGM 文件。
* A8 f" i4 S9 B3 A6 \选择 数据集 ,然后选择 Translation > Translate >
X3 p1 f1 I& ^) x" v) R # j3 K" n* \ P: D. g
2013-11-15
, v% d3 R1 w5 n$ M确保选择 nxtocgmdirect,然后完成。
$ j9 r% n! d+ A. E7 c p* N) j / ~) o- i0 n( q3 h" A
确保 Module 和 DispatcherClient 运行没有错误:
4 P, h) {5 v3 i$ j( f2 j
1 d+ u4 [$ }3 t' n刷新 Item,CGM 正常产生。 $ }, | A' F0 C0 Y
6 S# _9 Y9 C$ x3 h- E; e" _& R0 a: g- Z
4) 现在为了能够创建 PDF,而不是 CGM,你需要 nxtocgmdirect bat 文件后面增加“-* `8 G1 ?: S* W7 h0 v
pdf -nocgm”。 & [5 J" f7 I4 N k, `
"%UGII_BASE_DIR%\Ugmanager\export_ugdwgimages.exe" -all -text=text –pdf -nocgm %* 0 Z! j7 o+ p5 U3 Q- P0 s# M! H
7 U3 h( q9 X q; I% _
-pdf 创建 PDF 文件。-nocgm 抑制 CGM 的创建(因为它会通过脚本自动创建)。 更改后,保存文件,然后重新提交任务(或者提交一个新的任务)。 ^, v# _6 ?& A# q: p
4 w) U- z. Q8 S" O9 o3 b
当任务完成后,刷新对象,选择 PDF 数据集,在 Viewer 中验证它的视图。 |
|