{"id":17022319,"url":"https://github.com/wallabyway/mapboxrevit","last_synced_at":"2025-03-22T17:40:31.652Z","repository":{"id":114129074,"uuid":"208960957","full_name":"wallabyway/mapboxRevit","owner":"wallabyway","description":"View Revit models inside Mapbox ","archived":false,"fork":false,"pushed_at":"2019-09-17T07:06:01.000Z","size":5925,"stargazers_count":25,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-03T22:02:58.402Z","etag":null,"topics":["autodesk-f","mapbox","revit"],"latest_commit_sha":null,"homepage":"https://wallabyway.github.io/mapboxRevit/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wallabyway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-17T04:42:55.000Z","updated_at":"2024-03-08T01:19:59.000Z","dependencies_parsed_at":"2023-06-13T22:45:21.582Z","dependency_job_id":null,"html_url":"https://github.com/wallabyway/mapboxRevit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallabyway%2FmapboxRevit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallabyway%2FmapboxRevit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallabyway%2FmapboxRevit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wallabyway%2FmapboxRevit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wallabyway","download_url":"https://codeload.github.com/wallabyway/mapboxRevit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244998048,"owners_count":20544858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autodesk-f","mapbox","revit"],"created_at":"2024-10-14T07:09:56.357Z","updated_at":"2025-03-22T17:40:31.619Z","avatar_url":"https://github.com/wallabyway.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# View Revit files inside MapBox\nView Revit models inside Mapbox, and click on Revit properties.\n\n## DEMO: https://wallabyway.github.io/mapboxRevit/\n\n\u003cimg src=\"https://user-images.githubusercontent.com/440241/65015225-beaaa980-d8d5-11e9-94ce-4876c628ac09.gif\" width=\"100%\"\u003e\n\n### Notes\n\n- Click on the model to view properties (via the Forge API. Alternatively, use props.db sqlite DB file instead)\n- Use svf-extract to convert Revit file to glTF (see glTF folder)\n\n\n### Bugs\n- Currently the mapbox raycaster does not match correctly, so it cannot get the correct DBID from the gltf.node.name\n\n\n![mapbox-static](https://user-images.githubusercontent.com/440241/65015291-ef8ade80-d8d5-11e9-99e9-d3a5d221f6ca.jpg)\n\n\n### Other examples of MapBox with Revit data:\n\n- Perkins-Will : http://research.perkinswill.com\n- Archistar.AI : http://archistar.ai\n- Ridley-Willow : https://www.willowinc.com\n\n### References\n\n- geo-location in LMV blog: https://forge.autodesk.com/blog/mini-map-geolocation-extension\n- design Automation for Revit (rooms and Spaces): https://github.com/wallabyway/rooms-spaces-revit-plugin\n- https://github.com/wallabyway/propertyServer/blob/master/pipeline.md\n\n## Property SQLite Database usage\n\nThe demo is currently querying Forge service to retrieve meta-data given the dbID selected.\n\nAlternatively, you can use the `props.db` sqlite database file, located in the folder `/gltf`.  Load the file in sqlite and query for properties associated with the dbID you click on.\n\n### Example\n\nWe will replicate the property panel in Forge Viewer.\n\n![properties](https://user-images.githubusercontent.com/440241/65016868-2a8f1100-d8da-11e9-9461-1f4905ca679b.jpg)\n\n1. We selected the 'wall' and it's DBID is 2594.  I used `NOP_VIEWER.getSelection()` to get the value.\n\n\n2. Now open props.db file in a SQLite browser.\n\n3. To filter on `ids.id = 2594` use this SQL command:\n\n```\nselect ids.external_id, attrs.name, attrs.category, attrs.data_type, vals.value from _objects_eav eavs\nleft join _objects_id ids on ids.id = eavs.entity_id \nleft join _objects_attr attrs on attrs.id = eavs.attribute_id\nleft join _objects_val vals on vals.id = eavs.value_id where ids.id = 2594 order by eavs.entity_id\n```\n\n4.  This returns the results:\n\n```\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tparent\t__parent__\t11\t2107\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tinstanceof_objid\t__instanceof__\t11\t2107\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tLevel\t__internalref__\t11\t5\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tLocation Line\tConstraints\t20\tWall Centerline\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tBase Constraint\tConstraints\t20\tLevel 2\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tBase Offset\tConstraints\t3\t-500.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tBase is Attached\tConstraints\t1\t0.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tBase Extension Distance\tConstraints\t3\t0.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tTop Constraint\tConstraints\t20\tUp to level: Roof Line\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tUnconnected Height\tConstraints\t3\t3500.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tTop Offset\tConstraints\t3\t0.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tTop is Attached\tConstraints\t1\t0.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tTop Extension Distance\tConstraints\t3\t0.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tRoom Bounding\tConstraints\t1\t1\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tRelated to Mass\tConstraints\t1\t0.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tStructural\tStructural\t1\t0.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tEnable Analytical Model\tStructural\t1\t0.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tStructural Usage\tStructural\t20\tNon-bearing\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tLength\tDimensions\t3\t19702.0\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tArea\tDimensions\t3\t43.2957000000004\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tVolume\tDimensions\t3\t8.15002486322177\nc85e5be0-d8d5-4148-836f-b55e711ef373-00068ac9\tType Name\tIdentity Data\t20\tSIP 202mm Wall - conc clad\n\n```\n\n...and matches what's in the Forge viewer's property panel (see above).\n\nAlso note that the glTF converted files contain additional meta-data.\n\n- the gltf node 'name' is a string version of the dbID\n- the [metadata.json](https://github.com/wallabyway/mapboxRevit/blob/master/docs/gltf/output.metadata.json) file contains the Revit files [lat, long], which you can feed into Mapbox for positioning of the model.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwallabyway%2Fmapboxrevit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwallabyway%2Fmapboxrevit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwallabyway%2Fmapboxrevit/lists"}