Click or drag to resize

File3dmRead Method (String, File3dmTableTypeFilter, File3dmObjectTypeFilter)

Reads a 3dm file from a specified location.

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static File3dm Read(
	string path,
	File3dmTableTypeFilter tableTypeFilterFilter,
	File3dmObjectTypeFilter objectTypeFilter
)

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: File3dm
new File3dm on success, null on error.
Exceptions
ExceptionCondition
FileNotFoundExceptionIf path does not exist.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.0
See Also