xtoolbox / pcad2kicad

Convert Altium Designer and PCAD library to KiCad
MIT License
118 stars 38 forks source link

padShapeType为 Polygon 类型的封装无法转换 #2

Open lazyguoguo opened 5 years ago

lazyguoguo commented 5 years ago
(padStyleDef "EF256X138TOP1"
    (holeDiam 0mil)
    (startRange 1)
    (endRange 2)
    (padShape (layerNumRef 1) (padShapeType Polygon) (shapeOutline
        (pt 93.504mil 68.898mil)
        (pt 127.953mil 34.449mil)
        (pt 127.953mil -34.449mil)
        (pt 93.504mil -68.898mil)
        (pt -93.504mil -68.898mil)
        (pt -127.953mil -34.449mil)
        (pt -127.953mil 34.449mil)
        (pt -93.504mil 68.898mil)
      )
    )
    (padShape (layerNumRef 2) (padShapeType Ellipse) (shapeWidth 0.0) (shapeHeight 0.0) )
    (padShape (layerType Signal) (padShapeType Ellipse) (shapeWidth 0.0) (shapeHeight 0.0) )
    (padShape (layerType Plane) (padShapeType NoConnect) (shapeWidth 0.0) (shapeHeight 0.0) )
    (padShape (layerType NonSignal) (padShapeType Oval) (shapeWidth 0mil) (shapeHeight 0mil) )
  )

PcbLib2.zip

xtoolbox commented 5 years ago

confirmed, the script only support the Rect and Oval pad shape, I'll try to support more pad shape