Mechancial editing issue when pressing ACT button
Hello Everyone,
I have an issue with a custom-made ACT extension. The ACT creates a geometry in SpaceClaim and subsequently sets up the entire model in Mechanical, which works well so far. After the setup, I can still edit the model in Mechanical.
However, when I run the model and click on my ACT button to create Python results, the Python results are generated and displayed correctly. This is achieved using the following functionality:
Upon clicking the button, code is executed to create Python results. A separate Python file is read via a text reader, and the text is set in the Python results as follows:
pyRes.Text = pyResText pyRes.PropertyProviderText = pyResPropProvText pyres.PropertyByName("Suppressed").InternalValue = True pyres.Name = Name pyres.PropertyByName("Suppressed").InternalValue = False pyres.Connect() pyres.ReloadProperties() analysis.Solution.EvaluateAllResults()
This process works fine. However, after this step, I am unable to edit the model further—for example, adding a path or making other adjustments.
Only after going to the Automation menu and clicking Reload am I able to work on the model again. However, for some colleagues, even this does not work.
What could be causing this issue?
We are using Ansys 2023 R2.
Answers
-
@SchluppIng Couple of questions:
Is this a Transient analysis?
Is there a possibility of getting stuck infinite loop? This happens due to wrong callbacks normally.
0