Dear Support Team,
I want to find all polygons (polygons and soil polygons) without assigned material (no assigned material) in PLAXIS 2D.
The most obvious way is to use groupfiltered command. According to the Command reference we have eg. groupfiltered Plates "Material!=", that groups a list of all plates that have a material assigned to them. groupfiltered Plates "Material=" — groups a list of all plates that do not have a material assigned to them.
If I try to use eg. groupfiltered Polygons "Material!=", it does not work. Here we have five polygons for embankment. One of the layers (one polygons) does not have material:
If I use groupfiltered Polygons "Material!=", PLAXIS gives me:
Also I have tried tabulate and filter commands:
Could you please help me to group or to find all polygons without assigned material?
Thank you in advance.UPD. I have found that groupfiltered Soils "Material=" helps me, but it does not help to see and to choose polygons with these Soils.
Could you please help me with it?
Thank you!
Dear Rushan,
You have correctly found that it is the Soils object that contains the Material property and not the Polygons. So, indeed the command should work correctly when using the Soils object.
In the Model explorer you should get a new group, e.g. Group_1 that contains that Soil object that means your criteria. If you click on the group or its contents the object should be highlighted in red and also shown in the Selection explorer.
If you want to know to which polygon this belongs, you can use the echo command in the following way:
echo Group_1[0].Parent # this will give the first item of the Group_1; this can also be called Groups[-1][0] using indexing
Dear Stefanos,
Thank you very much for a quick reply.
echo Group_1[0].Parent is a good variant for one item.
But what can we do if we have more items in the Group?For example, I have a project with three «empty» Soils:
If I use echo Group_1[0].Parent I will get only the first one (because of [0]):
Could you please inform me whether it is possible to get polygons number for all items in Group_1?
The only way I know is to copy all names from Group_1 (from right button click menu) and use echo:
Thank you in advance.
Hello again,
Then, the powerful command tabulate comes in handy:
tabulate Group_1 "Parent"
Answer Verified By: Rushan Gizzatullin
Wow, it is perfect! Great thanks for your help.
You are most welcome!