First time here? Check our help page!
2

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

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!

nathan6236's avatar
21
nathan6236
asked 2021-02-04 17:09:12 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2021-04-14 20:01:38 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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
      },
David Goldwasser's avatar
20.4k
David Goldwasser
answered 2021-02-05 10:09:08 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments