TAGGED: #python-#ironpython, script
-
-
May 29, 2024 at 9:05 pmAnsys_WolkeBbp_participant
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.
-
- You must be logged in to reply to this topic.
- RSS is disabled.
- ANSYS Mechanical won’t open and stays on Blank Gray Screen (Path environment va)
- Elastic Licensing DNS gateway changes
- Poor quality mesh at trailing edge for 3d wing
- Ansys 2024 R1 – The installation completed with warnings/errors.
- LS-Dyna Beam elements outputs
- Fluent
- Not find helic___[]_.tgz file
-
416
-
187
-
167
-
156
-
140
© 2024 Copyright ANSYS, Inc. All rights reserved.