This function returns the full path of a file or folder when passed a relative path to a file or folder
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:
Prefixes are entered at the front of the path argument.
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 |