Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

OS reset surface vertices when resetting XYZ origins of the space

asked 2020-09-25 11:47:15 -0500

xchen gravatar image

hi i'm trying to reset the XYZ origins of a space to 0,0,0, but find that the vertices of the surfaces associated with the space stays the same and the geometry all get messed up. Is there a way to reset the surfaces along with the XYZ origin changes of the space?

I used the space.resetXOrigin() in the measure.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-09-27 14:22:21 -0500

I think this cleanup_group method in this measure that cleans up space and other surface group origins may do what you want.

This method gets a bounding box of the surface group and resets origin to the min x,y,z. But you could change that to set it to model 0,0,0.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2020-09-25 11:47:15 -0500

Seen: 69 times

Last updated: Sep 27