From 79694d99565a85efa94a2f5a2e0be868cdd4c085 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Thu, 16 Nov 2023 11:33:21 -0500 Subject: [PATCH] [TD]Standard Line Styles - data files --- .../LineGroup/ANSI.Y14.2M.1992.ElementDef.csv | 9 +++++++ .../LineGroup/ANSI.Y14.2M.1992.LineDef.csv | 14 +++++++++++ .../LineGroup/ASME.Y14.2.2008.ElementDef.csv | 14 +++++++++++ .../LineGroup/ASME.Y14.2.2008.LineDef.csv | 25 +++++++++++++++++++ .../LineGroup/ISO.128.20.1996.ElementDef.csv | 10 ++++++++ .../LineGroup/ISO.128.20.1996.LineDef.csv | 19 ++++++++++++++ 6 files changed, 91 insertions(+) create mode 100644 src/Mod/TechDraw/LineGroup/ANSI.Y14.2M.1992.ElementDef.csv create mode 100644 src/Mod/TechDraw/LineGroup/ANSI.Y14.2M.1992.LineDef.csv create mode 100644 src/Mod/TechDraw/LineGroup/ASME.Y14.2.2008.ElementDef.csv create mode 100644 src/Mod/TechDraw/LineGroup/ASME.Y14.2.2008.LineDef.csv create mode 100644 src/Mod/TechDraw/LineGroup/ISO.128.20.1996.ElementDef.csv create mode 100644 src/Mod/TechDraw/LineGroup/ISO.128.20.1996.LineDef.csv diff --git a/src/Mod/TechDraw/LineGroup/ANSI.Y14.2M.1992.ElementDef.csv b/src/Mod/TechDraw/LineGroup/ANSI.Y14.2M.1992.ElementDef.csv new file mode 100644 index 0000000000..54c07892b2 --- /dev/null +++ b/src/Mod/TechDraw/LineGroup/ANSI.Y14.2M.1992.ElementDef.csv @@ -0,0 +1,9 @@ +# ANSI Y14.2 standard line element definitions +# NOTE: saving this file from a spreadsheet program (like LibreOffice Calc) may +# append empty cells to the ends of the lines. this can confuse FreeCAD. +# NOTE: ANSI does not number line definitions. The line numbers assigned here are an +# invention for our purposes +# element name, length in mm +Gap,1.5 +Dash,3 +LongDash,20 diff --git a/src/Mod/TechDraw/LineGroup/ANSI.Y14.2M.1992.LineDef.csv b/src/Mod/TechDraw/LineGroup/ANSI.Y14.2M.1992.LineDef.csv new file mode 100644 index 0000000000..dcbf0b1ef6 --- /dev/null +++ b/src/Mod/TechDraw/LineGroup/ANSI.Y14.2M.1992.LineDef.csv @@ -0,0 +1,14 @@ +# ANSI Y14.2 standard line definitions +# NOTE: saving this file from a spreadsheet program (like LibreOffice Calc) may +# append empty cells to the ends of the lines. this can confuse FreeCAD. +# NOTE: ANSI does not number line definitions. The line numbers assigned here are an +# invention for our purposes +# line number, description, graphical element list +# equivalent to ISO #1 +1,Continuous,n/a +# roughly ISO #2 +2,Dashed,Gap,Dash,Gap +# roughly ISO #8 +3,LongDashedDashed,LongDash,Gap,Dash,Gap +# roughly ISO #9 +4,LongDashedDoubleDashed,LongDash,Gap,Dash,Gap,Dash,Gap diff --git a/src/Mod/TechDraw/LineGroup/ASME.Y14.2.2008.ElementDef.csv b/src/Mod/TechDraw/LineGroup/ASME.Y14.2.2008.ElementDef.csv new file mode 100644 index 0000000000..77effc52e2 --- /dev/null +++ b/src/Mod/TechDraw/LineGroup/ASME.Y14.2.2008.ElementDef.csv @@ -0,0 +1,14 @@ +# ASME Y14.2-2008 line element definitions +# NOTE: ASME Y14.2-2008 explicitly does not define the lengths of line elements, +# but recommends legths that "depict the appropriate line convention commensurate +# with the drawing size and scale". The values used here are generally those +# from ISO128. +# NOTE: saving this file from a spreadsheet program (like LibreOffice Calc) may +# append empty cells to the ends of the lines. this can confuse FreeCAD. +# element name, length in pen widths +Dot,1 +Gap,3 +ShortDash,6 +Dash,12 +LongDash,24 +Space,12 diff --git a/src/Mod/TechDraw/LineGroup/ASME.Y14.2.2008.LineDef.csv b/src/Mod/TechDraw/LineGroup/ASME.Y14.2.2008.LineDef.csv new file mode 100644 index 0000000000..191919716a --- /dev/null +++ b/src/Mod/TechDraw/LineGroup/ASME.Y14.2.2008.LineDef.csv @@ -0,0 +1,25 @@ +# per ASME Y14.2-2008 Figure 1 Width and Types of Lines +# NOTE: saving this file from a spreadsheet program (like LibreOffice Calc) may +# append empty cells to the ends of the lines. this can confuse FreeCAD. +# line number, line name, dash pattern +# +1,Visible,n/a +2,Hidden,Dash,Gap +3,Section,n/a +4,Center,LongDash,Space,Dash,Space +# Symmetry line is not completely implemented +5,Symmetry,LongDash,Space,Dash,Space +6,Dimension,n/a +7,Extension,n/a +8,Leader,n/a +9,Cutting-plane,Dash,Gap +10,Viewing-plane,Space,Dash,Space,Dash,Space,LongDash,Space +# noline is not implemented +11,Other plane,noline +# Break line is not implemented +12,Break 1,n/a +13,Break 2,n/a +14,Phantom,LongDash,Space,Dash,Space,Dash,Space +15,Stitch 1,Dash,Space +16,Stitch 2,Dot,Gap +17,Chain,LongDash,Space,Dash,Space diff --git a/src/Mod/TechDraw/LineGroup/ISO.128.20.1996.ElementDef.csv b/src/Mod/TechDraw/LineGroup/ISO.128.20.1996.ElementDef.csv new file mode 100644 index 0000000000..4db69e39d7 --- /dev/null +++ b/src/Mod/TechDraw/LineGroup/ISO.128.20.1996.ElementDef.csv @@ -0,0 +1,10 @@ +# ISO 128-20 standard line element definitions +# NOTE: saving this file from a spreadsheet program (like LibreOffice Calc) may +# append empty cells to the ends of the lines. this can confuse FreeCAD. +# element name, length in units of pen width +Dot,1 +Gap,3 +ShortDash,6 +Dash,12 +LongDash,24 +Space,18 diff --git a/src/Mod/TechDraw/LineGroup/ISO.128.20.1996.LineDef.csv b/src/Mod/TechDraw/LineGroup/ISO.128.20.1996.LineDef.csv new file mode 100644 index 0000000000..91a66015b5 --- /dev/null +++ b/src/Mod/TechDraw/LineGroup/ISO.128.20.1996.LineDef.csv @@ -0,0 +1,19 @@ +# ISO128-20 standard line definitions +# NOTE: saving this file from a spreadsheet program (like LibreOffice Calc) may +# append empty cells to the ends of the lines. this can confuse FreeCAD. +# ISO line number, description, graphical element list +1,Continuous,n/a +2,Dashed,Gap,Dash,Gap +3,DashedSpaced,Dash,Space +4,LongDashedDotted,LongDash,Gap,Dot,Gap +5,LongDashedDoubleDotted,LongDash,Gap,Dot,Gap,Dot,Gap +6,LongDashedTripleDotted,LongDash,Gap,Dot,Gap,Dot,Gap,Dot,Gap +7,Dotted,Dot,Gap +8,LongDashShortDash,LongDash,Gap,ShortDash,Gap +9,LongDashDoubleShortDash,LongDash,Gap,ShortDash,Gap,ShortDash,Gap +10,DashedDotted,Dash,Gap,Dot,Gap +11,DoubleDashedDotted,Gap,Dash,Gap,Dash,Gap,Dot,Gap +12,DashedDoubleDotted,Dash,Gap,Dot,Gap,Dot,Gap +13,DoubleDashedDoubleDotted,Dash,Gap,Dash,Gap,Dot,Gap,Dot,Gap +14,DashedTripleDotted,Dash,Gap,Dot,Gap,Dot,Gap,Dot,Gap +15,DoubleDashedTripleDotted,Dash,Gap,Dash,Gap,Dot,Gap,Dot,Gap,Dot,Gap