~ubuntu-branches/ubuntu/precise/pcb/precise

« back to all changes in this revision

Viewing changes to doc/pcb.html/Vendor-drill-mapping.html

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2005-02-20 13:14:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050220131400-pfz66g5vhx0azl8f
Tags: 1.99j+20050127-2
* Improved package description: (closes: #295405)
* Fixed dependency: tk84 -> tk8.4 (closes: #295404)
* Updated README.debian (closes: #269578)
* Applied patch to src/djopt.c to allow compilation with gcc-4.0
  (closes: #294319), thanks to Andreas Jochens for the patch.
* Prevent example files from being compressed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html lang="en">
 
2
<head>
 
3
<title>Pcb</title>
 
4
<meta http-equiv="Content-Type" content="text/html">
 
5
<meta name="description" content="Pcb">
 
6
<meta name="generator" content="makeinfo 4.6">
 
7
<meta http-equiv="Content-Style-Type" content="text/css">
 
8
<style type="text/css"><!--
 
9
  pre.display { font-family:inherit }
 
10
  pre.format  { font-family:inherit }
 
11
  pre.smalldisplay { font-family:inherit; font-size:smaller }
 
12
  pre.smallformat  { font-family:inherit; font-size:smaller }
 
13
  pre.smallexample { font-size:smaller }
 
14
  pre.smalllisp    { font-size:smaller }
 
15
--></style>
 
16
</head>
 
17
<body>
 
18
<div class="node">
 
19
<p>
 
20
Node:&nbsp;<a name="Vendor%20drill%20mapping">Vendor drill mapping</a>,
 
21
Previous:&nbsp;<a rel="previous" accesskey="p" href="Measuring-distances.html#Measuring%20distances">Measuring distances</a>,
 
22
Up:&nbsp;<a rel="up" accesskey="u" href="Getting-Started.html#Getting%20Started">Getting Started</a>
 
23
<hr><br>
 
24
</div>
 
25
 
 
26
<h3 class="section">Vendor Drill Mapping</h3>
 
27
 
 
28
<p><code>Pcb</code> includes support for mapping drill holes to a specified set
 
29
of sizes used by a particular vendor.  Many PCB manufacturers have a
 
30
prefered set of drill sizes and charge extra when others are used. 
 
31
The mapping can be performed on an existing design and can also be
 
32
enabled to automatically map drill holes as vias and elements are
 
33
instantiated.
 
34
 
 
35
   <p>The first step in using the vendor drill mapping feature is to create
 
36
a resource file describing the capabilities of your vendor.  The file
 
37
format is the resource file format described in <a href="Resource-Syntax.html#Resource%20Syntax">Resource Syntax</a>. 
 
38
A complete example is given below.
 
39
 
 
40
<pre class="example">     # Optional name of the vendor
 
41
     vendor = "Vendor Name"
 
42
     
 
43
     # units for dimensions in this file.
 
44
     # Allowed values:  mil/inch/mm
 
45
     units = mil
 
46
     
 
47
     # drill table
 
48
     drillmap = {
 
49
        # When mapping drill sizes, select the nearest size
 
50
        # or always round up.  Allowed values:  up/nearest
 
51
        round = up
 
52
     
 
53
        # The list of vendor drill sizes.  Units are as specified
 
54
        # above.
 
55
        20
 
56
        28
 
57
        35
 
58
        38
 
59
        42
 
60
        52
 
61
        59.5
 
62
        86
 
63
       125
 
64
       152
 
65
     
 
66
        # optional section for skipping mapping of certain elements
 
67
        # based on reference designator, value, or description
 
68
        # this is useful for critical parts where you may not
 
69
        # want to change the drill size.  Note that the strings
 
70
        # are regular expressions.
 
71
        skips = {
 
72
           {refdes "^J3$"}  # Skip J3.
 
73
           {refdes "J3"}  # Skip anything with J3 as part of the refdes.
 
74
           {refdes "^U[1-3]$" "^X.*"} # Skip U1, U2, U3, and anything starting with X.
 
75
           {value "^JOHNSTECH_.*"} # Skip all Johnstech footprints based on the value of a part.
 
76
           {descr "^AMP_MICTOR_767054_1$"} # Skip based on the description.
 
77
        }
 
78
     }
 
79
     
 
80
     # If specified, this section will change the current DRC
 
81
     # settings for the design.  Units are as specified above.
 
82
     drc = {
 
83
        copper_space = 7
 
84
        copper_width = 7
 
85
        silk_width = 10
 
86
        copper_overlap = 4
 
87
     }
 
88
     </pre>
 
89
 
 
90
   <p>The vendor resource is loaded using the <em>LoadVendor</em> action. 
 
91
This is invoked by entering:
 
92
<pre class="example">     :LoadVendor(vendorfile)
 
93
     </pre>
 
94
   from within <code>Pcb</code>.  Substitute the file name of your vendor
 
95
resource file for <code>vendorfile</code>.  This action will load the vendor
 
96
resource and modify all the drill holes in the design as well as the
 
97
default via hole size for the various routing styles.
 
98
 
 
99
   <p>Once a vendor drill map has been loaded, new vias and elements will
 
100
automatically have their drill hole sizes mapped to the vendor drill
 
101
table.  Automatic drill mapping may be disabled under the "Settings"
 
102
menu.  To re-apply an already loaded vendor drill table to a design,
 
103
choose "Apply vendor drill mapping" from the "Connects" menu.
 
104
 
 
105
   <p>See <a href="Actions.html#Actions">Actions</a> for a complete description of the actions associated
 
106
with vendor drill mapping.
 
107
 
 
108
   <p>Note that the expressions used in the <code>skips</code> section are regular
 
109
expressions.  See <a href="Regular-Expressions.html#Regular%20Expressions">Regular Expressions</a> for an introduction to
 
110
regular expressions.
 
111
 
 
112
   </body></html>
 
113