---
Product: Aspose.3D
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/python/threemfformatdetector
---

# ThreeMfFormatDetector

## Overview

`ThreeMfFormatDetector` is a class in Aspose.3D FOSS for Python.
Inherits from: `FormatDetector`.

ThreeMfFormatDetector.detect determines the 3MF file format from a stream and optional file name, returning a FileFormat.

This class declares 2 methods for ThreeMfFormatDetector objects in Python programs.
Available methods include: `__init__`, `detect`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Calls __init__ on this ThreeMfFormatDetector instance. |
| `detect(stream, file_name: str)` → `'FileFormat'` | Determines the 3MF file format from a stream and optional file name, returning a FileFormat |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)