I’m working on a Tool that align elements, but when using entities#transform_entities, the origin of the element doesn’t update.
When perform a transform! over the element it updates (is this a rigid transformation?).
Some example code:
#element = best picked element.definition.entities.transform_entities(Geom::Transformation.translation [0, 12, 0], element.definition.entities.to_a)
Then, when go to Ruby Console and perform the code below (with element selected), the origin came with the old position:
$dc_observers.get_latest_class.redraw_with_undo element the element translate to the old position too.
Is there a way to “commit” this transformation?