Hi.
I have another method. Almost all steps are same as bernor_mf's solution.
Using "studymod" command with Windows batch file(.bat).
Moldflow Insight Help | The studymod utility | Autodesk
Base study file + modifier XMLfiles -> specific molding condition study files
37 XML files and a 37 line .bat file are needed.
(1)First, you specify TCODE from tcode.dat file in Moldflow folder or Macro recording
(2)Make modifier XML file each molding condition by some what your favorite macro. I will write down below.
Moldflow Insight Help | Example 1 - Editing process settings | Autodesk
(3)"studymod base.sdy mod01.xml" 37times in .bat file
(4)run .bat file in Synergy command shell
Regards.
-----Excel VBA Example to generate modifier XML file from Excel table format
Sub GenerateXML()
Dim header(20) As String, footer(5) As String
Let header(1) = "<?xml version=""1.0"" encoding=""utf-8""?>"
Let header(2) = "<StudyMod title=""Autodesk StudyMod"" ver=""1.00"">"
Let header(3) = " <UnitSystem>Metric</UnitSystem>"
Let header(4) = " <Material ID=" & """" & Sheets(1).Range("Q3") & """" & "/>"
Let header(5) = " <Property>"
Let header(6) = " <TSet>"
Let header(7) = " <!--Process controller-->"
Let header(8) = " <ID>30011</ID>"
Let header(9) = " <SubID>1</SubID>"
Let footer(1) = " </TSet>"
Let footer(2) = " </Property>"
Let footer(3) = "</StudyMod>"
Open ThisWorkbook.Path & "\" & Sheets(1).Range("E3") & ".bat" For Append As #2 'Windows batch file
For i = 1 To 10
Open ThisWorkbook.Path & "\" & Sheets(1).Range("W" & i + 6) For Append As #1 'Modifier XML file
For j = 1 To 9
Print #1, header(j)
Next j
'Write each molding condition to XML
For j = 14 To 17
Print #1, "<!--" & Sheets(1).Cells(5, j) & "-->"
Print #1, " <TCode>"
Print #1, " <ID>" & Sheets(1).Cells(6, j) & "</ID>"
Print #1, " <Value>" & Sheets(1).Cells(i + 6, j) & "</Value>"
Print #1, " </TCode>"
Next j
'(now j=18)
Print #1, "<!--" & Sheets(1).Cells(5, j) & "-->"
Print #1, " <TCode>"
Print #1, " <ID>" & Sheets(1).Cells(6, j) & "</ID>"
Print #1, " <Value>" & Sheets(1).Cells(i + 6, j) & "</Value>"
Print #1, " <Value>" & Sheets(1).Cells(i + 6, j + 1) & "</Value>"
Print #1, " <Value>" & Sheets(1).Cells(i + 6, j + 2) & "</Value>"
Print #1, " </TCode>"
'Write last 3 lines
For j = 1 To 3
Print #1, footer(j)
Next j
Close #1
' Append a Windows command line to the .bat file
Print #2, "studymod " & Sheets(1).Range("U" & i + 6) & " " & Sheets(1).Range("V" & i + 6) & " " & Sheets(1).Range("W" & i + 6)
Next i
Close #2
End Sub
