Share
 
 

Parameters in NC programs

NC programs are expressed using the NC Program header, summary and toolpath pages. Use the ${entity('ncprogram', ncprogram.Name).*} syntax if NC program parameters are required. This can be shortened to ${ncprogram.*}.

Note: The ncprogram.* function is only available in setup sheets. If you use ncprogram on its own, it does not return the entity: you must use ('ncprogram', ncprogram.Name).

The following examples illustrate the correct syntax:

  • Use the parameter function number_nctoolpaths with one argument of type entity. This can be used as ${number_nctoolpaths(entity('ncprogram', ncprogram.Name))}. The following is incorrect: ${number_nctoolpaths(ncprogram)}.
  • The OutputWorkplane.Name parameter under the NC Program returns the name of the output workplane for that NC Program. The usual way to do this in macros and setup sheets is ${entity('ncprogram', ncprogram.Name).OutputWorkplane.Name}. This can be shortened in setup sheets to ${ncprogram.OutputWorkplane.Name}.
  • To return the name of the NC Program entity, use ${ncprogram.Name}.

Was this information helpful?