System and method for utilizing a drawing specification for motion
control. A plurality of elements in a drawing specification may be
automatically identified. The elements may include one or more lines,
polygons, arcs, splines, alphanumeric characters, and/or ellipses.
Additionally, the drawing specification may be a drawing or digital
drafting file, e.g., an AutoCAD file, among others. An order of the
plurality of elements may be automatically determined according to a
sorting algorithm. The sorting algorithm may include a geometric and/or
radial sorting algorithm. The radial sorting algorithm may specify the
order of the elements according to nesting, e.g., nesting order and
depth, and/or distance from the center of the drawing specification. Code
may be automatically generated for implementing motion control based on
the identified elements and the determined order. The generated code may
include inserted operations such as raise, lower, and move operations,
among others.