Skip to content

tobiasfalk/KiCAD-FreeCAD-TechDraw-Template-Generator

Repository files navigation

KiCAD FreeCAD TechDraw Template Generator

This small and crudely programmed Qt Program creates drawing sheet templates for FreeCAD and KiCAD that are mostly identical.

Aims

The aim of this Project was to create a unified template for KiCAD and FreeCAD TechDraw. The template is similar to the ISO 5457 standard for the general layout; ISO 7200 for the Titelblock; ASME Y14.35 for the optional revision history; and DIN 824 for the optional folding lines.

For the font osifont was used.

Prerequisites

Features

Styles

Frames

  • Plain (Hard Coded) Plain Frame
  • ISO5457 (Hard Coded) Frame ISO5457

Titleblocks

  • ISO7200 Style A (Hard Coded) TitleBlock ISO7200 Style A
  • ISO7200 Style B (Hard Coded) TitleBlock ISO7200 Style B
  • ISO7200 Style B (Hard Coded) TitleBlock_FreeCAD_Style_A

Limitations

KiCAD 8

  • No Circlys(Used for Projektion), the circles are made out of single lines a therfor makes rather big files

FreeCAD

  • SVG text height is not the same as the real height, Correction factor is applied

PDF, Qt SVG & Qt PNG

This is mostly meant for printing as a template for hand drawing.

  • Qt includes random spaces on Windows

Variable Docu

If the Text Name is one of the below the Drawers detect that and Fill in the folowing

Name FreeCAD KiCAD
SheetNumberNumbers "freecad:autofill", "sheet" ${#}/${##}
SheetNumber "freecad:autofill", "page_number" ${#}
NumberOfPages "freecad:autofill", "page_count" ${##}
LegalOwner "freecad:autofill", "organization" ${COMPANY}
DateOfIssue "freecad:autofill", "date" ${ISSUE_DATE}
RevisionIndex ${REVISION}
Title "freecad:autofill", "title" ${TITLE}
Scale "freecad:autofill", "scale"
Creator "freecad:autofill", "author"

Reference/Link Colection

Titleblock

Logo (Branding)

Icon Source

The Icon for the app was downloaded from: https://www.flaticon.com/de/kostenloses-icon/layout_7973492

To do