


{"id":369142,"date":"2024-05-29T21:05:25","date_gmt":"2024-05-29T21:05:25","guid":{"rendered":"\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/"},"modified":"2024-05-29T21:12:54","modified_gmt":"2024-05-29T21:12:54","slug":"change-view-orientation-and-export-result-as-avz","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/","title":{"rendered":"Change view orientation and export result as avz"},"content":{"rendered":"<p>I would like to export a result as avz and change the view which will be initially shown when you open the avz-file.<\/p>\n<p>I am using the following code:&nbsp; &nbsp;<\/p>\n<p>my_wd_path = this.Parent.Parent.WorkingDir<br \/>named_selection = Model.NamedSelections.Children[0]<br \/>Graphics.Camera.SetFit(named_selection)<br \/>&nbsp;my_pp_obj = ExtAPI.DataModel.AnalysisList[0].Solution.Children[2].Children[1]<br \/>&nbsp;my_pp_obj_name = my_pp_obj.Name.replace(&#8216; &#8216;,&#8217;_&#8217;)<br \/>&nbsp;my_pp_obj.Activate()<br \/>&nbsp;ExtAPI.Graphics.Export3D(os.path.join(my_wd_path,&#8221;%s.avz&#8221; %(my_pp_obj_name)))<\/p>\n<p>In the GUI the view is changed with the command above but not in the exported file.<\/p>\n<p>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.<\/p>\n<p>How one can change the view for the avz file.<\/p>\n<p>&nbsp;<\/p>\n<p>Thanks<\/p>\n<p>Wolke<\/p>\n","protected":false},"template":"","class_list":["post-369142","topic","type-topic","status-closed","hentry","topic-tag-python-ironpython-1","topic-tag-script"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"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.WorkingDirnamed_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(&#039; &#039;,&#039;_&#039;) my_pp_obj.Activate() ExtAPI.Graphics.Export3D(os.path.join(my_wd_path,&quot;%s.avz&quot; %(my_pp_obj_name)))In the GUI the view is changed with the command above but not in the exported file.I\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Change view orientation and export result as avz | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"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.WorkingDirnamed_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(&#039; &#039;,&#039;_&#039;) my_pp_obj.Activate() ExtAPI.Graphics.Export3D(os.path.join(my_wd_path,&quot;%s.avz&quot; %(my_pp_obj_name)))In the GUI the view is changed with the command above but not in the exported file.I\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-05-29T21:05:25+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-05-29T21:12:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Change view orientation and export result as avz | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"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.WorkingDirnamed_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(&#039; &#039;,&#039;_&#039;) my_pp_obj.Activate() ExtAPI.Graphics.Export3D(os.path.join(my_wd_path,&quot;%s.avz&quot; %(my_pp_obj_name)))In the GUI the view is changed with the command above but not in the exported file.I\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/change-view-orientation-and-export-result-as-avz\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/script\\\/#listItem\",\"name\":\"script\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/script\\\/#listItem\",\"position\":3,\"name\":\"script\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/script\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/change-view-orientation-and-export-result-as-avz\\\/#listItem\",\"name\":\"Change view orientation and export result as avz\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/change-view-orientation-and-export-result-as-avz\\\/#listItem\",\"position\":4,\"name\":\"Change view orientation and export result as avz\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/script\\\/#listItem\",\"name\":\"script\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/change-view-orientation-and-export-result-as-avz\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/change-view-orientation-and-export-result-as-avz\\\/\",\"name\":\"Change view orientation and export result as avz | Ansys Learning Forum\",\"description\":\"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.WorkingDirnamed_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\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/change-view-orientation-and-export-result-as-avz\\\/#breadcrumblist\"},\"datePublished\":\"2024-05-29T21:05:25+00:00\",\"dateModified\":\"2024-05-29T21:12:54+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Change view orientation and export result as avz | Ansys Learning Forum","description":"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.WorkingDirnamed_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","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/script\/#listItem","name":"script"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/script\/#listItem","position":3,"name":"script","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/script\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/#listItem","name":"Change view orientation and export result as avz"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/#listItem","position":4,"name":"Change view orientation and export result as avz","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/script\/#listItem","name":"script"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/","name":"Change view orientation and export result as avz | Ansys Learning Forum","description":"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.WorkingDirnamed_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","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/#breadcrumblist"},"datePublished":"2024-05-29T21:05:25+00:00","dateModified":"2024-05-29T21:12:54+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Change view orientation and export result as avz | Ansys Learning Forum","og:description":"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.WorkingDirnamed_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,&quot;%s.avz&quot; %(my_pp_obj_name)))In the GUI the view is changed with the command above but not in the exported file.I","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/","article:published_time":"2024-05-29T21:05:25+00:00","article:modified_time":"2024-05-29T21:12:54+00:00","twitter:card":"summary_large_image","twitter:title":"Change view orientation and export result as avz | Ansys Learning Forum","twitter:description":"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.WorkingDirnamed_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,&quot;%s.avz&quot; %(my_pp_obj_name)))In the GUI the view is changed with the command above but not in the exported file.I"},"aioseo_meta_data":{"post_id":"369142","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 16:40:10","updated":"2024-10-28 16:40:10","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/script\/\" title=\"script\">script<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tChange view orientation and export result as avz\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"script","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/script\/"},{"label":"Change view orientation and export result as avz","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-view-orientation-and-export-result-as-avz\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["86234","170445","432650"],"_bbp_author_ip":["23.216.133.166"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["728"],"_bbp_topic_status":["unanswered"],"_edit_lock":["1717408464:219927"],"_bbp_topic_id":["369142"],"_bbp_forum_id":["27796"],"_bbp_engagement":["86234","170445","432650"],"_bbp_voice_count":["3"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["370448"],"_bbp_last_active_id":["370448"],"_bbp_last_active_time":["2024-07-04 09:46:15"]},"test":"maja-wolkensteinde-bosch-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/369142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/369142\/revisions"}],"predecessor-version":[{"id":369143,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/369142\/revisions\/369143"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=369142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}