Skip to content

.NET API

BoutiqueApi

The Boutique: ready-made designs (solitaires, trilogies, halos, bands, earrings…) grouped in collections that are downloaded from the RhinoArtisan catalog to this computer and imported into the document like the Boutique window does.

from ArtisanPlugin.Scripting import BoutiqueApi

See also the Python package, ra.boutique.

Methods

Method
CatalogThe kits of the online Boutique catalog (rhinoartisan.com), each with whether it is installed and up to date.
DesignsThe designs of the Boutique collections installed on this computer.
DownloadDownloads and installs Boutique kits from the online catalog: the ones named in names (kit name or folder), or, when omitted, every kit not installed yet or updated since.
InsertImports a Boutique design into the document, like the Boutique window’s Open: design is its id or SKU (collection, a name or folder, narrows the search when several collections use the same one).

Catalog

IReadOnlyList<BoutiqueKit> BoutiqueApi.Catalog()

The kits of the online Boutique catalog (rhinoartisan.com), each with whether it is installed and up to date. Needs the internet; read-only.

Returns IReadOnlyList<BoutiqueKit>.

Designs

IReadOnlyList<BoutiqueCatalogDesign> BoutiqueApi.Designs(
    string query = null,
    string collection = null)

The designs of the Boutique collections installed on this computer. query keeps those whose collection, name, description, SKU or id contain every word of it (case-insensitive); collection keeps one collection (name or folder). Read-only. Install more collections with Download().

ParameterTypeDefault
querystringnull
collectionstringnull

Returns IReadOnlyList<BoutiqueCatalogDesign>.

Download

IReadOnlyList<BoutiqueKit> BoutiqueApi.Download(IEnumerable<string> names = null)

Downloads and installs Boutique kits from the online catalog: the ones named in names (kit name or folder), or, when omitted, every kit not installed yet or updated since. An update replaces the kit’s folder. Returns the kits installed. Needs the internet.

ParameterTypeDefault
namesIEnumerable<string>null

Returns IReadOnlyList<BoutiqueKit>.

Insert

IReadOnlyList<Guid> BoutiqueApi.Insert(
    string design,
    string collection = null,
    string metal = null)

Imports a Boutique design into the document, like the Boutique window’s Open: design is its id or SKU (collection, a name or folder, narrows the search when several collections use the same one). metal WHITE, YELLOW or ROSE also sets the document’s metal to that 18K gold, as the window’s metal selector does. Returns the ids of the imported objects.

ParameterTypeDefault
designstringrequired
collectionstringnull
metalstringnull

Returns IReadOnlyList<Guid>.