#======================== Output preparation: output the values prepared in the CMSD information model of this model ====================================================#
ifnotcmsdFile:
datafile=(os.path.join(os.path.dirname(os.path.realpath(__file__)),CMSDFileName))#It defines the name or the directory of the XML file that is manually written the CMSD information model
tree=et.parse(datafile)#This file will be parsed using the XML.ETREE Python library
TTR.write('CMSD_AssemblyDismantle_Output.xml',encoding="utf8")#It writes the element tree to a specified file, using the 'utf8' output encoding
#================================= Output preparation: output the updated values in the JSON file of this example =========================================================#
ifnotjsonFile:
jsonFile=open(os.path.join(os.path.dirname(os.path.realpath(__file__)),JSONFileName),'r')#It opens the JSON file