Subassembly composer enumeration - setting consistent keys to the inputs

Hi @Soojung.Kim,

After changing the .pkt to a .zip and unzipping it, you could try parsing the .emd file using the standard Python ElementTree module since it is formatted as an XML. Here’s an example:

import xml.etree.ElementTree as ET

file_name = IN[0]
attributes=[]
  
xml = ET.parse(file_name)
root = xml.getroot()
for group in root.iter('EnumItem'):
	attributes.append(group.attrib)

OUT = attributes

1 Like