Hi @Philippe Ebinger,

take a look into the %Studio.Project class, there is a method called Export, which gives you exactly what you need on the console like:

Set project = ##class(%Studio.Project).%OpenId("MyProject")
Do project.Export("MyProject.xml")
<Class name="MyProject.M">...</Class>
<Project name="MyProject"...</Project>
<Class name="MyProject.Pendenz">...</Class>
<Class name="MyProject.Protokoll">...</Class>