TAGGED: #python-#ironpython, script
-
-
May 29, 2024 at 9:05 pm
maja.wolkenstein
SubscriberI 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 am
mjmiddle
Ansys EmployeeYour 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 am
Sana Cop
Subscriberwaffle 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.
- Workbench license error
- Unexpected error on Workbench: Root element not found.
- ansys fluent error when opening it “unexpected license problem”
- access to path files denied error
- Unable to connect to the license
- Tutorial or Help for 2 way FSI
- Questions and recommendations: Septum Horn Antenna
- Moment Reaction probe with Large deformation
- Running multiple LS-DYNA simulations with batch files
- Ansys with Vmware and CPU configuration : I’m lost, good practice?
-
1937
-
839
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.