
## write_to {#aspose.cad.StreamContainer}

Copies the contained data to another [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer).



```python
def write_to(self, stream_container):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream_container | [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer) | The stream container to copy to. |


## write_to {#aspose.cad.StreamContainer-int}

Copies the contained data to another [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer).



```python
def write_to(self, stream_container, length):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream_container | [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer) | The stream container to copy to. |
| length | int | The bytes count to write. |
### Exceptions
| Exception | Description |
| :- | :- |
| [`FrameworkException`](/cad/python-net/aspose.cad.cadexceptions/frameworkexception) | Copy operation cannot complete. Cannot read  + count +  bytes. |





### See Also
* module [`aspose.cad`](../../)
* class [`FrameworkException`](/cad/python-net/aspose.cad.cadexceptions/frameworkexception)
* class [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer)
