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 }
20
Node: <a name="Vendor%20drill%20mapping">Vendor drill mapping</a>,
21
Previous: <a rel="previous" accesskey="p" href="Measuring-distances.html#Measuring%20distances">Measuring distances</a>,
22
Up: <a rel="up" accesskey="u" href="Getting-Started.html#Getting%20Started">Getting Started</a>
26
<h3 class="section">Vendor Drill Mapping</h3>
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
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.
40
<pre class="example"> # Optional name of the vendor
41
vendor = "Vendor Name"
43
# units for dimensions in this file.
44
# Allowed values: mil/inch/mm
49
# When mapping drill sizes, select the nearest size
50
# or always round up. Allowed values: up/nearest
53
# The list of vendor drill sizes. Units are as specified
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.
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.
80
# If specified, this section will change the current DRC
81
# settings for the design. Units are as specified above.
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)
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.
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.
105
<p>See <a href="Actions.html#Actions">Actions</a> for a complete description of the actions associated
106
with vendor drill mapping.
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