Run openradioss_gui within FreeCAD #41
Replies: 5 comments 2 replies
-
I first run into a problem that the main window in FreeCAD is not wide enough, only shows part of the control elements. I have to drag to enlarge it. |
Beta Was this translation helpful? Give feedback.
-
I just made a Pull request to make the gui easy to be started by 3rd party code. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the merge. But I found an error. Forgot to change gui. to self. for this line: ` self.job_file_entry=gui.Window.file('Job file (.rad, .key, or .k, or .inp)', gui.select_file, gui.Window.icon_folder)
Should delete the first two lines and un-comment the 3rd line. I am preparing input file for OR with FreeCAD, so I know the name. I want to pass it into the gui class in FreeCAD like this:
Then in the gui class, something like this: `class openradioss_gui:
` I also want to pass the Path to class window in gui_def.py and class JobWindow in job_window.py to find the icon file. |
Beta Was this translation helpful? Give feedback.
-
my pending merge already fixed the first issue I don't know enough python to understand the implications of the second part, is the intention to effectively pass the filename directly into the gui so you don't need to browse for it? |
Beta Was this translation helpful? Give feedback.
-
Pull to add icon path. After this, the gui could be called with FreeCAD macro. The FreeCAD macro to start OpenRadioss_gui is here: |
Beta Was this translation helpful? Give feedback.
-
Tried to install openradioss_gui into fc. Looks good.
Beta Was this translation helpful? Give feedback.
All reactions