NCC in Tcl not working - fixed for next version

Issue #564 new
nerdunio created an issue

Hi

I modified the isolate_gerber.FlatScript example script to test the ncc command and I get errors.

# #####################################################################################
# DESCRIPTION:
# Will isolate copper features in a Gerber file by creating surrounding paths around
# #####################################################################################

puts "\n**************** RUNNING an EXAMPLE SCRIPT = Isolate a Gerber file *******************\n"

# ----------- START: This is needed only for the examples ----------------
# first set the default location where to search for the files to be open and store it to the ROOT_FOLDER variable
set ROOT_FOLDER  [get_sys root_folder_path]

# calculate the resources path for the examples we need to run and store it inside the PATH varaible
set PATH ${ROOT_FOLDER}/assets/examples/files
# ----------- END: This is needed only for the examples ----------------

# set the working path to the path that holds the files we are going to work with
set_path $PATH

# load the GERBER file
open_gerber test.gbr -outname gerber_file

# ncc the Gerber file
ncc gerber_file -overlap 62 -tooldia 0.33 -method standard -connect 1 -margin 0 -all -outname top_ncc

# plot the objects so we can see them; not required for the script but in this script we want to see the results
plot_all

With the script above you should be able to recreate the error messages.

I’m on Beta_8.995, 54def9a

Thanks

Comments (3)

  1. Log in to comment