Reference·.NET · BIM.works_SDK.NET

UploadBuilder

Class in BIM.works_SDK.

API catalogue · BIM.works_SDK · Class

.NET#
public class UploadBuilder

This class is used to set up all the arguments for a new upload

Inheritance and interfaces#

  • System.Object

Members#

Member Kind Description
UploadBuilder(Guid) Constructor Create a new UploadBuilder
DetermineFilename() Method
DetermineFilesize() Method
GetPassThrough() Method
PassThrough(Uri, long) Method Upload by passing a URL to the BIM.works Repository. The Repository will try to download the file and then perform a checkin as normal.
SetPath(string) Method Upload by passing a local path
filename Property
filesize Property
forceReprocessing Property
nodeUuid Property
path Property
progressListener Property
stream Property
uploadOption Property

UploadBuilder(Guid)#

.NET#
public UploadBuilder(Guid nodeUuid)

Create a new UploadBuilder

Parameters#

Name Type Description
nodeUuid System.Guid The UUID of the Node to upload to

DetermineFilename()#

.NET#
public string DetermineFilename()

DetermineFilesize()#

.NET#
public long DetermineFilesize()

GetPassThrough()#

.NET#
public Uri GetPassThrough()

PassThrough(Uri, long)#

.NET#
public UploadBuilder PassThrough(Uri uri, long filesize)

Upload by passing a URL to the BIM.works Repository. The Repository will try to download the file and then perform a checkin as normal.

Parameters#

Name Type Description
uri System.Uri The URL, make sure the BIM.works Repository is able to resolve the domain name, has a route to the host and that credentials are set up correctly
filesize System.Int64 It is required to provide the filesize since not all web servers provide the Content-Length in the HTTP response

Returns#

The current UploadBuilder

SetPath(string)#

.NET#
public UploadBuilder SetPath(string path)

Upload by passing a local path

Parameters#

Name Type Description
path System.String The path on the local machine to the file to upload, this can be either an absolute path or a relative path

Returns#

The current UploadBuilder

filename#

.NET#
public string filename { get; set; }

filesize#

.NET#
public long filesize { get; set; }

forceReprocessing#

.NET#
public bool forceReprocessing { get; set; }

nodeUuid#

.NET#
public Guid nodeUuid { get; set; }

path#

.NET#
public string path { get; set; }

progressListener#

.NET#
public ProgressListener progressListener { get; set; }

stream#

.NET#
public Stream stream { get; set; }

uploadOption#

.NET#
public UploadOption uploadOption { get; set; }

Inherited members#

  • 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