青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

青华模具培训学院
查看: 1053|回复: 0

[原创] Lesson 3 List Import and Export

[复制链接]
发表于 2012-5-6 08:56 | 显示全部楼层 |阅读模式
本帖最后由 青华模具培训 于 2012-5-6 08:58 编辑
0 `' l( k2 e* Y; ?! B( |  g# G' q/ Y8 r! X
Lesson 3 List Import and Export.pdf (73.68 KB, 下载次数: 7) Overview
This lesson shows you how to import and export routed lists for use in Wiring. By Route Lists we are referring to two different lists, the Connection list and the Component List. The Connection List is basically a list of all the wires in an electrical system, giving information about what each wire connects from and to (also know as the from-to list). The Component List lists all the components, both devices and connectors if applicable, in the electrical system. The two lists must work together, the wires of the connection list connecting the components in the component list.
NOTE:If you already have an understanding of these concepts, you may perform steps 1-6 of Lesson 3A and continue with Lesson 4.
Lesson 3A - Importing Files
Step 1
Open part file 3-tutorial_assembly.prt or continue with the model from the previous lesson.
Step 2
Choose Application->Routing->Wiring.
Step 3
Choose the Route List Navigator button in the Wiring Tools Toolbar. This opens the Route List Navigator tool bar. Initially the Connection List View is active (as opposed to the Component List View).
Step 4
In the Connection List toolbar, choose the Properties icon (far right end).

    9 `% P. o' i; |
  • The Connection List Propertiesdialog is displayed.
    : R' @6 x+ o& J! M8 Z  U. h8 z0 t
Step 4A
Set the Display Format to Full.
    8 A5 \6 L! G6 X; \
  • The display format determines which fields are displayed in what order.
    - a5 a  R9 y2 f4 M
Step 4B
Set the Import Format to Example by pulling down the Import Format list pull down menu.
    2 t$ X3 `" T( }& N
  • This sets the format used to read the connection list. The connection list for this tutorial uses the format defined by the one named Example (your site may define others ).
    7 Q% u  c3 q1 ?* }1 H# a$ k
Step 4C
Choose OK to accept your choices and dismiss the dialog.
Step 5
Choose the Import All icon on the Connection List toolbar.
Step 6
Choose file tutorial.hrn and choose OK in the file selection box.
    5 G4 X9 ?* T# ]
  • All of the file tutorial.hrn file is read into the Routing Connection List and is displayed in the Connection List Window using the Display Format named FULL.2 ?6 z, {) e8 d4 f
Step 7
Place the cursor over one of the column titles, such as Pin, and hold down MB3. This provides a pop up menu that includes other import options; Import Replace and Import Unique. Choose the Import Unique option.
Step 8
Choose file tutorial.hrn again.
    4 B7 Q" z% _# Q+ w8 V
  • Notice that no new records are added to the connection list. This is because there are no records in the file that are unique compared to those records already in the connection list.
    $ Z* S( b5 N9 Y7 d% z
Step 9
Choose the Import All option, either from the MB3 pop up or from the icon in the Connection List toolbar.
Step 10
Choose file tutorial.hrn again.
    " c& Q- A# y: u( j. Y6 o7 \* J5 r0 e
  • Notice that all records of the file are imported to the connection list and duplicate records exist. This option is typically used to merge two lists, not create duplicates as was just done here.# v4 ], R8 C) z& X  ^
Step 11
Choose Import Replace and choose tutorial.hrn one more time.

    3 k1 p, V# j$ i  l$ ^' |2 ?  ~
  • This option removes all existing list content and replaces it with the contents of the file.
    % a; f, p" [2 V
Lesson 3B - Exporting Files
You may have a need to export the connection list. One example is to transfer wire length information to an ECAD package. You can export lists using the same format used to read it in or you may use a different format altogether.
Step 1
Choose the Export Format Example using the Properties dialog, similar to how you chose the Import Format previously.
Step 2
Choose Export All either from the Connection List toolbar (or from the MB3 pop up). Save the file as all.hrn in your work directory.
    4 B  k' D8 i- M4 p0 L8 Q0 |! i
  • The file all.hrn now exists and is in the same format as the original file turorial.hrn. You may look at this file by opening it in your favorite text editor.
    , H& a+ o. c6 r( f
Step 3
Choose the first four rows of the connection list by highlighting the first row, holding down the shift key, and choosing the fourth row.

    + V8 d4 Q: ^: l  K2 P! A7 Z7 C
  • The first four rows are now highlighted.
      V( h; h# F) Y, s. \/ {4 y
Step 4
Choose the Export by holding the cursor over any of the highlighted rows. Save the file as selected.hrn again.

    7 V0 k7 {" I9 b# o' [1 p+ u* v+ Y
  • The file selected.hrn is created containing only the four rows selected.
    & M0 M; X" d8 ]4 \
Step 5
Choose a different Export Format in the Properties dialog.
Step 6
Choose Export All from the Connection List toolbar (or from the pop up menu). Provide any name you like as the new file name.
    - V: }; J" T9 z0 C) D& q* C2 O
  • The file is created in the chosen format. These file formats are defined in the Wiring configuration file (the default file is ugwiring.cfg, which may be modified).
    . K2 [5 L; J1 D4 n$ L" C9 {0 s
NOTE: The pop up menu changes according to the position of the cursor when the MB3 button is pressed. If the cursor is in a column header or in white space in the connection list then the pop up displays options that are applicable to all rows of the connection list. These options operate on the entire list. If the cursor is located over a selected row in the connection list then the pop up displays options applicable to selected rows, such as Export Selected. These options operate only on the currently selected rows. End of Lesson 3.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )

GMT+8, 2025-2-3 04:01 , Processed in 0.052925 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表