Checks whether adding a new G-code line is currently permitted.
This function is used to determine if the application is in a state where G-code line additions are allowed.
Typically, it is used before attempting to add lines to the G-code list.
planetcnc.gcode_line_add_allowed()
#! /usr/bin/env python import planetcnc if planetcnc.gcode_line_add_allowed(): print("G-code line addition is allowed.") else: print("G-code line addition is not allowed.")