TAGGED: #automation#ACT, python-scripting
-
-
March 2, 2024 at 7:08 pm
imraan.bokhari
SubscriberHi Everyone
I have been trying to find the code used to read the results written in a command object script. I am using the static structural module and an example of the desired result is from "my_rotx=ROTX(RemotePoint)". In the Solution portion of the tree my command file shows the results, although using ACT python I'm unable find a way to save those results to a variable so I can output them into a csv file.
An exmaple of the code I'm looking for may look like this.
CMD = ExtAPI.DataModel.GetObjectById(724)Â # this is the object ID of the command object named "Deformations"
variable_name = CMD.OutputResults(my_rotx)Â # this is the line of code I am trying to determine
Any advice is appreciated. Thank you.
-
March 5, 2024 at 1:44 am
mjmiddle
Ansys EmployeeCMD.OutputParameters[index]
par1 = CMD.OutputParameters[0]
par1.Name
par1.Value -
March 6, 2024 at 2:28 am
imraan.bokhari
SubscriberPerfect
Thank you
-
- The topic ‘Reading Results from Command Object’ is closed to new replies.
-
2407
-
930
-
599
-
591
-
559
© 2025 Copyright ANSYS, Inc. All rights reserved.