SolidWorks Vb.Net "AddIn" - Get Sketch Plane From Sketch1

Can anybody help?

 

Does anybody know the correct SolidWorks Vb.Net "AddIn" code to get the "Sketch Plane" from Sketch1?

 

The Sketch Plane could be any of the following three...

 

"Front Plane",  "Top Plane",  "Right Plane"
 

I have tried ChatGpt & Copilot but I cannot get them to work.

 

Many thanks in advance!

 

Darren