Model.loaddefaultattributevaluesfromxml#

Model.loaddefaultattributevaluesfromxml(xmlfilename)#

Loads the entity’s default setting values, mandatory values, show/hide values, and so on, that are defined in the specified XML file. If the file name is not specified, it unloads the previously loaded default settings.

Parameters:

xmlfilename (hwString) – The XML file path containing the entity default settings.

Example#

Load the default values specified in the “ EntityDefaults.xml “ file#
import hm
import hm.entities as ent

model = hm.Model()

model.loaddefaultattributevaluesfromxml(
    xmlfilename="D:/settingsfile/EntityDefaults.xml"
)