GiD - The personal pre and post processor

Layers

GiD_Event_AfterCreateLayer: will be called just after create the layer 'name'

 


proc GiD_Event_AfterCreateLayer { name } {
}

GiD_Event_AfterRenameLayer: will be called just after the layer 'oldname' has been renamed to 'newname'

proc GiD_Event_AfterRenameLayer { oldname newname } {
}


GiD_Event_BeforeDeleteLayer / GiD_Event_AfterDeleteLayer: will be called just before /after delete the layer 'name'
If GiD_Event_BeforeDeleteLayer returns -cancel- the layer deletion is cancelled.

proc GiD_Event_BeforeDeleteLayer { name } {
    ...body...
    set value ...
    return $value
}


GiD_Event_AfterChangeLayer: will be called just after change some property of the layer 'name'
property' could be ON, OFF, FROZEN, UNFROZEN, ALPHA <AAA>, COLOR <RRRGGGBBB?AAA?>
with RRR, GGG, BBB, AAA from 0 to 255

proc GiD_Event_AfterChangeLayer { name property } {
}

GiD_Event_AfterChangeParentLayer: will be called when moving a layer to another parent of the tree.

proc GiD_Event_AfterChangeParentLayer { oldname newname } {
}


GiD_Event_AfterSetLayerToUse: will be called when setting 'name' as current layer to use

proc GiD_Event_AfterSetLayerToUse { name } {
}


GiD_Event_AfterSendToLayer: will be called when changing entities to the layer 'name'

proc GiD_Event_AfterSendToLayer { name } {
}


GiD_Event_AfterChangeLayersOrSets:

proc GiD_Event_AfterChangeLayersOrSets { num_sets num_off num_back num_transparent } {
}


COPYRIGHT © 2022 · GID · CIMNE