


{"id":301551,"date":"2023-08-15T16:31:02","date_gmt":"2023-08-15T16:31:02","guid":{"rendered":"\/forum\/forums\/topic\/filter-for-custom-act-solver-in-ansys-mechanical\/"},"modified":"2023-08-15T16:31:02","modified_gmt":"2023-08-15T16:31:02","slug":"filter-for-custom-act-solver-in-ansys-mechanical","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/filter-for-custom-act-solver-in-ansys-mechanical\/","title":{"rendered":"Filter for Custom ACT Solver in Ansys Mechanical"},"content":{"rendered":"<p>Hi! I&#8217;m implementing a custom ACT solver for the ACT extension I am developing in Ansys Mechanical during my Ph.D. My custom ACT solver connects to a Static Structural system (just like nCode DesignLife, see image below) and implements a custom analysis routine I developed.<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/15-08-2023-1692115867-mceclip0.png\"><\/p>\n<p>Up to now, I managed to implement my custom solver following the ACT extension example called &#8216;DemonstrationSolver&#8217; I downloaded from Ansys website. Once I add the solver to an existing Static Structural analysis, everything works well and I have a new custom analysis on my Project Tree (as in the example for nCode DesignLife in the image below). <br \/><strong>However I couldn&#8217;t manage to understand how to apply a filter on the options associated with my custom analysis and I didn&#8217;t find any reference in the downloadable ACT examples<\/strong>. If you take nCode Design Life for instance (see below), once you right-click the &#8216;nCode DesignLife&#8217; object, you find no options under &#8216;Insert&#8217; except for &#8216;Python Code&#8217;, which means the nCode analysis has been filtered somehow. On the other hand, if I right-click my custom analysis, I still get all the default options of a Static Structural analysis under Insert. I would like to be able to filter and remove some of those buttons.<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/15-08-2023-1692115988-mceclip1.png\"><\/p>\n<p>&nbsp;<\/p>\n<p>Searching Ansys online XML Reference guide, I found the following &lt;filter&gt; XML tag which I think can be useful to implement the filtering I need since it allows to control the visibility of Mechanical buttons. However, I can&#8217;t unerstand how the filter should be implemeted.<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/08\/15-08-2023-1692116262-mceclip2.png\"><\/p>\n<p>I managed to add the same &lt;filter&gt; XML tag under the &lt;interface&gt; tag in my XML extension file and also created my custom &#8216;ButtonVisibility.xml&#8217; control file following an example I found among Ansys default Add-ins. However nothing happens when I open Mechanical and load my extension, which means something must still be missing.<\/p>\n<p>Has anyone ever faced this problem? Do you have some advice for me?<\/p>\n<p>Thanks in advance for your time and help!<\/p>\n","protected":false},"template":"","class_list":["post-301551","topic","type-topic","status-closed","hentry","topic-tag-act","topic-tag-ACTExtension-1","topic-tag-filter","topic-tag-mechanical","topic-tag-ncode-1","topic-tag-solver"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["291509","200","170445"],"_bbp_author_ip":["23.206.193.146"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["869"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["301551"],"_bbp_forum_id":["27791"],"_bbp_engagement":["200","170445","291509"],"_bbp_voice_count":["3"],"_bbp_reply_count":["5"],"_bbp_last_reply_id":["303981"],"_bbp_last_active_id":["303981"],"_bbp_last_active_time":["2023-08-29 21:17:42"]},"test":"alberto-visentin-2studenti-unipd-it"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/301551","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":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/301551\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=301551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}