forked from johnbeard/kiplot
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Added][IPC2581] New output to generate IPC-DPMX files
- Loading branch information
Showing
18 changed files
with
475 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.. _IPC2581Options: | ||
|
||
|
||
IPC2581Options parameters | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
- **output** :index:`: <pair: output - ipc2581 - options; output>` [:ref:`string <string>`] (default: ``'%f-%i%I%v.%x'``) Filename for the output (%i=IPC-2581, %x=zip/xml) | ||
The extension depends on the compress option. Affected by global options. | ||
- ``compress`` :index:`: <pair: output - ipc2581 - options; compress>` [:ref:`boolean <boolean>`] (default: ``true``) Compress the XML file as a *zip* file. | ||
- ``dnf_filter`` :index:`: <pair: output - ipc2581 - options; dnf_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to mark components as not fitted. | ||
Is a short-cut to use for simple cases where a variant is an overkill. |br| | ||
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the | ||
variant. | ||
|
||
- ``exclude_filter`` :index:`: <pair: output - ipc2581 - options; exclude_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to exclude components from processing. | ||
Is a short-cut to use for simple cases where a variant is an overkill. |br| | ||
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the | ||
variant. | ||
|
||
- ``field_dist_part_number`` :index:`: <pair: output - ipc2581 - options; field_dist_part_number>` [:ref:`string <string>`] (default: ``'_field_dist_part_number'``) Name of the field used for the distributor part number. | ||
Use the `field_dist_part_number` global variable to define `_field_dist_part_number`. | ||
- ``field_distributor`` :index:`: <pair: output - ipc2581 - options; field_distributor>` [:ref:`string <string>`] (default: ``'_field_distributor'``) Name of the field used for the distributor. | ||
Use the `field_distributor` global variable to define `_field_distributor`. | ||
- ``field_internal_id`` :index:`: <pair: output - ipc2581 - options; field_internal_id>` [:ref:`string <string>`] (default: ``''``) Name of the field used as an internal ID. | ||
Leave empty to create unique IDs. | ||
- ``field_manufacturer`` :index:`: <pair: output - ipc2581 - options; field_manufacturer>` [:ref:`string <string>`] (default: ``'_field_manufacturer'``) Name of the field used for the manufacturer. | ||
Use the `field_manufacturer` global variable to define `_field_manufacturer`. | ||
- ``field_part_number`` :index:`: <pair: output - ipc2581 - options; field_part_number>` [:ref:`string <string>`] (default: ``'_field_part_number'``) Name of the field used for the manufacturer part number. | ||
Use the `field_part_number` global variable to define `_field_part_number`. | ||
- ``pre_transform`` :index:`: <pair: output - ipc2581 - options; pre_transform>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to transform fields before applying other filters. | ||
Is a short-cut to use for simple cases where a variant is an overkill. |br| | ||
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the | ||
variant. | ||
|
||
- ``precision`` :index:`: <pair: output - ipc2581 - options; precision>` [:ref:`number <number>`] (default: ``6``) Number of decimals used to represent the values. | ||
- ``units`` :index:`: <pair: output - ipc2581 - options; units>` [:ref:`string <string>`] (default: ``'millimeters'``) (choices: "millimeters", "inches") Units used for the positions. Affected by global options. | ||
Note that when using *mils* as global units this option becomes *inches*. | ||
- ``variant`` :index:`: <pair: output - ipc2581 - options; variant>` [:ref:`string <string>`] (default: ``''``) Board variant to apply. | ||
- ``version`` :index:`: <pair: output - ipc2581 - options; version>` [:ref:`string <string>`] (default: ``'C'``) (choices: "B", "C") Which implementation of the IPC-2581 standard will be generated. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. Automatically generated by KiBot, please don't edit this file | ||
.. index:: | ||
pair: IPC-DPMX (IPC-2581); ipc2581 | ||
|
||
IPC-DPMX (IPC-2581) | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
Exports the PCB in the Digital Product Model Exchange IPC format. | ||
Only available for KiCad 9 and newer. |br| | ||
The requested fields are optional | ||
|
||
Type: ``ipc2581`` | ||
|
||
Categories: **PCB/export**, **PCB/fabrication** | ||
|
||
Parameters: | ||
|
||
- **comment** :index:`: <pair: output - ipc2581; comment>` [:ref:`string <string>`] (default: ``''``) A comment for documentation purposes. It helps to identify the output. | ||
- **dir** :index:`: <pair: output - ipc2581; dir>` [:ref:`string <string>`] (default: ``'./'``) Output directory for the generated files. | ||
If it starts with `+` the rest is concatenated to the default dir. | ||
- **name** :index:`: <pair: output - ipc2581; name>` [:ref:`string <string>`] (default: ``''``) Used to identify this particular output definition. | ||
Avoid using `_` as first character. These names are reserved for KiBot. | ||
- **options** :index:`: <pair: output - ipc2581; options>` [:ref:`IPC2581Options parameters <IPC2581Options>`] [:ref:`dict <dict>`] (default: empty dict, default values used) Options for the `ipc2581` output. | ||
- **type** :index:`: <pair: output - ipc2581; type>` 'ipc2581' | ||
- ``category`` :index:`: <pair: output - ipc2581; category>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``''``) [:ref:`comma separated <comma_sep>`] The category for this output. If not specified an internally defined | ||
category is used. |br| | ||
Categories looks like file system paths, i.e. **PCB/fabrication/gerber**. |br| | ||
Using '.' or './' as a category puts the file at the root. |br| | ||
The categories are currently used for `navigate_results` and `navigate_results_rb`. | ||
|
||
- ``disable_run_by_default`` :index:`: <pair: output - ipc2581; disable_run_by_default>` [:ref:`string <string>` | :ref:`boolean <boolean>`] (default: ``''``) Use it to disable the `run_by_default` status of other output. | ||
Useful when this output extends another and you don't want to generate the original. |br| | ||
Use the boolean true value to disable the output you are extending. | ||
- ``extends`` :index:`: <pair: output - ipc2581; extends>` [:ref:`string <string>`] (default: ``''``) Copy the `options` section from the indicated output. | ||
Used to inherit options from another output of the same type. | ||
- ``groups`` :index:`: <pair: output - ipc2581; groups>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``''``) One or more groups to add this output. In order to catch typos | ||
we recommend to add outputs only to existing groups. You can create an empty group if | ||
needed. | ||
|
||
- ``output_id`` :index:`: <pair: output - ipc2581; output_id>` [:ref:`string <string>`] (default: ``''``) Text to use for the %I expansion content. To differentiate variations of this output. | ||
- ``priority`` :index:`: <pair: output - ipc2581; priority>` [:ref:`number <number>`] (default: ``50``) (range: 0 to 100) Priority for this output. High priority outputs are created first. | ||
Internally we use 10 for low priority, 90 for high priority and 50 for most outputs. | ||
- ``run_by_default`` :index:`: <pair: output - ipc2581; run_by_default>` [:ref:`boolean <boolean>`] (default: ``true``) When enabled this output will be created when no specific outputs are requested. | ||
|
||
.. toctree:: | ||
:caption: Used dicts | ||
|
||
IPC2581Options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.