-
-
August 23, 2024 at 12:26 pmThierry BourdonSubscriber
Hello
I am working on correlating results with the NVH Toolkit in ANSYS Workbench 2024R2 and I aim to optimize my numerical model.I am using Mechanical scripting to automate the MAC matrix calculations and to set up loops for optimization. I have successfully created a program that adjusts the geometry thickness and performs the MAC calculation. However, I haven't found a way to automatically export the MAC matrix results to a CSV file without manual intervention.I tried using the recording feature in Mechanical scripting, but no relevant commands appeared on the record page.Is there any command available for exporting, or is there an alternative approach to achieve this?Thank you in advance -
August 26, 2024 at 4:12 pmdloomanAnsys Employee
Could you use *get,my_value,RSTMAC in a commands object to report values in the commands object Details window which could then be checked as output parameters?
-
August 27, 2024 at 7:25 amErik KostsonAnsys Employee
Perhaps this helps:
https://discuss.ansys.com/discussion/2755/how-to-run-functions-that-are-defined-in-an-act-extension-or-mechanical-add-on-from-a-script
Any questions on that post them under the above post (https://discuss.ansys.com/discussion/2755/how-to-run-functions-that-are-defined-in-an-act-extension-or-mechanical-add-on-from-a-script) -
August 28, 2024 at 2:53 pmThierry BourdonSubscriber
Hello,
The Get command isn’t working and is returning 0 in the output parameter.
I tried using the script from the link you provided and found the ‘export’ command. However, I couldn’t figure out how to set the file path for the export
Do you have any idea how to use the ExportMAC function ?
nvh_addon = ExtAPI.ExtensionManager.GetExtensionByName(“NVHToolkit”)
nvh_module = nvh_addon.GetModule()
mac_data=nvh_module.ExportMAC
-
- You must be logged in to reply to this topic.
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- How to apply Compression-only Support?
- Geometric stiffness matrix for solid elements
- Frictional No separation contact
- Timestep range set for animation export
- Image to file in Mechanical is bugged and does not show text
- Script Error Code:800a000d
- Elastic limit load, Elastic-plastic limit load
- Element has excessive thickness change, distortion, is turning inside out
-
1416
-
599
-
591
-
565
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.