TAGGED: #python-#ironpython, script
-
-
May 29, 2024 at 9:05 pmAnsys_WolkeSubscriber
I would like to export a result as avz and change the view which will be initially shown when you open the avz-file.
I am using the following code:Â Â
my_wd_path = this.Parent.Parent.WorkingDir
named_selection = Model.NamedSelections.Children[0]
Graphics.Camera.SetFit(named_selection)
 my_pp_obj = ExtAPI.DataModel.AnalysisList[0].Solution.Children[2].Children[1]
 my_pp_obj_name = my_pp_obj.Name.replace(' ','_')
 my_pp_obj.Activate()
 ExtAPI.Graphics.Export3D(os.path.join(my_wd_path,"%s.avz" %(my_pp_obj_name)))In the GUI the view is changed with the command above but not in the exported file.
I would like to have the defined view as the initial view when you open the avz file. However it is always the iso view which is shown.
How one can change the view for the avz file.
Â
Thanks
Wolke
-
June 1, 2024 at 6:07 ammjmiddleAnsys Employee
Your command doesn't look right. It should be:
settings = Ansys.Mechanical.Graphics.Graphics3DExportSettings() Â Â # only has background controls
ExtAPI.Graphics.Export3D(file_path, Graphics3DExportFormat, settings)However, there are no settings to determine the view orientation, and I don't think the avz file format even supports this. It's just a simple format that contains the deformed mesh shape and contour.
Any view would be controlled be the Ansys Viewer application. However, I see no scripting capabilities in this application and no way to set the default view orientation.
-
July 4, 2024 at 9:46 amSana CopSubscriber
waffle is a game you can play whenever you want right in the browser. The rules of the game are very simple: You just need to use the given characters. Change them so that they link together to make meaningful words.
-
- The topic ‘Change view orientation and export result as avz’ is closed to new replies.
- Speed up simulation in HFSS
- Workbench license error
- ansys fluent error when opening it “unexpected license problem”
- Unexpected error on Workbench: Root element not found.
- not able to get result
- Unable to recover corrupted project in Workbench
- Unattended (silent) installation of 2024R2 & -productfile switch
- Unexpected issues with SCCM deployment of Ansys Fluids and Structures 2024 R1
- Questions and recommendations: Septum Horn Antenna
- AQWA: Hydrodynamic response error
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.