Selva Compute API Reference - v1.1.2
    Preparing search index...

    Type Alias FileData

    Represents raw file data from Grasshopper/Rhino Compute response.

    This type encapsulates file output from compute operations, with metadata for processing (decoding, naming, organization). Files are typically combined with additional files and packaged into a ZIP archive for download.

    type FileData = {
        data: string;
        fileName: string;
        fileType: string;
        isBase64Encoded: boolean;
        subFolder: string;
    }
    Index

    Properties

    data: string

    File content as a base64-encoded or plain string, depending on IsBase64Encoded

    fileName: string

    Base filename without extension (e.g., "model")

    fileType: string

    File extension including the dot (e.g., ".3dm", ".json"). Appended to FileName to create the full filename

    isBase64Encoded: boolean

    Whether Data is base64-encoded. If true, must be decoded to binary before use. If false, can be used as a plain text string

    subFolder: string

    Directory path for organizing the file in archive structures (e.g., ZIP). Typically empty string for root-level files, or a path like "subfolder/nested"