# SimConnect_CameraSetUsingCameraDefinition The **SimConnect\_CameraSetUsingCameraDefinition** function is used to set specific parts of the camera struct based on a predefined camera definition from the cameras.cfg file. This function can only be used when the add-on camera has been acquired.   ##### Syntax ``` cpp HRESULT SimConnect_CameraSetUsingCameraDefinition( HANDLE hSimConnect, HANDLE hSimConnect, const char* cameraDefinitionName ); ```   ##### Parameters {{< table-wrapper >}} | Parameter | Description | Type | |------------------------|--------------------------------------------------------------------------------------------------------------------------------|---------| | *hSimConnect* | Handle to a SimConnect object. | Integer | | *cameraDefinitionName* | This is the [Title](../../../../content-configuration/cfg-files/cameras.cfg/#Title) string of a camera definition to use. | String | {{< /table-wrapper >}}   ##### Return Values The function returns an **HRESULT**. Possible values include, but are not limited to, those in the following table. {{< table-wrapper >}} | Return value | Description | |--------------|-------------------------| | S\_OK | The function succeeded. | | E\_FAIL | The function failed. | {{< /table-wrapper >}}   ##### Example N/A   ##### Remarks The data that will be used from the given camera definition is as follows: - **Position** - From the `InitialXyz` parameter - **Pbh** - From the `InitialPbh` parameter - **FOV** - From the `Initialzoom` parameter