如何将一个装配件输出成html格式 要输出成 html 文件, 按如下步骤: 3 S# |+ K8 B2 h) i1 {8 O- R
1.从ugcast150/cast150_parts/UGweb下拷备base_5.htt及comp.htt到该装配目录下,修改base_5.htt 文件:
8 X1 b5 e" c" U/ g4 D; `( y将 <@UGSHADE FILE="assy_damper_cap_lower.jpg" X="215" Y="185"改为 <@UGSHADE FILE="d:\webdemo\airpipe_assm.jpg" X="215" Y="185"* e7 B/ s$ U: ^' Y
将 <P><IMG BORDER=2 WIDTH=215 HEIGHT=185 SRC="assy_damper_cap_lower.jpg"改为 <P><IMG BORDER=2 WIDTH=215 HEIGHT=185 SRC="airpipe_assm.jpg"5 `- V7 V- v L& ^6 A5 _
2.在你的装配目录下创建子目录/images,拷备Ugcast150/cast150_parts/ugweb 路径下所有的 *.gif 文件到 images 路径下
$ o! f( W) J9 x: Y9 |6 f" J 3.在UG里,调出整个装配之后(work part在装配件上),选择web- Author HTML, & L5 Y2 i7 A) v# h# u
4.选择Apply to Each Component, 选择Select Template , 给comp.htt,Apply 5. 选择 Apply to Assembly, 选择 Select Template , 给base_5.htt, Apply
7 h- [! \3 j, h- q- p& Q* }5 f4 W- ?# I0 ^" Z N
6.在你的装配目录下, 自动生成 一系列 html 文件及一系列 jpg 文件 6 {; P5 Y) t) u0 m
7.在你的装配目录下, 点击 装配件名.htm, 可用 IE 或 Netscape 浏览+ w4 f% \. _$ x9 ~ c1 D
/ \! J1 Q! _+ _' `* j& C
 |