I recently delivered a webinar on Ansys ACP for users in Turkey, which sparked considerable interest in learning more about PyACP and scripting within ACP. However, I’ve found that resources on this topic are quite limited, and I’m reaching out to see if you might have at least one tutorial or reference that could help clarify the basics.
Would it be possible for you to provide some guidance or point me to any available resources?
thanks a lot for your question. We are not sure whether there are some ansys experts on the platform or not. We will reach out to some Ansys people to see whether they can send somebody over to help colleagues like you.
Hi Salim,
only now I registered in this platform to answer question related to Ansys Composite Applications. So I am glad to provide few hints. To learn more about the PyAnsys family, please check out our PyAnsys resources here: https://docs.pyansys.com/
PyACP allows pythonic model creation and manipulation, to learn more check out this the PyACP section under the above PyAnsys link.
All these resources contain Getting Started Sections, API references and some great selection of examples. It will allow you to get started quickly. You can also use existing examples and modfiy them to your needs.
Thank you Thomas for taking time and get back to me on this, actually it’s in my schedule to spare time for those PY’s but my actual focus is on the script section of Ansys ACP(Figure attached) which i find it’s potential big in calculating the thickness of a composite structure using the Polar Various Radii method without having to calculate it separately in Python and export to excel and then to acp, and also for the repetetive lamina modeling and so on.
it appears that I didn’t read your first message well enough ;). Yes ACP has its own scripting capabilities and it is actually easy to get into. I agree the documentation is fairly thin on that topic. However perhaps you noticed already the that any action you perform in the GUI such as defining objects in the ACP tree also outputs the Python based scripting commands in the Python shell in the bottom of the ACP window.
You simply can do the required action in the tree and copy the relevant code snippets into the scripting object. Few limitations we have, e.g. the Excel Interface is not scriptable. Instead you can go other routes and read/write/process data files such as txt cvs and alike. If you have access to Ansys Learning Hub, you will find a workshop about scripting in ACP. It is pretty old and some features might be outdated. The basic principle is still the same. Nevertheless I also would like to suggest to read the documentation about how scripts are executed, especially the trigger types are very useful to understand. Check out help section 2.1.2.2. Script Properties
you’re very welcome and I am glad to touch base with you guys. Hope I can answer question in time, please bear with me if there is a delay every now and then.
Thanks Thomas for your assistance i’ll try spare more time on this, maybe i was lazy waiting for the meal to cook itself, i’ll share my findings with you once i get it working.