Manifest file
The manifest.json file describes the files in the SGPK package with the following schema with reference to Table 1.
{
"version" : "string",
"name" : "string",
“source" : "string",
"splitgraphic" : "boolean",
"files" : [{
"id" : "integer",
"name" : "string",
"source" : "string"
"creator" : "string"
}
],
"occurrences" : [{
"id" : "integer",
"source" : "integer",
"name" : "string",
“modelBounding” : {“min”:{X, Y, Z}, "max": {X, Y, Z}},
"data" : {
"scenegraph" : "string",
"graphics" : "string"
}
}
]
}
Table 1: manifest.json file data structure
| Key | Description |
|---|---|
| Manifest: | |
"version" | The SGPK version |
"name" | Navisworks file name |
"source" | Navisworks application name including its version information |
"splitgraphics" | Indicates whether graphics file(graphics.scz file)is split by source models |
"files" | Source model files loaded in Navisworks file |
"occurrences" | Instances of source models |
| Files: | |
"files[n].id" | Unqiue ID for the source model file |
"files[n].name" | The file name of source model |
"files[n].source" | The original source file name of the source model. Null if unknown. |
"files[n].creator" | Name of creating file loader or design application. Null if unknown |
| Occurrence: | |
"occurrences[n].id" | Unique ID for the source model instance |
"occurrences[n].source" | Source file ID, one occurrence is an instance of file from files secton |
"occurrences[n].name" | Name of occurrence. Should be as same as file name. |
"occurrences[n].modelBounding" | Bounding box of source model |
"occurrences[n].data" | Data files for this occurrence |
"occurrences[n].scenegraph" | Scene-graph metadata file path |
"occurrences[n].graphics" | Hoops .scz file path |
Example
For more information, see the following complete example of manifest.json file:
{
"version": "1.1",
"name": "House.nwd",
"source": "Autodesk Navisworks Manage 2024",
"splitgraphics": false,
"files": [
{
"id": 1,
"name": "House.nwd",
"source": "D:\\FanRong\\test\\NW\\Revit\\House.rvt",
"creator": "LcNwcLoaderPlugin:lcldrevit",
},
],
"occurrences": [
{
"id": 1,
"source": 1,
"data": {
"scenegraph": "occ/1/scenegraph.json",
"graphics": "occ/1/graphics.scz",
}
},
],