cdhigh / sprintFontRelease

A plugin of sprint-layout v6, Import footprint from Kicad/EasyEDA, Insert text in other fonts,...
19 stars 2 forks source link

sprintFont manual

sprintFont is a plugin for Sprint-Layout v6 2022 and newer version.

1. Features

2. Usage

2.1 Install plugin

  1. Decompress sprintFont to a directory, open Sprint-Layout v6.0 2021 and newer version, click menu ["Extras" / "Define Plugin"]

define_plugin

  1. Locate the sprintFont.exe

plugin_path

  1. Execute the plugin by clicking menu ["Extras" / "Run Plugin"]

define_plugin

2.2 Insert text in other fonts

  1. Switch to the "Font" page

Choose a font and change some parameters for your application.

main

  1. Return to Sprint-Layout by clicking "OK", the text you entered will be "sticky" on the mouse, move to the desired position and click the mouse to drop it. If the layer "C2 (Back copper)" or "S2 (Back silkscreen)" is selected, the font is automatically mirrored horizontally.

dual_silk

  1. For unicode symbols in font file, you can digit "\u1234" to insert it into Sprint-Layout (replace 1234 with the unicode code of symbol)

2.3 Import footprint

Disclaimer: I am not responsible for any loss caused by the incorrect package imported by this plugin. If you do not agree with this disclaimer, please stop using this plugin immediately.

  1. Switch to the "Footprint" page

footprint_main

  1. Import from Kicad

Kicad installer is already packaged with a lot of footprint libraries. If you don't want to install Kicad, you can just download the libraries from this link Kicad official libraries, in addition, many component search websites also provide footprint library in Kicad format, such as Component Search Engine.

Steps:
Click the button on the right side of the text box to select the footprint kicad_mod file in your machine to import to Sprint-Layout. It is compatible with Kicad_v5 and Kicad_v6 format.

kicad_footprint

kicad_imported

  1. Import from EasyEDA

Steps:
If you want to import the footprint from EasyEDA, the first thing is to find the LCSC part code of the component, you can go to the website EasyEDA site, Click the "Library" in the left navigation bar, search and pick the LCSC part code at the bottom of the page

easyeda_find_code

Digit the LCSC code in the text box, press Enter or click the "Ok" button to import it.
easyeda_imported

2.4 Insert SVG images/Qrcode

This plugin also supports the importation of SVG vector graphics, but it does not implement all SVG commands internally, so it can only support simple graphics, such as LOGO.

svg_main

svg_imported

2.5 Autorouting

This plugin successfully added auto-routing functionality to Sprint-Layout.
The solution is the same as Kicad, divided into three steps:

  1. Export the board to Specctra DSN format.
  2. Use the open source auto-router Freerouting to do auto-routing work and save routing results as a SES file.
  3. Import the SES file back to Sprint-Layout.

2.5.1 Usage

2.5.1.1 Export to Specctra DSN format

  1. Switch to the layer "O" firstly in Sprint-Layout, and define a closed zone as board boundary, which can be of different shapes such as rectangles, circles or irregular shapes. After that, switch to other board layers to place components and layout them appropriately. Use the "Connections" tool to connect the pins that need to be connected, this connection is called Ratsnest or Airwire or other names in different software.

airwire_and_ulayer

  1. Deselect all items in Sprint-Layout (no components or tracks can be selected), run the plugin, switch to the "Autorouter" page.

autorouter_main

  1. Specify the DSN file name, modify the rule item value by double-clicking the row, and click "Export DSN" to export the DSN file.
    This plugin also generates a pickle file with the same name of DSN file, please do not delete it, this file will be used when importing SES

2.5.1.2 Auto-routing

  1. Download and install Freerouting, open it and load the DSN file.

  2. Click "Autorouter" on the toolbar and wait for it to complete the routing. If the circuit board is complex, it may take a long time to run.

