[ANSYS Meshing] how to activate curvature for a "sizing" in a script?

EhsanBa
EhsanBa Member Posts: 2
Name Dropper First Comment
**

Hi,

1- How can the "Capture Curvature" option be activated for a typical "Sizing" setting while scripting? Recording can't add such a line in the script. I learned that there is a command to activate this for the global mesh configuration, like:

      ```

Code:
mesh_1.CaptureCurvature = True
```
But how can I activate this for Sizing? I tried changing this to a form like:

         `sizing_1.CaptureCurvature = True`

but it didn't work. It causes this error:

Quote:
'Sizing' object has no attribute 'CaptureCurvature'

2- Is there a programmers' guide (PDF) for ANSYS Meshing?

Any help would be greatly appreciated.
Best

Comments

  • Landon Mitchell Kanner
    Landon Mitchell Kanner Member, Employee, GitHub-issue-creator Posts: 324
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    The recording and resulting script are working on my end at 2024R2. Can you please provide more details, including the version of Ansys?

  • EhsanBa
    EhsanBa Member Posts: 2
    Name Dropper First Comment
    **

    @Landon Mitchell Kanner said:
    The recording and resulting script are working on my end at 2024R2. Can you please provide more details, including the version of Ansys?

    Thank you, Landon, for your response. The version I'm using is 2021 R1. So, do you think I should ask for an upgrade?

    Besides, inside the generated script are just #region UI Action and #endregion. There are no commands like #region.Context.Menu.Action or #region.Details.View.Action.

  • Landon Mitchell Kanner
    Landon Mitchell Kanner Member, Employee, GitHub-issue-creator Posts: 324
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    Yes, it is time for an update ;)