RhinoCommon API
File3dmRead Method (String, File3dmTableTypeFilter, File3dmObjectTypeFilter) |
Reads a 3dm file from a specified location.
Namespace: Rhino.FileIO
Assembly: RhinoCommon (in RhinoCommon.dll)
public static File3dm Read( string path, File3dmTableTypeFilter tableTypeFilterFilter, File3dmObjectTypeFilter objectTypeFilter )
Public Shared Function Read ( path As String, tableTypeFilterFilter As File3dmTableTypeFilter, objectTypeFilter As File3dmObjectTypeFilter ) As File3dm
Parameters
- path
- Type: SystemString
The file to read. - tableTypeFilterFilter
- Type: Rhino.FileIOFile3dmTableTypeFilter
If tableTypeFilterFilter is None, then everything in the archive is read. Otherwise tableTypeFilterFilter identifies what tables should be read. - objectTypeFilter
- Type: Rhino.FileIOFile3dmObjectTypeFilter
If objectTypeFilter is not None, then is a filter made by bitwise oring values to select which types of objects will be read from the model object table.
Return Value
Type: File3dmnew File3dm on success, null on error.
| Exception | Condition |
|---|---|
| FileNotFoundException | If path does not exist. |