Main Content

partrepo.collection.new

Create part collection

Since R2026a

    Description

    partrepo.collection.new(collectionName,organizationID) creates a collection with the collection name, collectionName, in the current directory. The function sets the version to 1.0.0. Both arguments must be valid MATLAB identifiers.

    The generated collection contains the CollectionInfo.json file. You can modify this file to change the description and version of the file. The description and version can be of any length. The Name and OrganizationID fields must use valid MATLAB identifiers.

    example

    Examples

    collapse all

    This example shows how to make an empty part collection.

    Use the partrepo.collection.new function to create a new part collection. Specify a collection name and an organization identity.

    collectionName = "MyResistors";
    orgID = "MyOrg";
    
    partrepo.collection.new(collectionName,orgID)

    Input Arguments

    collapse all

    Name of the new collection, specified as a string scalar or character vector. collectionName must be a valid MATLAB identifier.

    Identity of the organization that owns the collection, specified as a string scalar or character vector. organizationID must be a valid MATLAB identifier.

    Version History

    Introduced in R2026a