function tixiAddExternalLink(handle, parentPath, pathOrUrl, filename, mode)
    % this file was automatically generated from tixi.h on 2025-09-30

    if (ischar(handle))
        error('Invalid type of argument "handle"');
    end

    if not(ischar(parentPath))
        error('Invalid type of argument "parentPath"');
    end

    if not(ischar(pathOrUrl))
        error('Invalid type of argument "pathOrUrl"');
    end

    if not(ischar(filename))
        error('Invalid type of argument "filename"');
    end

    if (ischar(mode))
        error('Invalid type of argument "mode"');
    end

    try
        tixi3_matlab('tixiAddExternalLink', handle, parentPath, pathOrUrl, filename, mode);
    catch err
        error(err.message)
    end
end

