General Mechanical

General Mechanical

Mechanical exclude geometry from report

TAGGED: 

    • grotstein
      Subscriber
      I am trying to exclude geometry from the report in ANSYS Mechanical. During report generation, Mechanical is locked and I cannot do any work. During report generation, I get a dialog that the report script is slowing down the application and that I should stop the process. I have to actively click no, otherwise the process just idles. This makes it necassary to sit next to the computer for 10-20 minutes during report generation and click no in the dialog a few times that it pops up. It's very time consuming for something that actually should be automized. Most of the time of report generation is spent reading the geometry data, which I actually don't need in the report. So it would be desirable to exclude geometry from report generation.nIn the documentation I found a hint on how to customize report generation in mechanical: create a custom Report2006/ folder and make changes to the Rules.xml file. But I have no documentation on what excactly to change in Rules.xml. Can anyount point me to the documentation?nTanks!n
    • Aniket
      Ansys Employee
      https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v211/en/wb_sim/ds_Reports_Customizing.html this is the only documentation available for the customizing report. nBut to answer your query, you need to add the object id of your required branch of the tree that you want to exclude from the report under section in the Rules.xml. Object Id can be found in the same folder, in C:\Program Files\ANSYS Inc\v211\aisol\DesignSpace\DSPages\Language\en-us\Report2006\ClassToString.xml file.n-AniketnHow to access Ansys help linksnGuidelines for Posting on Ansys Learning Forumn
    • grotstein
      Subscriber
      Dear Aniket,nthank you for replying. I was not aware of the ClassToString.xml file, so your comment helped.nHowever, adding the ID to only excluded the Geometry from the table of contents. Adding it to also excluded it from the report, but, unfourtunately, the script still reads the data, it just doesn't put it in the report. So my problem was not solved. I guess the only way to solve it is to change/ improve the script in Generator.js.n
    • grotstein
      Subscriber
      I managed to get the desired result by changing Generator.js.nIn the function ComposeTable(firstChild, listParent, physicsType, analysisType) after these lines:n       var node = firstNode;n       var li = null;n       var tr, td;n      var tmpString = ;n      var tmpString2 = ;n      var tmpString3 = ;nI addedn      if ((node.Tag.Class == 400)) {n         / Stop if geometryn         returnn      }nThis is clearly just a very bad hack, but it works.n
    • Aniket
      Ansys Employee
      Glad that worked and thanks for sharing your solution with us on the forum!n-Aniketn
Viewing 4 reply threads
  • You must be logged in to reply to this topic.