GiD - The personal pre and post processor
Definition
GiD_Layers create|delete|edit|get|list|window|exists|is_forbidden_name
- GiD_Layers create <layer>
To create a new layer. <layer> must be the full name (e.g. if a layer B has as parent A then must use as full name A//B)
- GiD_Layers delete <layer>
To delete a layer
- GiD_Layers edit name|color|opaque|visible|frozen|parent|state|to_use <layer> <value>
To modify layer properties:
name: change its name
color: set the color to draw its entities (with format #rrggbbaa)
opaque: opaque or transparent (0 or 1)
visible: set visibility of its entities (0 or 1)
frozen: set frozen to disable select its entities (0 or 1)
parent: to change the parent of a layer
state: to change the layer state (normal, disabled or hidden). hidden layers are not listed or visible in windows.
to_use: in this case <value> must not be provided, and <layer> is the one to be set as current 'layer to use' (where new entities will be created)
- GiD_Layers get color|opaque|visible|frozen|parent|state|num_entities|num_conditions|id|back|to_use|all_properties|bounding_box <layer> geometry|mesh
To obtain the current value of some property:
num_entities: the total number of geometric or mesh entities that belong to the layer
num_conditions: the total number of conditions applied to the layer
id: the numeric identifier of the layer
back: return 1 if the layer has entities in its 'back' layer (entities in back are not drawn until they are sent again to front)
to_use: in this case <layer> must not be provided, it is returned the current 'layer to use' (where new entities will be created)
all_properties: return a list of property value with the properties of the layer
bounding_box: in this case it is required an extra word geometry|mesh and will return the bounding box "min_x min_y min_z max_x max_y max_z" of the entities of this category belonging to the layer
- GiD_Layers list ?<parent>? ?descendants?
To get the list of full names of the current layers.
If a parent is specified, then only relative names of child layers will be listed. Root parent could be specified with an empty string ""
If descendants is specified return a list of all descendants (childs, childs of childs, ...)
- GiD_Layers window open|close|update
Show or hide the layers window or update its content
- GiD_Layers exists <layer>
Return 1 if layer exists, 0 else
- GiD_Layers is_forbidden_name <layer>
Return 1 if layer name has forbidden syntax
COPYRIGHT © 2022 · GID · CIMNE