Automated Model Preprocessing for Structural Analysis