freerouting_main

  1. The default configuration is for double-sided board, it means both the top and bottom copper layer are allowed to place tracks. If single-sided copper layer is required, you can select the copper layer you need through the Freerouting menu ["Parameter" / "Autoroute"] dialog

freerouting_layers

  1. After the routing is completed, save the result as an SES file via the menu ["File" / "Export Specctra Session File"]

freerouting_save_ses

2.5.1.3 Import SES to Sprint-Layout

  1. Select the correct SES file (ensure that the pickle file with the same name exists), click "Import SES" to directly import the routing result into Sprint-Layout. Sprint-Layout does not necessarily need to pre-open the previous board, it can be a blank board.

  2. Hold Shift and click "Import SES" to display a menu with more import options.

import_ses_options

2.5.2 other details for auto-routing

2.6 Teardrop pads

The algorithm of teardrop pads is from https://github.com/NilujePerchut/kicad_scripts, thanks in advance.

teardrops

2.6.1 Basic operation

  1. If deselect all elements in Sprint-Layout before executing this plugin, teardrop will be applied to all THT pads. If only some pads need to be added teardrops, you can select the both pads and tracks you need firstly. Deleting teardrops is the same logical, you can delete all teardrops or only those in the selected region.
  2. By the legend in the GUI, it should be easier to understand the meaning of the three parameters. The base of the percentage is the outer diameter of the pad.

teardrop_main

2.6.2 Details

2.7 Rounded-track

This function can convert ordinary tracks of various angles into rounded tracks, which is very suitable for high-frequency circuits and audio circuits.

rounded_track

2.7.1 Basic operation

  1. If deselect all elements in Sprint-Layout before executing this plugin, all tracks will be converted to rounded-tracks if it can be. If only some tracks need to be converted, you can select the tracks you need firstly.
  2. The plugin supports three ways to convert rounded tracks:
    • Tangent arc: The two points at the specified distance from the turning point of the route are the starting point and the end point of the arc, and the arc is tangent to the two segments of the track. There are two distances, if the big one is not suitable for short tracks, the small one will be applied.
    • Three-point arc: The arc is drawn according to every three consecutive points, and the three points are all on the arc.
    • Bezier curve: The first point is the starting point, the third one is the end point, the intersection of the two segments of track is the control point, and a Bezier curve is drawn by these three points.

rounded_track_main

2.7.2 Details

  1. If a track has many turns, the plugin will try to convert it into several arcs every 3 points from the starting point. If some points do not meet the conditions, the plugin will skip them and continue to find a suitable point.
  2. The points on the tracks covered by pads or polygons of the same layer are considered as points that do not meet condition of the arc conversion, but you need to select the corresponding pads and polygons at the same time, because the plugin known nothing beside your selection range.

3. Others

  1. Sprint-Layout communicates with plugins by using temporary file. If no components are selected when launching a plugin, Sprint-Layout will export all components from the PCB to temporary file; otherwise, only the selected components will be exported.

  2. In addition to calling Sprint-Layout through plugin mode, it can also be executed independently. The "OK" button is disabled in independent mode. You can use the "Save As" button to save the generated symbol file to a text file. Then you can use "Import: Text Design Format File" menu item to import it.

  3. The software supports both Chinese and English interfaces, automatically detecting the system language at startup. If manual switching is required, you can modify it in the config.json file ("language":"en"/"zh-ch").

  4. If the plug-in cannot be loaded, please download and install the VC runtime library 2015/2017/2019/2022 (any one). If it still does not work, you may also need "Universal C Runtime for Windows". You can search it for links, or just use links below:

  5. About false positives of some antivirus softwares, since this program is developed using Python and then packaged into exe, this packaging mechanism may easily trigger false positives in some particularly sensitive antivirus software. If you have doubts, you can upload the file to VirusTotal or similar websites for virus scanning, or install Python yourself and directly execute the source code.

4. Changelog

v1.5.4

v1.5.3

v1.5.2

v1.5.1

v1.5

v1.4

v1.3

v1.2

v1.1

v1.0