Model.hm_is_dirtiness_detection_enabled_for_includes#

Model.hm_is_dirtiness_detection_enabled_for_includes()#

An automatic mechanism marks includes dirty (modified) when they or entities belonging to them are changed. They get “cleaned” when exported (for includes) or saved as representations (for parts).

This query informs whether the automatic detection mechanism is active or not for a specific entity type. By default, if not manually disabled, it’s always active. This is useful to be asked before manual manipulation of the automatic mechanism, to store and restore the previous state.

Returns:

Example#

Ask whether the automatic detection mechanism is active for include files#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_is_dirtiness_detection_enabled_for_includes()

print("isEnabled", result.isEnabled)