(ASCII Template "GP_PadStyle Naming Convention")
(Version 1)
(Created 2002 02 07 12 00 00)
(Modifed 2002 02 07 12 00 00)
(Family "ADI_Standard")
(Revision "A1")
(Creater "Accelerated Designs, Inc.")
(Comment "")
(Image "")
(Description "Pad Style Naming Convention")
(Units Mil)
(Variables
    (String "Shape" 'GP_PSH' "")
    (Number "Pad Width X: GP_PADW" 'GP_PADW' 0)
    (Number "Pad Height Y: GP_PADH" 'GP_PADH' 0)
    (Number "Default Drill Size: GP_DRL" 'GP_DRL' 0)
    (Number "Plated" 'GP_KPL' 0)
    (Number "Solder Mask Web Minimum" 'GP_SMWEB' 0)
    (Temporary String "pad shape letter" 'GP_PSHL' "E")
    (Temporary String "Soldermask Modified" 'GP_WMIN' "")
    (Temporary String "pad style name" 'GP_PADNAME' "*")
)
(Part
    (Variable 'GP_WMIN' [String=""]
        (DoIf [Number='GP_SMWEB']=[Number=0])
    )
    (Variable 'GP_WMIN' [String="SM"]
        (DoIf [Number='GP_SMWEB']=[Number=1])
    )
    (Variable 'GP_WMIN' [String="SM2"]
        (DoIf [Number='GP_SMWEB']=[Number=2])
    )
    (Variable 'GP_PSHL' [String="E"]
        (DoIf [String='GP_PSH']=[String="Round"])
    )
    (Variable 'GP_PSHL' [String="S"]
        (DoIf [String='GP_PSH']=[String="Square"])
    )
    (Variable 'GP_PSHL' [String="R"]
        (DoIf [String='GP_PSH']=[String="Rectangle"])
    )
    (Variable 'GP_PSHL' [String="O"]
        (DoIf [String='GP_PSH']=[String="Oblong"])
    )
    (Variable 'GP_PADNAME' [String='GP_PSHL'+"X"+[Number=Int('GP_PADW'*{Rounder}*{ToUnits})/{Rounder}]+"Y"+[Number=Int('GP_PADH'*{Rounder}*{ToUnits})/{Rounder}]+"D"+[Number=Int('GP_DRL'*{Rounder}*{ToUnits})/{Rounder}]+"P"+'GP_WMIN']
        (DoIf [Number='GP_DRL']>[Number=0])
    )
    (Variable 'GP_PADNAME' [String='GP_PSHL'+"X"+[Number=Int('GP_PADW'*{Rounder}*{ToUnits})/{Rounder}]+"Y"+[Number=Int('GP_PADH'*{Rounder}*{ToUnits})/{Rounder}]+"D0T"+'GP_WMIN']
        (DoIf [Number='GP_DRL']<=[Number=0])
    )
)



