Dear STKO team,
Is it possible to filter out specific elements, such as soil elements, during the post-processing stage in STKO with mpco files, if, for instance, we have a finite element model containing soil, water, and a structure?
Thanks.
Filter specific elements for visualization.
-
kesavapraba
- Posts: 468
- Joined: Sat Mar 28, 2020 2:25 pm
Re: Filter specific elements for visualization.
Hi, You can explore the Python API option, particularly writing script using the PyMpc (a library). https://asdeasoft.net/stko-wiki/class_p ... nment.html
I would also like you to try an another option: Try to put the elements of your choice in "Selection set" in the pre-processor itself. The same selection sets can be accessed in the post-processor.
I would also like you to try an another option: Try to put the elements of your choice in "Selection set" in the pre-processor itself. The same selection sets can be accessed in the post-processor.
:: With best wishes ::
Prabakaran Kesavan
Prabakaran Kesavan
Re: Filter specific elements for visualization.
Thank you for your response.
For the "Selection set" option, could you please explain how to access my selection sets in the postprocessor.
For the Python API option, could you please provide more details about this option.
Thanks.
For the "Selection set" option, could you please explain how to access my selection sets in the postprocessor.
For the Python API option, could you please provide more details about this option.
Thanks.
Re: Filter specific elements for visualization.
Get the database (MpcOdb class).
Code: Select all
db_id = 1
doc = App.postDocument()
db = doc.getDatabase(db_id)
for sset_id, sset in db.selectionSets.items():
print(sset.name)
print(sset.nodes)
print(sset.elements)