If I want to delete the second points of the selected line, the command line would be:
del line_1.second
If I want to apply the same command to a list of lines, how is it possible? would it be something like this?group_1 is a list of lines.
map group_1 "del" "second"
which shows error: Command "del" not available for object "Line_1"
Dear Vuthy,
A typical PLAXIS command follows the structure of:
command target_object parameter
The delete command is one of the global commands and it targets the global object of geometry every time it is used. That is why in this case, your approach gives this error. The global commands do not require specifying a target object that is why it can be skipped in the command line, e.g. the following are equivalent:
delete Point_1delete Geometry Point_1
You can try the following command until you delete all the lines in Group_1:
delete Groups[-1][-1].Second
here Groups[-1] is the lastly created group and Groups[-1][-1] gets the last object (line) of this group.
Another option is using Python with which you can make a nice for-loop:
for line in g_i.Group_1: g_i.delete(line.Second)
Dear Stefanos,Thank you. Appreciated.