I attempted to remove the total dimension from selected 3D dimension elements using the following script:
import element_controller as ec
import cadwork as cw
import dimension_controller as dc
selected_id_list = ec.get_active_identifiable_element_ids()
dc.set_total_dimension(selected_id_list, 0)
However, after running the script, the total dimension remains visible. I confirmed that the selected IDs are valid and correspond to 3D dimensions.