Home Search

DriveWorks Solo 22
FsGetFullPath

Send Feedback

FsGetFullPath

This function returns the full path of a file or folder when passed a relative path to a file or folder

Syntax

FsGetFullPath([Path])

Where:

Path is the part path to a folder or file.

Prefixes can also be used to reference specific folders in DriveWorks

Accepted prefixes:

  • <Project> - Returns the full path of the Project folder.
  • <Specification> - Returns the full path of the Specification folder.
  • <SpecificationMetadata> - Returns the full path of the Meta Data folder DriveWorks creates for each Specification.
  • <GroupContent> - Returns the full path of the Group Content folder.

Prefixes are entered at the front of the path argument.

Examples

Rule

Meaning
FsGetFullPath("Documents\Quotations") This will return the full file path C:\DriveWorks\Projects\Documents\Quotations IF the project folder is C:\DriveWorks\Projects AND the rule is being viewed inside a project (ie not in a specification)
FsGetFullPath("Documents\Quotations\Myquote.xlsx") This will return the full file path C:\DriveWorks\Projects\Documents\Quotations\Myquote.xlsx IF the project folder is C:\DriveWorks\Projects AND the rule is being viewed inside a project (ie not in a specification)
FsGetFullPath("Documents\Quotations") This will return the full file path C:\DriveWorks\Specifications\Specification999\Documents\Quotations IF the specification folder is C:\DriveWorks\Specifications\Specification999 AND the rule is being viewed inside a specification (ie not when editing the project)
FsGetFullPath("Documents\Quotations\Myquote.xlsx") This will return the full file path C:\DriveWorks\Specifications\Specification999\Documents\Quotations\Myquote.xlsx IF the specification folder is C:\DriveWorks\Specifications\Specification999 AND the rule is being viewed inside a specification (ie not when editing the project)
FsGetFullPath("<Specification>\Documents\Quotations") This will return the full file path C:\DriveWorks\Specifications\Specification999\Documents\Quotations IF the specification folder is C:\DriveWorks\Specifications\Specification999 AND the rule is being viewed inside a specification OR when editing the project
FsGetFullPath("<Specification>\Documents\Quotations\Myquote.xlsx") This will return the full file path C:\DriveWorks\Specifications\Specification999\Documents\Quotations\Myquote.xlsx IF the specification folder is C:\DriveWorks\Specifications\Specification999 AND the rule is being viewed inside a specification OR when editing the project