Gets or sets the name text of a component within a dialog.
planetcnc.dlg_comp_name(component) planetcnc.dlg_comp_name(component, name)
#! /usr/bin/env python import planetcnc # Get the current name of a component current_name = planetcnc.dlg_comp_name(my_component) print("Current name:", current_name) # Set a new name for the component planetcnc.dlg_comp_name(my_component, "New Component Name") print("Component name updated.")