Skip to content

pytha.set_element_history

daniel-flassig edited this page Jun 26, 2020 · 7 revisions

Assigns history information to a group or part created by the plugin. If a corresponding edit extension is also defined in the same plugin, then the user can afterwards use the "Edit" button to invoke the edit extension for the given part or group. The edit extension, in turn, can retrieve the history information again with get_element_history.

pytha.set_element_history(element, history [,id]) 
element:set_element_history(history [,id]) 
Parameter Type Description
element element_handle or {...} A single element handle or a table of element handles
history {...} Table containing the history information
id string Optional: the id to select the relevant edit extension

Return values

none

Note:

The history table is saved recursively (including sub-tables). All table-entries are saved, where the key is a number or string and where the value may be a number, string, table, element_handle.

See also:

pytha, get_element_history, element handles, set_element_attributes, set_element_name, set_element_material, set_element_layer

Clone this wiki locally