open_file.FlatScript 704 B

12345678910111213141516171819
  1. # ----------- START: This is needed only for the examples ----------------
  2. # first set the default location where to search for the files to be open and store it to the ROOT_FOLDER variable
  3. set ROOT_FOLDER [get_sys root_folder_path]
  4. # calculate the resources path for the examples we need to run and store it inside the PATH varaible
  5. set PATH ${ROOT_FOLDER}/assets/examples/files
  6. # ----------- END: This is needed only for the examples ----------------
  7. # set the working path to the path that holds the files we are going to work with
  8. set_path $PATH
  9. # load the GERBER file
  10. open_gerber test.gbr
  11. # load the Excellon ifle
  12. open_excellon test.txt
  13. # plot them all so we can see them on canvas
  14. plot_all