You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
L5X export: Program elements are missing their Name attribute #20
When exporting to L5X, all <Program> elements are written with no Name attribute. Routines nested within them export their names correctly, but the parent program element does not.
Steps to Reproduce
fromacd.apiimportExportL5ximportxml.etree.ElementTreeasETexporter=ExportL5x("project.ACD", "build/")
root=ET.fromstring(exporter.project.to_xml())
forproginroot.find("Controller").find("Programs"):
print(prog.get("Name")) # prints None for every program
Expected Behavior
Each <Program> element should carry a Name attribute matching the program name in the ACD project:
The program name is available in the Python object model (it is used to populate routine names correctly), so this appears to be an omission in the XML serialization step.
Fixed by PR #28 (merged from cmwarre/fix/l5x-export-issues). All exported Program elements now include the Name attribute. Verified against ACDTestsWithAOI.ACD, ACDTestsNonRedundant.ACD, and ProjectTemplate.ACD — closing.
Activity
fix: correct L5X export for programs, AOIs, DataTypes, and tag filtering
Fix L5X export issues hutcheb#19-hutcheb#25: casing, missing Name, AO…
jpect commentedon Mar 27, 2026
Fixed in commit fb79240 on the jpect/acd fork. A follow-up PR will be submitted once the initial PR #18 is reviewed.
Fix L5X export issues hutcheb#19-hutcheb#25: casing, missing Name, AO…
cmwarre commentedon Apr 17, 2026
Fixed by PR #28 (merged from cmwarre/fix/l5x-export-issues). All exported Program elements now include the
Nameattribute. Verified againstACDTestsWithAOI.ACD,ACDTestsNonRedundant.ACD, andProjectTemplate.ACD— closing.fix: correct L5X export for programs, AOIs, DataTypes, and tag filtering
Fix L5X export issues hutcheb#19-hutcheb#25: casing, missing Name, AO…