TAGGED: #fluent-#ansys, error, mechanical, mesh
-
-
May 13, 2025 at 4:16 pm
jdch232
SubscriberHello,
I receive this error anytime I open Mechanical to mesh a project. This only happens on new projects. And I can still interact with and generate an initial mesh for the geometry (created using DesignModeler), I just can't see it. This was happening a few weeks ago and I wasn't sure what to do, but it stopped and I was never sure why. Now it's come back. I'm not sure what I'm doing wrong. Would anyone be able to help?
I'm using Ansys 2025 R1 Student version and Windows 11 24H2. I've seen a few things saying W11 24H2 isn't yet supported for 2025 R1, but I think they were outdated since I was able to use it just fine previously.
-
May 14, 2025 at 10:47 am
CFD_Friend
Ansys EmployeeHi,
This error is due to the latest Windows 11 build 26100. In some places in the code, its allowing a null pointer to be passed to a COM method, which is not allowed any more. The fix is to test the pointer before calling the method from the script. For example:
old code
var paramset = aqwaApp.Applet.App.ParameterSet;
aqwaprojmgr.SendUpdateOutputParameters(paramset);new code
var paramset = aqwaApp.Applet.App.ParameterSet;
if (paramset != null) {
aqwaprojmgr.SendUpdateOutputParameters(paramset);
}The workaround is to either rollback to previous build of Windows or look for the string showing in the error message in the scripts under C:\Program Files\ANSYS Inc\v2xx\aisol\DesignSpace\DSPages\scripts folder. For example, in the screenshot attached the string is “g_UIHandler.TreeHandler.RemoveAndFillChildNodes(parentNode);” in the error message. Find this string in the scripts then add the lines highlighted in yellow around it to make sure that the variable value is not null. In this case, the variable is parentNode instead of paramset.
-
May 14, 2025 at 2:51 pm
jdch232
SubscriberHello, thank you for your reply. Though I'm still confused by this. Why did it work suddenly a few weeks ago but then not now?
And regarding adding this line to the script, using Notepad I found these lines in the DSTreeScript.js file. I'm unsure of the exact syntax, but it seems a version of this line is already there?
-
-
- You must be logged in to reply to this topic.
-
3145
-
1007
-
935
-
858
-
792
© 2025 Copyright ANSYS, Inc. All rights reserved.