


{"id":298664,"date":"2023-08-08T06:39:35","date_gmt":"2023-08-08T06:39:35","guid":{"rendered":"\/forum\/forums\/reply\/298664\/"},"modified":"2023-08-08T06:53:57","modified_gmt":"2023-08-08T06:53:57","slug":"298664","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/298664\/","title":{"rendered":"Reply To: Changing Body Dimension in API"},"content":{"rendered":"<p>&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;HI&lt;\/p&gt;&lt;p&gt;The easiest is just to go to the system and change under the Geometry\/Properties, the Analysis Type to 2D.&lt;\/p&gt;&lt;p&gt;As for your question related to mechanical scripting:&lt;\/p&gt;&lt;p&gt;You need another line to set dimensions to 2D:&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp; &nbsp; &nbsp; &nbsp; Body.Dimension=ShellBodyDimension.Two_D&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; Body.Behavior=Model2DBehavior.PlaneStrain&lt;\/p&gt;&lt;p&gt;All the best&lt;\/p&gt;&lt;p&gt;Erik&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-298664","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/298664","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\/298664\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=298664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}