Mike Rife
Ansys Employee

Hi Haibin Wu

The capability to control Space Claim or Discovery Modeling from an external Python script is being actively developed as part of the PyAnsys project: https://docs.pyansys.com/version/stable/

Since 'PyGeometry' is not yet released you may want to start with the PyAnsys language library for the solver you will be using the geometry for in an analysis.  There are plenty of examples in each of the individual PyAnsys project pages.