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 4 years ago

nathan6236's avatar

updated 3 years ago

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!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

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
      },
Preview: (hide)
link

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: 4 years ago

Seen: 249 times

Last updated: Feb 05 '21