
# TObjectId enumeration

Note, the eTraceObject and eSpareViaObject values are for internal use only and are not used directly with PCB documents (these values are used for Signal Integrity and Situs auto routing modules).

```csharp
public enum TObjectId
```

**Namespace:** PCB · **Assembly:** Altium.SDK.Interfaces

## Values

| Name | Value | Description |
| --- | --- | --- |
| `eNoObject` | 0 |  |
| `eArcObject` | 1 |  |
| `ePadObject` | 2 |  |
| `eViaObject` | 3 |  |
| `eTrackObject` | 4 |  |
| `eTextObject` | 5 |  |
| `eFillObject` | 6 |  |
| `eConnectionObject` | 7 |  |
| `eNetObject` | 8 |  |
| `eComponentObject` | 9 |  |
| `ePolyObject` | 10 |  |
| `eRegionObject` | 11 |  |
| `eComponentBodyObject` | 12 |  |
| `eDimensionObject` | 13 |  |
| `eCoordinateObject` | 14 |  |
| `eClassObject` | 15 |  |
| `eRuleObject` | 16 |  |
| `eFromToObject` | 17 |  |
| `eDifferentialPairObject` | 18 |  |
| `eViolationObject` | 19 |  |
| `eEmbeddedObject` | 20 |  |
| `eEmbeddedBoardObject` | 21 |  |
| `eSplitPlaneObject` | 22 |  |
| `eTraceObject` | 23 |  |
| `eSpareViaObject` | 24 |  |
| `eBoardObject` | 25 |  |
| `eBoardOutlineObject` | 26 |  |

## Returned by

[IPCB_PadViaTemplate.ObjectID](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PadViaTemplate.md#objectid), [IPCB_Primitive.ObjectID](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Primitive.md#objectid)

## Accepted by

[IPCB_Board.ContextMenuObjectCount](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Board.md#contextmenuobjectcount), [IPCB_Board.DrawMode](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Board.md#drawmode), [IPCB_Board.ViewConfigOpacity2D](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Board.md#viewconfigopacity2d), [IPCB_Group.GetPrimitiveAt](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_Group.md#getprimitiveat), [IPCB_PadViaLibraryManager.CreateTemplate](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PadViaLibraryManager.md#createtemplate), [IPCB_PrimitiveCounter.GetObjectCount](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrimitiveCounter.md#getobjectcount), [IPCB_PrinterOptions.PlotMode](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_PrinterOptions.md#plotmode), [IPCB_ServerInterface.PCBClassFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ServerInterface.md#pcbclassfactory), [IPCB_ServerInterface.PCBObjectFactory](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_ServerInterface.md#pcbobjectfactory), [IPCB_SystemOptions.DrawMode](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_SystemOptions.md#drawmode), [IPCB_SystemOptions.HoldShiftToSelectObjectId](https://altiumdeveloper.github.io/ad-sdk-docs/reference/pcb/IPCB_SystemOptions.md#holdshifttoselectobjectid)

## Examples

Used in the SDK examples: [Ciiva](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Ciiva/Source%20Code/CiivaBOMDocument.cs#L89), [Extension_BOMManager](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_BOMManager/Source%20Code/PcbBom.cs#L39), [Extension_CreatePCBLib](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_CreatePCBLib/Source%20Code/Commands.cs#L90), [Extension_CreateSchComponent](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_CreateSchComponent/Source%20Code/Commands.cs#L36), [Extension_ModifySchWireColor](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_ModifySchWireColor/Source%20Code/Commands.cs#L36), [Extension_PCBUndoRedo](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_PCBUndoRedo/Source%20Code/Commands.cs#L41), [Extension_Pad_SolderMask](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_Pad_SolderMask/Source%20Code/Commands.cs#L34), [Extension_PcbLibComponentToSTEP](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_PcbLibComponentToSTEP/Source%20Code/Commands.cs#L43), [Extension_PlaceAndMovePcbComponent](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_PlaceAndMovePcbComponent/Source%20Code/Commands.cs#L34), [Extension_PlacePad](https://github.com/AltiumDeveloper/ad-sdk-examples/blob/5b144f54740a53ec578b3b6c3f902b831e0b1144/Extension_PlacePad/Source%20Code/PlacePadCommand.cs#L38).
