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

Any way to move a complete floorplan in floorspace.js to a new place on the grid?

asked 2021-02-04 17:09:12 -0600

nathan6236's avatar

updated 2021-04-14 20:01:38 -0600

Created a pretty complex floorplan, however it is not centered on the axes which make viewing it in OS a pain. Any way to just pickup and move the whole floorplan in floorspace.js? I would love to avoid starting over.

Cheers!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-02-05 10:09:08 -0600

That is a great idea, and you could include in an enhancement request in the FloorspaceJS repository.

Having said, that it is a JSON file, so someone who is comfortable with JSON and coding could write a script to do an x and y offset in the JSON file and then open that modified copy back on FloorSpaceJS. For reference below is what each vertex object looks like. You could loop through them and apply any x and y offset to each vertex. This could be Python, Ruby, or really anything, as it isn't tied into a measure or FloorSpaceJS, just a generic script to alter a JSON file.

      {
        "edge_ids": [
          "56",
          "133"
        ],
        "id": "53",
        "x": 190,
        "y": 35
      },
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

Training Workshops

Careers

Question Tools

Stats

Asked: 2021-02-04 17:09:12 -0600

Seen: 215 times

Last updated: Feb 05 '21