I have being using this code on my X1C and P1P for quite sometime now.
I have made changes to work with the A1.
Please run a test print to see the results.
Use at your own risk.
I am including the GCode in txt, in case you want to make changes.
To use this GCode, open the 3mf file attached. Click on edit the printer icon, go to Machine GCode, and copy the Change filament G-code to your file, or use my.