---
title: "ProjectSettings"
description: "ProjectSettings in the LumiScan VGR settings API: member variables with C++ type, JSON type and default value."
product: "LumiScan VGR / VGR Lite"
component: "lumiscan-vgr"
version: "2.0.0"
display_version: "2.0.0.8"
latest_version: true
language: "en"
url: "https://docs.hdvisionsystems.com/en/lumiscan-vgr/api/settings/project-settings.html"
---

# ProjectSettings – LumiScan VGR / VGR Lite

(no description)

## Member Functions

- **`static ProjectSettings generatePreset()`:** == Member Variables

- **`communicationProtocol`:** `CommunicationType`, default: `\{CommunicationType::Profinet\}`

- **`opcUaPort`:** `int`, default: `{4840}` *JSON Type*: (optional) int TCP port of the OPC UA server (communicationProtocol "OPC_UA"); 1..65535. The server listens on every interface. 4840 is the OPC UA default; move it when another process on the PC already owns 4840 – e.g. ctrlX WORKS forwards host port 4840 into a ctrlX COREvirtual.

- **`m_projectSettingsFile`:** `std::string`, default: `\{""\}`

- **`networks`:** `std::vector< NetworkSettings >` *JSON Type*: array of NetworkSettings objects

- **`objects`:** `std::vector< ObjectSettings >` *JSON Type*: array of ObjectSettings objects

- **`pipelines`:** `std::vector< PipelineSettings >` *JSON Type*: array of PipelineSettings objects

- **`robots`:** `std::vector< RobotSettings >` *JSON Type*: array of RobotSettings objects +*Requirement*: Must contain at least one element.

- **`user`:** `UserSettings` *JSON Type*: UserSettings object

- **`system`:** `SystemSettings` *JSON Type*: SystemSettings object

- **`cameraParameters`:** `std::vector< CameraParameterSettings >` *JSON Type*: (optional) array of CameraParameterSettings objects Only needed for a camera whose driver cannot answer for itself. Omit an entry and VGR asks the camera: intrinsics from its CalibFocalLength/CalibOpticalCenter features, falling back to a fit against the first calibrated cloud; the cloud’s unit from `HDVPointcloudUnit`, then `Scan3dDistanceUnit`, falling back to metres.

- **`recipes`:** `std::vector< RecipeSettings >` *JSON Type*: (optional) array of RecipeSettings objects Named production cycles, each a camera, a pipeline, a robot and the commands to run with them – what OPC UA RunRecipe, the Profinet RunRecipe procedure and script mode’s RUN_RECIPE execute by recipeId. Each entry may be a `"$ref": "<file>#/<pointer>"` into a file of its own.

- **`logging`:** `hdv::log::LoggingSettings`, default: `\{vgr::logging::defaultLoggingSettings()\}` *JSON Type*: (optional) hdv::log::LoggingSettings object Where VGR writes its logs and at what level: `logDir`, `level`, `flushLevel`, `console` (`enabled`, `stream`), `file` (`enabled`, `dailyDirectories`, `maxFileSizeMb`, `maxFiles`, `retentionDays`), `duplicateFilterSeconds` and per-logger overrides in `loggers`. Every key is optional; the defaults are a console log and a log file per logger in a directory per day. The user’s logging.json and the environment (HDV_LOG_LEVEL, HDV_LOG_FLUSH_LEVEL, …) come after this section. The loggers exist before the project is read, so they are reconfigured when it is. See the manual’s Logging Settings page and README_logging.md of hdv’s util module.
