Is it possible to use the DPF out of an ACT extension?
(Ansys Mechanical 2022 R2)
Is it possible to insert a postobject with the DPF and not use the collector in an ACT extension?
Answers
-
Hi @Peter . ACT objects such as Post objects, Result objects, etc can only be created through ACT. However, directly in Mechanical there is now the Python Result object that will enable you to create a custom results by using DPF to compute this result and plot it back to the model. The method here is simpler than the one used in ACT, there is no need to feed the collector anymore. Please check "Python Result" in the Mechanical help for further insight.
0 -
I have some custom ACT extensions, which inserts over bottons in the ribbon bar.
How do I save the Python Result for other Projects, or is it nessesary to copy the script code and property code every time?
0 -
@Peter Python Results are only saved within a specific project. To have them in another project you will have to recreate the Python Result. You could consider saving the script in a script snippet to be able to easily retrieve it in any Mechanical instance.
0 -
@Peter Take a look at this (brand new) app: it will let you store contents of Python Results and Python Code so they can be reused (including properties) in other projects. There is also a copy/paste functionality for use within a project.
https://catalog.ansys.com/product/638519becd63c26f9b7cdfc7/python-code-tools
0