Moldflow Insight Forum
Welcome to Autodesk’s Moldflow Insight Forums. Share your knowledge, ask questions, and explore popular Moldflow Insight topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API: Export Analysis log in .txt format

1 REPLY 1
Reply
Message 1 of 2
mahesh_a_patil
210 Views, 1 Reply

API: Export Analysis log in .txt format

Hi,

Can someone help me to save the analysis log in .txt format? I am planning to save the analysis log in text and the extract required information from the log using Python for the report.

 

StudyDoc. ExportAnalysisLog "C:\\my project\\analysis.log"
 
mahesh_a_patil_0-1656334660822.png

 

 Thanks,
MaheshP
1 REPLY 1
Message 2 of 2
bernor_mf
in reply to: mahesh_a_patil

@mahesh_a_patil 

Hi Mahesh,

it is pretty forward.

Just change extension of analysis log file name to .txt.

 

SetLocale("en-us")
Dim SynergyGetter, Synergy
On Error Resume Next
Set SynergyGetter = GetObject(CreateObject("WScript.Shell").ExpandEnvironmentStrings("%SAInstance%"))
On Error GoTo 0
If (Not IsEmpty(SynergyGetter)) Then
	Set Synergy = SynergyGetter.GetSASynergy
Else
	Set Synergy = CreateObject("synergy.Synergy")
End If
Synergy.SetUnits "Metric"
Set StudyDoc = Synergy.StudyDoc
StudyDoc.ExportAnalysisLog "C:\\temp\\write_analysis_log.txt"

 

Hope this helps.

Regards,

Berndt

( If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report