How to export the layout or component?

Is there a way to export the vcmx model to a different format model via a python script instead of using the “Export” command?

Still have to use .NET or C# methods to achieve? I only know how to use Python, is there a basic tutorial for .NET and C#?