I'll admit that I'm far less familiar with the FEA features of VSP. However, I'm wondering if the untrimmed IGES Structure export file isn't what you want.
Looking into the API documentation and checking in the API itself, I think you want to run the FEA as an analysis to create the mesh THEN export that trimmed mesh to IGES. The FEA structure/assembly can be thought of a collection of the parameters that define your structure but it isn't the structure object itself. That is produced when you run the "FeaMeshAnalysis" from the analysis manager. If you use your IDE or script to show all the analyses with "vsp.ListAnalysis()" you get the full list of the available analyses you can run on your model:
vsp.ListAnalysis()
Out[2]:
('BladeElement',
'CpSlicer',
'CompGeom',
'DegenGeom',
'PlanarSlice',
'DegenGeomMesh',
'EmintonLord',
'GeometryAnalysis',
'MassProp',
'FeaMeshAnalysis',
'Projection',
'SurfacePatches',
'WaveDrag',
'VSPAERODegenGeom',
'VSPAEROComputeGeometry',
'VSPAEROSinglePoint',
'VSPAEROSweep',
'VSPAEROReadPreviousAnalysis',
'ParasiteDrag',
'SurfaceIntersection',
'CfdMeshAnalysis')
Then if you look at all available inputs to an analysis with "vsp.GetAnalysisInputNames('Analysisname')" like so:
vsp.GetAnalysisInputNames('FeaMeshAnalysis')
Out[3]:
('BaseLen',
'CADLabelDelim',
'CADLabelID',
'CADLabelName',
'CADLabelSplitNo',
'CADLabelSurfNo',
'CADLenUnit',
'CALCULIXFileFlag',
'CALCULIXFileName',
'CURVFileFlag',
'CURVFileName',
'ExportRawFlag',
'GMSHFileFlag',
'GMSHFileName',
'GrowthRatio',
'HalfMeshFlag',
'IGESFileFlag',
'IGESFileName',
'MASSFileFlag',
'MASSFileName',
'MaxGap',
'MinLen',
'NASTRANFileFlag',
'NASTRANFileName',
'NCircSeg',
'NKEYFileFlag',
'NKEYFileName',
'P3DFileFlag',
'P3DFileName',
'RelCurveTol',
'RigorLimit',
'SRFFileFlag',
'SRFFileName',
'STEPFileFlag',
'STEPFileName',
'STEPRepresentation',
'STEPTol',
'STLFileFlag',
'STLFileName',
'XYZIntCurveFlag')
My concern/question is whether executing the analysis only builds the mesh and then stops -or- if the analysis manager assumes that you want to export the CAD format because the flags are active or not... If the FEA Mesh analysis only creates the mesh, then the CAD export side of this may be missing from the API. I may be confusing the FeaMeshAnalysis and the ComputeFeaMesh function in the FEA Mesh API itself (
https://openvsp.org/api_docs/latest/group___f_e_a_mesh.html#ga3ac963c203ea4472f43af51f07bfeedb). I suggest that you try both of these approaches and see what works. Start very simply with a wing structure skin or something and then try to run each of these in a few combinations to see what happens. For example, you may find that running the FeaMeshAnalysis produces the analysis result that you can then use the Results Manager to write out as CAD.