Reference·.NET · BIM.works_SDK.NET

Fs

Class in BIM.works_SDK.

API catalogue · BIM.works_SDK · Class

.NET#
public class Fs : SdkNamespace

API Namespace for (virtual) file system related calls. These calls allow you to build/query the tree structure used to organize models in BIM.works Repository

Inheritance and interfaces#

Members#

Member Kind Description
Fs(BimWorksClient) Constructor
CreateNode(Guid, string, bool, InputFileType) Method Creates a new Node under the provided parent with the given name. You can also indicate whether this is to be a folder node or not.
CreateNodeIfNotExists(Guid, string, bool, InputFileType) Method Creates a Node but only if it did not already exists. If the Node already existed it's Guid will be returned, otherwise the Guid of the newly created Node is…
DeleteNode(Guid) Method Delete the given Node
DeleteNodeError(Guid, Guid) Method Delete the given Error
DeleteNodeIfExists(string) Method Delete the given Node only if it exists. This will not throw an exception if the Node did not exist. Return true if a Node was found and deleted, or false if…
DeleteNodeVersion(Guid, Guid) Method Delete the given Version
GetNodeByPath(string) Method Returns a Node by it's path
GetNodeByUuid(Guid) Method Return a Node based on it's uuid
GetNodeByVersionUuid(Guid) Method Get a Node by the given versionUuid. This is a quick way to get information about the Node of a Version without first acquiring the UUID of the Node
GetNodeError(Guid) Method Get a Error by it's uuid
GetNodeVersion(Guid) Method Get a NodeVersion by it's uuid
GetRootNode() Method Returns the root node of the current context. For normal user accounts this will return the TreeNode of your account. For API Tokens this will return the Nod…
GetRootNodeUuid() Method Get the UUID of your current root Node
ListNodeErrors(Guid) Method List all the errors on a given node
ListNodeVersions(Guid) Method List all the Versions on the given Node
ListNodes(Guid) Method Lists all the nodes that exist under the given Node uuid
ListNodesRecursive(Guid) Method Lists all the nodes that exist under the given Node uuid. This will recursive into subfolders but the returned list is flattened.
NodeExists(string) Method Returns whether a Node exists at the given path
RenameNode(Guid, string) Method Undelete the given Node
UndeleteNode(Guid) Method Undelete the given Node

Fs(BimWorksClient)#

.NET#
public Fs(BimWorksClient bimWorksClient)

Parameters#

Name Type Description
bimWorksClient BimWorksClient

CreateNode(Guid, string, bool, InputFileType)#

.NET#
public Guid CreateNode(Guid parentNodeUuid, string name, bool isFolder, InputFileType inputFileType)

Creates a new Node under the provided parent with the given name. You can also indicate whether this is to be a folder node or not.

Parameters#

Name Type Description
parentNodeUuid System.Guid
name System.String
isFolder System.Boolean
inputFileType InputFileType

CreateNodeIfNotExists(Guid, string, bool, InputFileType)#

.NET#
public Guid CreateNodeIfNotExists(Guid parentNodeUuid, string name, bool isFolder, InputFileType inputFileType)

Creates a Node but only if it did not already exists. If the Node already existed it's Guid will be returned, otherwise the Guid of the newly created Node is returned.

Parameters#

Name Type Description
parentNodeUuid System.Guid
name System.String
isFolder System.Boolean
inputFileType InputFileType

DeleteNode(Guid)#

.NET#
public bool DeleteNode(Guid nodeUuid)

Delete the given Node

Parameters#

Name Type Description
nodeUuid System.Guid

DeleteNodeError(Guid, Guid)#

.NET#
public bool DeleteNodeError(Guid nodeUuid, Guid errorUuid)

Delete the given Error

Parameters#

Name Type Description
nodeUuid System.Guid
errorUuid System.Guid

DeleteNodeIfExists(string)#

.NET#
public bool DeleteNodeIfExists(string path)

Delete the given Node only if it exists. This will not throw an exception if the Node did not exist. Return true if a Node was found and deleted, or false if the Node did not exists or could not be deleted.

Parameters#

Name Type Description
path System.String

DeleteNodeVersion(Guid, Guid)#

.NET#
public bool DeleteNodeVersion(Guid nodeUuid, Guid versionUuid)

Delete the given Version

Parameters#

Name Type Description
nodeUuid System.Guid
versionUuid System.Guid

GetNodeByPath(string)#

.NET#
public TreeNode GetNodeByPath(string path)

Returns a Node by it's path

Parameters#

Name Type Description
path System.String

GetNodeByUuid(Guid)#

.NET#
public TreeNode GetNodeByUuid(Guid nodeUuid)

Return a Node based on it's uuid

Parameters#

Name Type Description
nodeUuid System.Guid

GetNodeByVersionUuid(Guid)#

.NET#
public TreeNode GetNodeByVersionUuid(Guid nodeVersionUuid)

Get a Node by the given versionUuid. This is a quick way to get information about the Node of a Version without first acquiring the UUID of the Node

Parameters#

Name Type Description
nodeVersionUuid System.Guid

GetNodeError(Guid)#

.NET#
public TreeNodeError GetNodeError(Guid nodeErrorUuid)

Get a Error by it's uuid

Parameters#

Name Type Description
nodeErrorUuid System.Guid

GetNodeVersion(Guid)#

.NET#
public TreeNodeVersion GetNodeVersion(Guid nodeVersionUuid)

Get a NodeVersion by it's uuid

Parameters#

Name Type Description
nodeVersionUuid System.Guid

GetRootNode()#

.NET#
public TreeNode GetRootNode()

Returns the root node of the current context. For normal user accounts this will return the TreeNode of your account. For API Tokens this will return the Node on which the API Token was created.

GetRootNodeUuid()#

.NET#
public Guid GetRootNodeUuid()

Get the UUID of your current root Node

ListNodeErrors(Guid)#

.NET#
public List<TreeNodeError> ListNodeErrors(Guid nodeUuid)

List all the errors on a given node

Parameters#

Name Type Description
nodeUuid System.Guid

ListNodeVersions(Guid)#

.NET#
public ICollection<TreeNodeVersion> ListNodeVersions(Guid nodeUuid)

List all the Versions on the given Node

Parameters#

Name Type Description
nodeUuid System.Guid

ListNodes(Guid)#

.NET#
public List<TreeNode> ListNodes(Guid parentNodeUuid)

Lists all the nodes that exist under the given Node uuid

Parameters#

Name Type Description
parentNodeUuid System.Guid

ListNodesRecursive(Guid)#

.NET#
public List<TreeNode> ListNodesRecursive(Guid nodeUuid)

Lists all the nodes that exist under the given Node uuid. This will recursive into subfolders but the returned list is flattened.

Parameters#

Name Type Description
nodeUuid System.Guid

NodeExists(string)#

.NET#
public bool NodeExists(string path)

Returns whether a Node exists at the given path

Parameters#

Name Type Description
path System.String

RenameNode(Guid, string)#

.NET#
public bool RenameNode(Guid nodeUuid, string newName)

Undelete the given Node

Parameters#

Name Type Description
nodeUuid System.Guid
newName System.String

UndeleteNode(Guid)#

.NET#
public bool UndeleteNode(Guid nodeUuid)

Undelete the given Node

Parameters#

Name Type Description
nodeUuid System.Guid

Inherited members#

  • BimWorksClient
  • Execute(Request)
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.ToString