Adjusting Level Elevations

Hi @mostapha ,

I am attempting to adjust the models level elevations inside the editor. The rooms/levels correctly move to the location but the roofs/shading objects do not move. The resulting model looks like this:

Hi @smarentette,

That’s now quite a high-rise building! :smiley:

Try using this code in the script editor on the original model and it should move all the model elements. You need to edit the elevation_change value to match what is needed in your model. I put -100 as a placeholder.

from model_editor import Editor
from ladybug_geometry.geometry3d.pointvector import Vector3D

elevation_change = -100  # edit the value here
move_vector = Vector3D(0, 0, elevation_change)

editor = Editor()
editor.model.move(move_vector)

editor.update()

Let me know if you have any questions.

1 Like