How to export Graphics Annotations result to a text file?
cmd = """var text = DS.Script.createTextForFileGraphicsAnnotationsPane(); returnFromScript(text);""" text = ExtAPI.Application.ScriptByName("jscript").ExecuteCommand(cmd) file_handle = open(r"\Path\to\my\file.txt", "w") # Change the file path file_handle.write(text) file_handle.close()
@LauriK please refer to the following post:https://discuss.ansys.com/discussion/1628/how-to-create-probe-labels-at-a-node-using-act
Is it possible to create annotations for stress plot from a file, for example based on coordinates? Example of use case would be a global model where I have put a number of annotations in critical locations. After modifying the model in some detail and solving it, I lose all the annotations.
@LauriK, please refer to this post on how to create annotations using ACT in Mechanical.
https://discuss.ansys.com/discussion/1454/how-do-i-create-an-annotation-using-act
Thanks. Script in the link seems to be creating an annotation my model ("100 MPa" at the top) but I would like to create stress probes (470 MPa below). Is this possible?