Operator :: X Y THETA DEPTH TH-M3

      Description : threaded hole for M3 screws
        Threaded Hole

      Definition :
        /TH-M3-layer1 {
         0 0 moveto
         +5 mm 0 exch rlineto
         0 0 moveto
         0 index +5 mm add neg 0 exch rlineto
         } def
        /TH-M3-layer2 {
         0 0 moveto
         +3.0 mm 2 div 0 rmoveto
         -3.0 mm 0 rlineto
         0 index neg 0 exch rlineto
         +3.0 mm 0 rlineto
         0 index 0 exch rlineto
         } def
        /TH-M3-layer3 {
         0 0 moveto
         +2.2 mm 2 div 0 rmoveto
         -2.2 mm 0 rlineto
         0 index +2 mm add neg 0 exch rlineto
         +2.2 mm 0 rlineto
         0 index +2 mm add 0 exch rlineto
        
         0 0 moveto
         0 index +2 mm add +1 mm add neg 0 exch rmoveto
         -2.2 mm 2 div +1 mm rlineto
        
         0 0 moveto
         0 index +2 mm add +1 mm add neg 0 exch rmoveto
         +2.2 mm 2 div +1 mm rlineto
         } def
        
        /TH-M3 {
         3 index 3 index translate
         1 index rotate
        
         TH-M3-layer1 CentreLine stroke
         TH-M3-layer2 HiddenLine stroke
         TH-M3-layer3 HiddenLine stroke
        
         1 index neg rotate
         3 index neg 3 index neg translate
         clear
         } def
        

      Required Definition :
        /inch {72 mul} def
        /cm {inch 2.54 div } def
        /mm {cm 10 div } def
        
        /VisibleLine { 0.25 mm setlinewidth [] 0 setdash } def
        /HiddenLine { 0.13 mm setlinewidth [0.5 3] 0 setdash } def
        /CentreLine { 0.13 mm setlinewidth [12 3 0.5 3] 0 setdash } def
        

      Reference :
      • ISO 6410-1:1993, Technical drowings - Screw threads and threaded parts - Part 1: General conventions
      • JIS B 0002-1:1998

    Example :