efdiloreto / PyTekla

Bringing CPython power to Tekla
MIT License
7 stars 3 forks source link

How to get all phases in Model? #5

Closed meteozcan87 closed 3 months ago

meteozcan87 commented 3 months ago

Hello, First of all, I would like to thank you for developing PyTekla. I could not figure out how can I get phases in the model as a list of phase objects. I would appreciate if you could help me. Thank you in advance.

meteozcan87 commented 3 months ago

I found it.

model = wrap("Model.Model") phase_object_list = list(model.get_phases())

Thank you for this amazing library.