The structural optimisation of aircraft wings remains a critical task in modern, lightweight aeronautical design, where computational efficiency must be balanced against modeling fidelity. To that end, this paper presents an automated framework for the parametric finite element modeling (FEM) and surrogate-based optimisation (SBO) of an aircraft wing using MSC Patran and Nastran. The geometry and structural layout of the wing are generated through Patran Command Language (PCL) scripting, enabling fully parametric control of ribs, spars, stringers and thickness distributions. The automated model is then linked to MSC Nastran for static, global linear buckling and dynamic aeroelastic (flutter) analyses. To reduce the computational cost associated with repeated commercial FEM-based evaluations, surrogate models are constructed and used to drive the structural optimisation process. The framework is demonstrated on a representative high aspect-ratio wing structure, showing significant reductions in design cycle time while maintaining accuracy in predicting mass and performance metrics. The results highlight the potential of integrating surrogate modeling with commercial FEM software in an automated workflow, offering a practical and scalable approach for aerospace structural design and optimisation.