Direkt zum Hauptinhalt

Convert to Dashes

This extension can be used to create bridges / tabs for a laser cutter job. We can define a custom line style (dashed) and convert it using this extension.

See also Lasercut bridges without using extensions and Create Links (Breakaway Connectors).

Example 1

Draw some path

grafik.png

Change stroke style to dashes

grafik.png grafik.png

Run extension

Each "virtual" dash will be split into a real segmented line

grafik.png

Example 2

Set the document units to mm

Draw some curve and measure it's length in mm

grafik.png

Set custom line style ("Dashes" → "Custom")

grafik.png

Create a gap

Edit XML style to create a 2 mm gap. In the example line length is 168.71 mm. If we want a single 2 mm gap we set stroke dash array to 168.71mm - 2mm = 166.71mm

grafik.png

grafik.png

If we want three gaps in a path with length of 168.71 mm and a gap length of 2 mm we set the stroke-dasharray to: 80.355 2.0 → because 3 * 80.355 mm + 2 * 2.0 mm  = 168.71 mm

grafik.png

If we want three gaps in a path with length of 168.71 mm and a gap length of 2 mm we set the stroke-dasharray to: 50.236 2.0 → because 3 * 50.236 mm + 3 * 2.0 mm  = 168.71 mm

grafik.png

Run the "Convert to Dashes" extension