rhino3dm.FileReference

class rhino3dm.FileReference

Manages a reference to an existing or non-existing file, using either or both absolute or relative paths. Once constructed, this class is immutable.

static CreateFromFullAndRelativePaths(fullPath: str, relativePath: str) → FileReference

Returns a new file reference. This returns a new instance even if the path does not exist.

Parameters:
  • fullPath – A full path. This parameter cannot be null.

  • relativePath – A relative path. This parameter can be null.

Returns:

A file reference to the specified paths.

static CreateFromFullPath(fullPath: str) → FileReference

Returns a new file reference. This returns a new instance even if the path does not exist.

Parameters:

fullPath – A full path.

Returns:

A file reference to the specified path.

property FullPath: str

Gets the absolute path of this file reference.

property FullPathStatus: FileReferenceStatus

Gets the file reference status.

property IsSet: bool

Returns an indication of the fact that the reference is actually set to a non-null value.

property RelativePath: str

Gets the relative path of this file reference.