Eagle - Adding NETS in a schematic from a Script

Discussion in 'General Electronics Chat' started by jerseyguy1996, Mar 17, 2013.

  1. jerseyguy1996

    Thread Starter Active Member

    Feb 2, 2008
    206
    9
    Good morning! I have put together a 3.3V switchmode buck/boost converter circuit in Eagle and since I will probably use this for many LiPo powered projects going forward, I am trying to write a script that I can execute that will place everything on the schematic and board and route it for me. Basically I just want this:

    [​IMG]
    3.3V_REG_SCH by jg1996business, on Flickr

    and this:

    [​IMG]
    3.3V_REG_BRD by jg1996business, on Flickr

    to appear. I can't figure out how to add the green Net lines in the schematic editor through a script. Certainly I could add them in by hand but I feel there has to be some way to add the nets through the script. This is the script that I have written right now but the block of lines that begin with "NET" doesn't do anything. I have tried using "WIRE" as well which doesn't do anything.

    Code ( (Unknown Language)):
    1. GRID MM
    2. ADD TPS63001-3.3V-BUCK/BOOSTSON-10  REG3.3V R90 (48.26 15.24)
    3. ADD VLS3015-INDUCTORVLS-SERIES L1 R90 (35.56 17.78)
    4. ADD C-USC0603@rcl C1 R90 (48.26 43.18)
    5. ADD C-USC0603@rcl C2 R90 (48.26 50.8)
    6. ADD GND@supply2 SUPPLY1 R90 (66.04 38.1)
    7. ADD C-USC0603@rcl C3 (50.8 -12.7)
    8. ADD R-US_R0603@resistor R1 R90 (45.72 -22.86)
    9. ADD C-USC0603@rcl C4 (45.72 -33.02)
    10. LAYER 91
    11. NET VOUT (1.8 1.3) (1.8 1.4) (1.8 1.7) (1.8 2)
    12. NET VOUT (1.9 1.3) (1.9 1.4) (1.8 1.4)
    13. NET GND (2 1.3) (2.1 1.3) (2.1 1.5) (2.1 1.7) (2.1 2)
    14. NET GND (2.5 1.5) (2.1 1.5)
    15. BOARD
    16. GRID MM
    17. MOVE REG3.3V (72.15 9.3)
    18. ROTATE R90 REG3.3V
    19. LAYER 1
    20. POLYGON GND (68.05 17.55) (68 12.35) (69.8 12) -90 (71.4 11) (71.4 10.45) +90 (71.7 10.15) (72.85 10.15) (72.85 10.35) -90 (72.5 10.7) (72.5 12.6) (72.4 12.7) (71.15 12.7) -90 (71.1 12.75) (71.1 17.55) +90 (71.05 17.6) (68.1 17.6) +90 (68.05 17.55)
    21. POLYGON VINAUX (67.45 9.5) (67.45 10.3) -90 (67.55 10.4) (70.35 10.4) (70.35 9.5) -90 (70.15 9.3) (67.65 9.3) -90 (67.45 9.5)
    22. POLYGON GND (69.5 4.3) (69.5 5.95) -90 (70.3 6.75) (71.5 6.75) +90 (71.8 7.05) (71.8 8.15) -90 (72.65 8.25) -90 (72.7 8.15) (72.7 4.3) -90 (71.45 3.05) (70.75 3.05) -90 (69.5 4.3)
    23. POLYGON VOUT (74.51 4.14) (74.5 7.45) -90 (74.3 7.25) (73.5 7.55) +90 (73.4 8.25) (73.65 8.3) (74.95 8.2) -90 (76.25 6.9) (76.22 4.17) (75.9 3.99) (74.72 4.02) -90 (74.51 4.14)
    24. POLYGON L2 (74.7 8.75) (78.7 8.75) +90 (78.75 8.8) (78.75 9.3) +90 (78.6 9.45) (75.65 9.45) -90 (75.05 8.85) (74.75 8.85) +90 (74.7 8.8) (74.7 8.75)
    25. POLYGON L1 (74.6 9.85) (74.6 9.7) (74.9 9.7) +90 (75.25 10.05) (75.25 10.75) -90 (76.3 11.8) (78.8 11.8) +90 (78.95 11.95) (78.95 12.45) +90 (78.8 12.6) (75.8 12.6) +90 (75.2 12) (75.2 10.15) -90 (74.9 9.85) (74.6 9.85)
    26. POLYGON VBAT (73.55 10.25) (73.95 10.25) (74.2 10.3) +90 (74.55 10.75) (74.4 13.85) -90 (75.95 15.4) (76.15 15.4) +90 (76.2 15.45) (76.2 16.35) +90 (76.15 16.4) (73.7 16.4) +90 (73.6 16.3) (73.5 10.55) +90 (73.55 10.25)
    27. LAYER 16
    28. POLYGON GND (72.4 16.3) (68.1 16.3) (68.1 15.95) (66.15 15.05) +90 (65.25 14.15) (65.25 7.5) +90 (66.3 6.45) (69 6.45) -90 (69.25 6.2) (69.25 3.3) +90 (69.8 2.75) (76.35 2.75) +90 (76.45 2.85) (76.45 13.35) -90 (75.95 13.85) (75.95 14.8) +90 (75.7 15.05) (72.4 15.05) (72.4 16.3)
    Does anyone know how to add NETS via script in EAGLE?
     
  2. jerseyguy1996

    Thread Starter Active Member

    Feb 2, 2008
    206
    9
    Oops.......I figured it out. It was drawing the Nets but I had my units off. I had to add GRID IN before drawing the nets because my units were in inches.
     
Loading...