


{"id":373816,"date":"2024-07-26T19:25:23","date_gmt":"2024-07-26T19:25:23","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/373816\/"},"modified":"2024-07-26T19:25:23","modified_gmt":"2024-07-26T19:25:23","slug":"373816","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/373816\/","title":{"rendered":"Reply To: Post-Processing Stress Using APDL"},"content":{"rendered":"<p>&lt;p&gt;Hello,&lt;\/p&gt;&lt;p&gt;That post is really helpful! But I don&#8217;t think the script runs properly. I have been attempting to rename each body &#8216;under the hood&#8217; of Ansys and use the new name (body_1,body_2&#8230;) to post-process results easily in APDL. However, now Ansys is returning the error:&nbsp;&lt;\/p&gt;&lt;div id=&#8221;paraDiv&#8221; class=&#8221;text-color-primary&#8221; style=&#8221;display: inline;&#8221;&gt;&lt;p id=&#8221;paragraphData&#8221; class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;15:09:41&lt;br&gt;&nbsp;Empty parentheses.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br&gt;&nbsp;*** ERROR ***&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CP =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.062&nbsp;&nbsp; TIME= 15:09:41&lt;br&gt;&nbsp;The above error occurred processing field= BODY.GETGEOBODY().ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/p&gt;&lt;p id=&#8221;paragraphData&#8221; class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;\/p&gt;I&#8217;ve looked through the documentation of GetGeoBody().Id and I feel as though I&#8217;m deploying it correctly? Here is the snippet of code:&lt;\/div&gt;&lt;div class=&#8221;text-color-primary&#8221; style=&#8221;display: inline;&#8221;&gt;&nbsp;&lt;\/div&gt;&lt;div class=&#8221;text-color-primary&#8221; style=&#8221;display: inline;&#8221;&gt;for body in bodies: &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; if body.Suppressed is False:&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; nb_bodies += 1&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; with Transaction():&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new_snippet = body.AddCommandSnippet()&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string1 = &#8216;body_&#8217;+str(nb_bodies) + &#8216; = body.GetGeoBody().Ids \\n'&lt;\/div&gt;<\/p>\n","protected":false},"template":"","class_list":["post-373816","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/373816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/373816\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=373816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}