---
title: "XmpBoolean constructor"
url: "https://reference.aspose.com/cad/python-net/aspose.cad.xmp.types.basic/xmpboolean/__init__/"
product: "Aspose.CAD for Python via .NET API References"
---


## __init__ {#}

Initializes a new instance of the [`XmpBoolean`](/cad/python-net/aspose.cad.xmp.types.basic/xmpboolean) class with default value.



```python
def __init__(self):
    ...
```




## __init__ {#bool}

Initializes a new instance of the [`XmpBoolean`](/cad/python-net/aspose.cad.xmp.types.basic/xmpboolean) class based on boolean value.



```python
def __init__(self, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| value | bool | The Boolean value. Allowed values are True or False. |


## __init__ {#str}

Initializes a new instance of the [`XmpBoolean`](/cad/python-net/aspose.cad.xmp.types.basic/xmpboolean) class.



```python
def __init__(self, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| value | str | The value. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | value |
| ArgumentException | Invalid string value;value |





### See Also
* module [`aspose.cad.xmp.types.basic`](../../)
* class [`XmpBoolean`](/cad/python-net/aspose.cad.xmp.types.basic/xmpboolean)
