
## __init__ {#io.RawIOBase}

Initializes a new instance of the [`StreamSource`](/cad/python-net/aspose.cad.sources/streamsource) class.



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


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | The stream to open. |


## __init__ {#io.RawIOBase-bool}

Initializes a new instance of the [`StreamSource`](/cad/python-net/aspose.cad.sources/streamsource) class.



```python
def __init__(self, stream, dispose_stream):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | The stream to open. |
| dispose_stream | bool | if set to `true` the stream will be disposed. |



### See Also
* module [`aspose.cad.sources`](../../)
* class [`StreamSource`](/cad/python-net/aspose.cad.sources/streamsource)
