


{"id":407077,"date":"2025-01-26T18:20:26","date_gmt":"2025-01-26T18:20:26","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trouble-with-apdl-commands\/"},"modified":"2025-01-27T20:10:57","modified_gmt":"2025-01-27T20:10:57","slug":"trouble-with-apdl-commands","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/trouble-with-apdl-commands\/","title":{"rendered":"Trouble with APDL Commands"},"content":{"rendered":"<p>&lt;p&gt;&lt;p&gt;&lt;p&gt;Hi I am trying to use APDL Commands to automate some postprocessing in Ansys Mehcanical and I am recieving the following warnings:&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;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;*** WARNING ***&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.219&nbsp;&nbsp; TIME= 12:58:41&lt;\/span&gt;&lt;br&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;&nbsp;Invalid coordinate system= 101.&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;\/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;&nbsp;OPENED FILE= file.txt FOR COMMAND FILE DATA&lt;\/span&gt;&lt;br&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;&nbsp; COMMAND FILE CLOSED &lt;\/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;&nbsp;*** WARNING ***&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.219&nbsp;&nbsp; TIME= 12:58:41&lt;\/span&gt;&lt;br&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;&nbsp;The item label NAME is not recognized by the NSEL command.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;&nbsp;&nbsp;The NSEL command is ignored.&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;&nbsp;&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;This is the part of my code where I set the named selection and local coordinate system I would like to use:&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;&nbsp;&lt;\/span&gt;&lt;\/p&gt;&lt;p&gt;! Define the single named selection&lt;br&gt;NamedSelection = &#8216;Fold1 RZ&#8217;&nbsp;&lt;br&gt;CoordSystem = 101&lt;\/p&gt;&lt;p&gt;CSYS, CoordSystem &nbsp;! Set the coordinate system&lt;\/p&gt;&lt;p&gt;*CFOPEN, FilePath + &#8216;Debug.txt&#8217;, txt&lt;br&gt;*VWRITE, &#8216;Coordinate System: &#8216;, CoordSystem&lt;br&gt;(A, F8.0)&lt;\/p&gt;&lt;p&gt;*VWRITE, &#8216;Named Selection: &#8216;, NamedSelection&lt;br&gt;(A, F8.0)&lt;\/p&gt;&lt;p&gt;*CFCLSE&lt;\/p&gt;&lt;p&gt;! Apply the Named Selection (ensure the selection is active)&lt;br&gt;NSEL, S, NAME, NamedSelection&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;Here is an image of the coordinate system:&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/01\/26-01-2025-1737915471-Screenshot 2025-01-26 131437.png\" alt=\"\" \/>&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;And here is the named slection:&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/01\/26-01-2025-1737915552-Screenshot 2025-01-26 131859.png\" alt=\"\" \/>&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;Any assistance you could provide would be greatly apperciated!&lt;\/span&gt;&lt;\/p&gt;&lt;p class=&#8221; paragraphText text-color-primary&#8221; style=&#8221;font-size: 12px; display: inline;&#8221;&gt;&nbsp;&lt;\/p&gt;&lt;\/div&gt;&lt;\/p&gt;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-407077","topic","type-topic","status-answered","hentry","topic-tag-mechanicalworkbench-1","topic-tag-apdl-command","topic-tag-apdl-commands","topic-tag-coordinate-system","topic-tag-node-selection-1","topic-tag-warning"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27791"],"_bbp_topic_id":["407077"],"_bbp_author_ip":["192.91.178.236"],"_bbp_last_reply_id":["407101"],"_bbp_last_active_id":["407101"],"_bbp_last_active_time":["2025-01-27 07:31:04"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["48235","58821"],"_btv_view_count":["695"],"_bbp_topic_status":["answered"],"_bbp_notification_enabled":["48235"],"_bbp_subscription":["58821"],"_edit_last":["52629"],"_bbp_revision_log":["a:2:{i:407159;a:2:{s:6:\"author\";i:52629;s:6:\"reason\";s:0:\"\";}i:407160;a:2:{s:6:\"author\";i:52629;s:6:\"reason\";s:0:\"\";}}"]},"test":"jmcclos8jh-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/407077","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":2,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/407077\/revisions"}],"predecessor-version":[{"id":407160,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/407077\/revisions\/407160"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=407077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}