Package org.openpnp.model.eagle.xml

Examples of org.openpnp.model.eagle.xml.Smd


        for (Package pkg : packages.getPackage()) {
            System.out.println(String.format("<package id=\"%s\" name=\"%s\">", pkg.getName(), pkg.getName()));
            System.out.println(String.format("<footprint units=\"Millimeters\">"));
            for (Object o : pkg.getPolygonOrWireOrTextOrDimensionOrCircleOrRectangleOrFrameOrHoleOrPadOrSmd()) {
                if (o instanceof Smd) {
                    Smd smd = (Smd) o;
                    System.out.println(String.format("<pad x=\"%s\" y=\"%s\" width=\"%s\" height=\"%s\"/>", smd.getX(), smd.getY(), smd.getDx(), smd.getDy()));
                }
            }
            System.out.println(String.format("</footprint>"));
            System.out.println("</package>");
        }
View Full Code Here

TOP

Related Classes of org.openpnp.model.eagle.xml.Smd

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.