Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example:
in: GiD_Info back_layers
out: Layer2_back

    • -bbox bounding_box ?-use geometry|mesh? <layer_name_1> <layer_name_2> ...

Returns an item with a list of six real numbers representiong representing two coordinates (x1,y1,z1,x2,y2,z2) corner coordinates "min_x min_y min_z max_x max_y max_z" which define the bounding box of the entities that belong to the list of layers.
If the option -use geometry|mesh is used, the command returns the bounding box of the geometry or the bounding box of the mesh. (otherwise it consider the current view mode in use)
If the list of layers is empty , the maximum bounding box is returnedthe result of all layers (not zero layers) is returned

In case of zero entities the bounding box return the values "0.0 0.0 0.0 0.0 0.0 0.0"

Note: Until GiD 17.1.3d the flag was -bbox and return a different syntax "{max_x max_y max_z min_x min_y min_z}", with a sublist and max - min swapped.  Can be used for back compatibility with old scripts.


    • ?-count? -entities <type> ?-elementtype <elementtype>? ?-higherentity <num>?: One of the following arguments must be given for <type>: nodes, elements, points, lines, surfaces or volumes. A layer name must also be given. The command will return the nodes, elements, points, lines surfaces or volumes of that layer. If -count is set then the amound amount of entities is returned instead of the list of its ids.


For elements it is possible to specify -elementtype <elementtype>to get only this kind of elements.
-higherentity <num>Allow to get only entities with this amount of higherentities.

    • -canbedeleted <layer_name> returns a list with two items: a boolean 0|1 to know if layer or its child layers have some entity or parts in back layer or conditions over the layer. the second item is a message explaining the cause to not delete it directly.

...