Open frame3DD result file (*.OUT)
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: Open frame3DD result file (*.OUT)
to animate the result ... https://forum.freecadweb.org/viewtopic.php?f=18&t=39081
Re: Open frame3DD result file (*.OUT)
Got it. It would be perfect if the Show Result window could show which result load I chosed. The window title something like this Show result [Stastic1]
Two LCs
The second LC
Re: Open frame3DD result file (*.OUT)
To change the Show result window title, I went to Fem/femobjects/_FemResultMechanical.py
What's the name of the obj?
I'd also like to add a few more buttons to automaticaly animate the displacement, need one Animation label,Start,Stop button. Even better a Loop checkbox, Pause, FWD,RWD button. Have I asked too much? LOL.
Code: Select all
class _TaskPanelFemResultShow:
"""The task panel for the post-processing"""
def __init__(self, obj):
self.result_obj = obj
self.mesh_obj = self.result_obj.Mesh
self.form = FreeCADGui.PySideUic.loadUi(
FreeCAD.getHomePath() + "Mod/Fem/Resources/ui/ResultShow.ui"
)
#added this new line, but the obj.name is not right.
self.form.setWindowTitle(obj.name)
I'd also like to add a few more buttons to automaticaly animate the displacement, need one Animation label,Start,Stop button. Even better a Loop checkbox, Pause, FWD,RWD button. Have I asked too much? LOL.
Last edited by johnwang on Fri Mar 06, 2020 12:44 am, edited 1 time in total.
Re: Open frame3DD result file (*.OUT)
You could scavenge some temporary ones from How_to_install_macros ? Or perhaps @bernd has a better idea ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Open frame3DD result file (*.OUT)
I tried to add one button with this code below, but after click, it laspe the time and shows the final setting. Not show a few more middle steps.Kunda1 wrote: ↑Fri Mar 06, 2020 12:16 am You could scavenge some temporary ones from How_to_install_macros ? Or perhaps @bernd has a better idea ?
Code: Select all
#AniTest start
def AniStart(self):
numberFrames=10.
dfm = FreeCAD.FEM_dialog["disp_factor_max"]
for id in range(dfm+1):
value=float(id)
self.form.sb_displacement_factor.setValue(value)
self.update_displacement()
time.sleep(1./numberFrames) # modify the time here
#AniTest end
Re: Open frame3DD result file (*.OUT)
how about using github for code exchange?
Re: Open frame3DD result file (*.OUT)
I worked out how this Marco works. Need to give it my resultObj's Name.bernd wrote: ↑Thu Mar 05, 2020 6:08 am to animate the result ... https://forum.freecadweb.org/viewtopic.php?f=18&t=39081
Code: Select all
mesh_obj =FreeCAD.ActiveDocument.getObject('Stastic0')
for changing Show result window title, obj.name should be obj.Name
Re: Open frame3DD result file (*.OUT)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs