创建Draftsman模板
Parent page: Streamlining Board Design Documentation with Draftsman
A Draftsman document can use templates to define its page properties (Sheet template, *.DwsDot
), and for new documents, a range of predetermined content (Document template, *.DwfDot
). Both types of templates can be created from the PCB drawing file (file extension PCBDwf
) that is currently open in the editor by saving the document as one of the template types. A Template document may be reopened, edited, and saved to modify its content and properties.
Sheet Template
Sheet (page) templates contain the graphics information for a page, including sheet sizes, parameters, and zones and border settings. Objects created with the editor's graphics tools (such as lines, rectangles, circles, and text) are also included – for example, a constructed Title block and content.
A Sheet Template can be used to define the graphic format of a new or existing drawing document and is also saved as part of a Document Template.
To save the current drawing document format as a Sheet Template, select the File » Save Copy As (or just Save As) command and choose Altium Draftsman Sheet Templates (*.DwsDot) from the Save dialog's Save as type selection filter. Any elements that are incompatible with the Sheet Template format will be removed, such as placed drawings or additional pages. Before saving, an alert dialog will detail the pending action if incompatible elements exist.
Note that a saved Sheet Template can be applied to a Draftsman document page from the Properties panel Template section under the Page Options tab. Select the option then select a template from the dropdown. Alternatively, click the button to locate and load a specific Sheet Template.
Document Template
Document Templates define a Draftsman document's content and (optionally) its style properties. The template supports multi-page documents, data for the main document attributes (tables and lists, drawing types, etc.), and elements created by the drawing Editor that do not depend on the PCB's design content.
To save the current drawing document format as a Document Template, select the File » Save Copy As (or just Save As) command and choose Altium Draftsman Document Templates (*.DwfDot) from the Save dialog's Save as type selection filter. All of an existing drawing document's content and attributes, with the exception to those that relate to data extracted from the PCB design, will be saved as a Document Template. If the source drawing document has a specific page style (as might be applied by a Sheet Template) these graphical elements and attributes will be saved with the new Document Template.
Any elements that are incompatible with the Document Template format will be removed. Before saving, an alert dialog will detail the pending action if incompatible elements exist.
A multi-page Draftsman document might typically contain assembly drawings, drill tables and drawings, layer stack and BOM tables, and fabrication drawings. When saved as a Document Template, the data from the current PCB is retained to define a drawing content 'shell'.
When subsequently used as a template for a new drawing document, the project's current PCB data is loaded into the shell in place of the template PCB data, therefore, recreating the document format and its type of content.
Edit a Template
Both Sheet and Document templates can be opened as free documents in Altium Designer and edited accordingly. Open a template by selecting File » Open and choose Altium Draftsman Sheet Templates (*.DwsDot) or Altium Draftsman Document Templates (*.DwfDot) from the browser filter options.
An open Document Template will include the PCB design data that applied when the template was created, and also the Sheet Template properties that were active when it was created. If a Sheet Template defined the page properties in that Document template, it will need to be reapplied if the Sheet Template has changed in the interim.