---
title: "object.envelope.makeWithTopObject: Make with Top Object — Vector kit command — Kition"
description: "Makes the topmost selected path the envelope of the other selected objects; answers its id."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/object.envelope.makeWithTopObject"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/object.envelope.makeWithTopObject](https://developer.kition.ai/docs/kits/vector/commands/object.envelope.makeWithTopObject)

# object.envelope.makeWithTopObject

**Make with Top Object.** Makes the topmost selected path the envelope of the other selected objects; answers its id.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | `integer[]` | no | object IDs |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "object.envelope.makeWithTopObject" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `ids`. vector_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    }
  },
  "returns": "{id}",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
