Use the C #. net APIs to create a Structure GENSEC beam in E3D

Hi,All friends:

       We want to use the C #. net pattern to create a Structure GENSEC beam in E3D. Currently, the beam has been created, but the Profile information has not been set. I have tried several solutions, but have not been successful.

     From the development documentation, it appears that the PSPREF attribute was used for specification, but the cross-sectional attribute was not successfully specified after the program was run!

May I ask experts  what method to use?   Thanks!!!