Click or drag to resize

HostUtilsGetAbsolutePath Method

Call this method to convert a relative path to an absolute path relative to the specified path.

Namespace:  Rhino.Runtime
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static bool GetAbsolutePath(
	string relativePath,
	bool bRelativePathisFileName,
	string relativeTo,
	bool bRelativeToIsFileName,
	out string pathOut
)

Parameters

relativePath
Type: SystemString
Relative path to convert to an absolute path
bRelativePathisFileName
Type: SystemBoolean
If true then lpsFrom is treated as a file name otherwise it is treated as a directory name
relativeTo
Type: SystemString
File or folder the path is relative to
bRelativeToIsFileName
Type: SystemBoolean
If true then lpsFrom is treated as a file name otherwise it is treated as a directory name
pathOut
Type: SystemString
Reference to string which will receive the computed absolute path

Return Value

Type: Boolean
Returns true if parameters are valid and lpsRelativePath is indeed relative to lpsRelativeTo otherwise returns false
Version Information

Rhino for Windows

Supported in: 6.2
See Also