I am trying to use the option RSEvent.GetResultFileName() to return the .afu file associated with the event but failing miserably.
Could someone poinyt me in the right direction?
Dim RespSimSolFound As CAE.ResponseSimulation.Solution For Each myRespSimCol As CAE.ResponseSimulation.Solution In theRespSimManager.Solutions theLW.WriteLine("Resp Sim Name is:" & myRespSimCol.GetSolutionName) For Each myRSEvent As CAE.ResponseSimulation.RSEvent In RespSimSolFound.GetEvents theLW.WriteLine(" Event Name is:" & myRSEvent.GetEventName) Dim thefileType As CAE.ResponseSimulation.RSEvent.ResultFileType = CAE.ResponseSimulation.RSEvent.ResultFileType.Func
tionResponse Dim sTheAFUFilePath As String = IntheRSEvent.GetResultFileName(thefileType) theLW.WriteLine(" AFU File is:" & sTheAFUFilePath) Next Next
Solved! Go to Solution.
Assuming that there are no copy/paste errors in your example, where did "IntheRSEvent" come from? The RSEvent objects you're looping over are named myRSEvent.
Dim sTheAFUFilePath As String = IntheRSEvent.GetResultFileName(thefileType)
Dim sTheAFUFilePath As String = myRSEvent.GetResultFileName(thefileType)
that's me not paying attention (at all!). Rather embarrassing. Thanks a lot