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: 

Problem with fiber-orientation result

2 REPLIES 2
Reply
Message 1 of 3
MFI-MaF
430 Views, 2 Replies

Problem with fiber-orientation result

Hi everyone,

 

I've got some problems with the fiber orientation results i get with my macro:

 

UserInput0(1) = Inputbox("Bitte x-Koordinaten des Startpunktes eingeben: (XX)")
UserInput0(2) = Inputbox("Bitte y-Koordinaten des Startpunktes eingeben: (YY)")
UserInput0(3) = Inputbox("Bitte z-Koordinaten des Startpunktes eingeben: (ZZ)")
UserInput1(1) = Inputbox("Bitte x-Koordinaten des Endtpunktes eingeben: (XX)")
UserInput1(2) = Inputbox("Bitte y-Koordinaten des Endtpunktes eingeben: (YY)")
UserInput1(3) = Inputbox("Bitte z-Koordinaten des Endtpunktes eingeben: (ZZ)")
'UserInput1 = Inputbox("Bitte Koordinaten des Endpunktes eingeben: (XX, YY, ZZ)")
Pfad = Inputbox ("Bitte Pfad und Name der Resultfile angeben (C:\...\DATEINAME.txt")

     setLocale("en-US")
     Set Synergy = CreateObject("synergy.Synergy")
     Synergy.SetUnits "Metric"
     Set PlotManager = Synergy.PlotManager()
     Set Viewer = Synergy.Viewer()
     Set Plot = PlotManager.CreatePlotByDsID(4021, True)
     Plot.SetXYPlotShowLegend True
     Set Viewer = Synergy.Viewer()
     Set Plot = Viewer.ActivePlot()
     Set Plot = PlotManager.FindPlotByName2("Fiber orientation tensor:Probe XYPlot", "Fiber orientation tensor on nodes (3D)")
     Set VectorA = Synergy.CreateVector()
     Set VectorB = Synergy.CreateVector()
     VectorA.SetXYZ  ""& UserInput0(1),"" & UserInput0(2),"" & UserInput0(3) 							'ERSTE VEKTORKOORDINATE (Startpunkt des Vektors)'
     VectorB.SetXYZ  ""& UserInput1(1),""& UserInput1(2),""& UserInput1(3) 							'ZWEITE VEKTORKOORDINATE (Endpunkt des Vektors)'
     Plot.AddProbePlotProbeLine VectorA, VectorB
     Plot.Regenerate 'Erneute Generation des probePlots, um Datenpunkte darzustellen'
     Viewer.ShowPlot Plot
     Plot.SaveXYPlotCurveData ("" & Pfad )							'AUSGABE DER ERGEBNISDATEI'

  

 The first and the biggest problem is, that MF don't exactly uses my input coorinates. It puts the "point" at a place where my Mold-Surface is, not deeper, (the Mold is not visible). So i don't understand why it does this:

fo.jpg

 

The blue point is the point where MF places the point and the red point are the coordinates which I have input.

 

 

My second problem is, that when I create a LCS and activate it, Moldflow completly ignores it when I put in my coordinates. It uses the old system.

 

 

Hope you can help me.

 

Thanks

2 REPLIES 2
Message 2 of 3
MFI-MaF
in reply to: MFI-MaF

Hi,

 

can anybody help me to solve this problem? I don't get it working correctly.

 

 

Thanks

Message 3 of 3
MFI-MaF
in reply to: MFI-MaF

Is it possible that this macro don't work with a simulation which is with a mold-mesh?

 

 

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

Post to forums  

Autodesk Design & Make Report