Rename Project in Mechanical Based On Project Name
Run the script to rename project in Mechanical based on project name.
import os
import re
workDir = ExtAPI.DataModel.AnalysisList[0].WorkingDir
head = re.split('_files',workDir)[0]
projname = os.path.split(head)[1]
ExtAPI.DataModel.Project.Name = projname