#--------------------------------------------------------------------- #Name: d0005_all_case_create_mesh.py #Menu-en: All case create mesh #Menu-ja: 全ケースのメッシュ生成 #Type: Python #Create: Jul. 31, 2016 JSOL Corporation #Comment-en: Create mesh for all cases if the case does not have a mesh. #Comment-ja: メッシュが存在しない全てのケースでメッシュを生成する。 #Copyright: (c) JSOL Corporation. All Rights Reserved. #--------------------------------------------------------------------- import designer app = designer.GetApplication() study = app.GetCurrentStudy() numCase = study.GetDesignTable().NumCases() for case in range(0, numCase): study.SetCurrentCase(case) if study.HasMesh() == False: study.CreateMesh()