TAGGED: act, ACT-Extension, filter, mechanical, ncode, solver
-
-
August 15, 2023 at 4:31 pm
Alberto Visentin
SubscriberHi! I'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.
Up to now, I managed to implement my custom solver following the ACT extension example called 'DemonstrationSolver' 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).
However I couldn't manage to understand how to apply a filter on the options associated with my custom analysis and I didn't find any reference in the downloadable ACT examples. If you take nCode Design Life for instance (see below), once you right-click the 'nCode DesignLife' object, you find no options under 'Insert' except for 'Python Code', 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.Searching Ansys online XML Reference guide, I found the following
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't unerstand how the filter should be implemeted. I managed to add the same
XML tag under the tag in my XML extension file and also created my custom 'ButtonVisibility.xml' 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. Has anyone ever faced this problem? Do you have some advice for me?
Thanks in advance for your time and help!
-
August 18, 2023 at 1:30 pm
Aniket
Ansys EmployeeHi Alberto, Thanks I see that you have posted at https://discuss.ansys.com/discussion/2448/how-to-use-the-xml-tag-in-act-extension#latest, which is a good platform to discuss this question. This seems a bit tricky though, so thanks for patience in advance!
-Aniket
-
August 18, 2023 at 3:58 pm
Alberto Visentin
SubscriberHi Aniket. Thank you for your interest on this!
Yes, I decided to post the same question on the Ansys Developer forum which I didn't know about before yesterday to be honest.
I am still trying to understand how to make the filter work on my own but no success up to now. If you manage to find some more references about theXML tag and how to generate a callback to it, please share them with me if you are allowed.
Yesterday I managed to access 'nCode DesignLife' XML file and I noticed they used the sametag in that extension, so there's clearly a way to do it, just haven't found out how. -
August 19, 2023 at 5:33 am
mjmiddle
Ansys EmployeeThe filter was never fully documented for use by ACT extension writers. I see the LSDYNA extension that is installed with Ansys structural products has an actgui.xml inside which applies a filter. But copying the file to a user's extension and using the filter tag in the XML file doesn’t do any of the filtering as seen in the LSDYNA extension. I believe there needs to be a command to activate the filter once defined. That is why the filter is given a name, so multiple filters can be defined and turn on/off a will in the python script. I have tried to communicate with our scripting experts inside Ansys, but have not heard back yet.
-
August 29, 2023 at 3:35 pm
Alberto Visentin
SubscriberHi mjmiddle.
I think you're right, indeed most ACT extensions installed by default with Ansys distributions (such as LS-DYNA or nCode DesignLife or Ansys Motion) have 'actgui.xml' or 'gui.xml' files designed to implement a filtering operation. All these files are coded using atag. Sure I managed to copy one of those files and add it to my extension, but nothing happens by default once you load the extension, which surely means a Python callback to the filter is required in order to make it work. I'm still trying to figure this out but had no success until now.
Do you happen to have news about this topic?Thnak you for your help.
-
August 29, 2023 at 9:17 pm
mjmiddle
Ansys EmployeeI don't think you should pursue this further. It will just waste your time. The extensions that use these filters all have their significant code compiled. I have never seen any documentation on how to use this filter, or any examples, or even talk about it. No one in the scripting group has replied to my inquiry and I don't expect them to. This is just something that was never fully implemented for the regular ACT extension developer.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Solver Pivot Warning in Beam Element Model
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- User manual
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- whether have the difference between using contact and target bodies
- Defining rigid body and contact
- Colors and Mesh Display
-
7780
-
4508
-
2973
-
1449
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.