---
name: "BIS_fnc_exportCfgGroups"
type: function
status: ok
groups: ["Diagnostic"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_exportCfgGroups
revid: 337401
updated: 2023-01-25T12:37:23Z
---

# BIS_fnc_exportCfgGroups

*Function · Diagnostic · Arma 3 v1.00*

## Description

Export group or object composition for use in CfgGroups. The result will be copied to clipboard.

## Syntax

*syntax inferred from the function header*

```sqf
[param0, param1] call BIS_fnc_exportCfgGroups
```

**Parameters:**

- `param0` — 0: position (for supported types see BIS_fnc_position). Screen center is used by default
- `param1` — 1: objects to be saved. Currently selected objects in curator are used by default
  ARRAY of OBJECTs - specific objects to be saved
  array in format used by nearEntities, which automatically get nearby objects
      0: STRING or ARRAY of STRINGS - object types
      1: NUMBER - radius in metres

**Returns:** STRING

## Function header

The comment at the top of the function's file in the game; this page's description, params, syntax, returns come from it.

```sqf
/*
Description:
Export group or object composition for use in CfgGroups. The result will be copied to clipboard.

Parameter(s):
    0: position (for supported types see BIS_fnc_position). Screen center is used by default
    1: objects to be saved. Currently selected objects in curator are used by default
        ARRAY of OBJECTs - specific objects to be saved
        array in format used by nearEntities, which automatically get nearby objects
            0: STRING or ARRAY of STRINGS - object types
            1: NUMBER - radius in metres

Returns:
STRING
*/
```

## Community notes

**.kju** — 2023-01-25

How to export objects to a mod/config composition:

1. Open the console (CTRL+D in Eden, ESC in Zeus)
1. Select the desired object set
1. Execute 

```sqf
[nil,get3DENSelected "" select 0] call BIS_fnc_exportCfgGroups; //Eden
[nil,nil] call BIS_fnc_exportCfgGroups; //Zeus
```

1. Paste (CTRL+V) in definitions into a text file
1. Create a config.cpp
1. Integrate into `class CfgGroups/Empty`

<sub>Source: [BI Community Wiki — BIS fnc exportCfgGroups](https://community.bistudio.com/wiki/BIS_fnc_exportCfgGroups) (revision 337401).</sub>
