---
title: "get_first_value method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad.fileformats.cad.cadobjects/cadxdata/get_first_value/"
product: "Aspose.CAD for Python via .NET API References"
---


## get_first_value {#aspose.cad.fileformats.cad.cadobjects.CadXdata-aspose.cad.fileformats.cad.CadEntityAttribute}

Get first occurrence of an attribute from XData


### Returns 


[`CadCodeValue`](/cad/python-net/aspose.cad.fileformats.cad/cadcodevalue) representation of a value


```python
def get_first_value(self, xdata, attribute):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| xdata | [`CadXdata`](/cad/python-net/aspose.cad.fileformats.cad.cadobjects/cadxdata) | Xdata array |
| attribute | [`CadEntityAttribute`](/cad/python-net/aspose.cad.fileformats.cad/cadentityattribute) | Attribute code |



### See Also
* module [`aspose.cad.fileformats.cad.cadobjects`](../../)
* class [`CadCodeValue`](/cad/python-net/aspose.cad.fileformats.cad/cadcodevalue)
* class [`CadXdata`](/cad/python-net/aspose.cad.fileformats.cad.cadobjects/cadxdata)
