Hi, how can I use the Python API to model tunnels? I'm already going crazy!
If I use the process of Tunnel Designer to code and model, the code will terminate when assigning material to the tunnel plate unit, and the error is' The plate unit does not exist 'because the tunnel has not yet been generated.
If I still use the process of Tunnel Designer to code and model, but if I create a tunnel without assigning material, the code will also terminate when assigning material to the tunnel plate unit. The error is' Polycurve cannot be modified because it is generated by Tunnel Designer '.
If I create arc polycurves, then create plates for them, assign materials to the plate elements, and create interfaces, then the tunnel can be modeled successfully, but this will lead to mesh failure.
Dear tongji_liukai Liu,
Sorry to hear about that. We can try to assist, however, you need to provide some more information.
When I try to create a Python script without fully knowing how it will work in PLAXIS, I do the complete set of actions via the GUI. (almost) Every action in PLAXIS Input generates a command that you can "translate" to Python. Have you tried this?
In the first two cases, you seem to be missing some essential commands to get you to the next step.
The last issue is not related to Python but rather depends on the geometry you introduce. A mesh failure, most of the time, indicates a geometry inaccuracy which needs to be checked. We have an article of describing how a step-by-step introduction to geometry can ensure that you have a successful mesh and a way to figure out which action causes the mesh to fail: General modeling guidelines - recommendations
If you still have problems, I advise you to reach out to our support team as the forum does not help when in need of going into details: https://bentleysystems.service-now.com/csp
Answer Verified By: tongji_liukai Liu
Thank you! I've already solved the problem, which caused by an incorrect "translation" of the tunnel plate.