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: 

Macros in MPI

1 REPLY 1
Reply
Message 1 of 2
andreans76
440 Views, 1 Reply

Macros in MPI

Hi All,

I'm using MPI 6 and I want to make a Macro to recall which is gonig to save 10 images in sequence for the open analysis result (for example a fill analysis) after having asked which is the root name to be used : how can I do this ?

 

 

1 REPLY 1
Message 2 of 2
xd200800
in reply to: andreans76

May it helps.

SetLocale("en-us")
Set Synergy = CreateObject("synergy.Synergy")
Synergy.SetUnits "Metric"
Set PlotManager = Synergy.PlotManager()
Set Viewer = Synergy.Viewer()

'save Plot 1
Set Plot1 = PlotManager.FindPlotByName2("Air traps", "Air traps")
Viewer.ShowPlot Plot1
Viewer.SaveImage "D:\myImage1.jpg"

'save Plot2
Set Plot2 = PlotMgr.FindPlotByName2("Time to reach ejection temperature", "Time to freeze")
Viewer.ShowPlot Plot2
Viewer.SaveImage "D:\myImage2.jpg"

 

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

Post to forums  

Autodesk Design & Make Report