# PinAttachAction class

Namespace: [Grasshopper2.Undo.Actions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.undo.actions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-a75e-41b5-9ad5-653b2e5e4999")]
[UiName("Attach Pin")]
public sealed class PinAttachAction : Action
```

Undo action for attaching a pin to an object.

## Constructors

- [PinAttachAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.pinattachaction/ctor.md): (2 overloads) Create a new pinning action.

## Properties

- [CushionId](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.pinattachaction/cushionid.md)
- [PinId](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.pinattachaction/pinid.md)
- [PinningIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.pinattachaction/pinningindex.md)

## Methods

- [PerformRedoInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.pinattachaction/performredointernal.md)
- [PerformUndoInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.pinattachaction/performundointernal.md)
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.pinattachaction/store.md)

## Inherited Members

- From [Action](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action.md): [Response](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/response.md), [State](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/state.md), [Extends](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/extends.md), [PerformRedo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/performredo.md), [PerformUndo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/performundo.md), [PrepareRedo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/prepareredo.md), [PrepareRedoInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/prepareredointernal.md), [PrepareUndo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/prepareundo.md), [PrepareUndoInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/prepareundointernal.md)
