.NET API
GemsByNetworkApi
Gems on a network of curves (the ArtisanGemsByNetwork tool, headless): fills a network of intersecting curves with stones, sizing them so they meet at the nodes. The stones are baked in one group that remembers the curves and the values it was filled with, so the whole layout can be redone with other values (SmartComponentApi.Find on any of its gems, or edit_object). Each stone is also a gem of its own (GemApi). ArtisanEdit on a stone edits that stone; a regenerated layout starts again from the automatic one and drops the stones changed by hand.
from ArtisanPlugin.Scripting import GemsByNetworkApi
See also the guide, Gemsets › Gems by network, and the Python package, ra.gems_by_network.
Methods
| Method | |
|---|---|
Create | Fills curveIds with stones and bakes them as loose gems. |
Create
IReadOnlyList<Guid> GemsByNetworkApi.Create(
IEnumerable<Guid> curveIds = null,
double gemSize = 0,
double minDistance = 0,
double moveInZ = double.NaN,
bool? fitToEnd = null)
Fills curveIds with stones and bakes them as loose gems. Millimetres; 0 keeps the default: the user’s saved Gems on Network defaults when there are any, otherwise the tool’s (gemSize 1.0, minDistance 0.1, moveInZ 0: the stones sit on the curves). curveIds null/empty uses the current selection. Returns the ids of the baked gems.
| Parameter | Type | Default |
|---|---|---|
curveIds | IEnumerable<Guid> | null |
gemSize | double | 0 |
minDistance | double | 0 |
moveInZ | double | double.NaN |
fitToEnd | bool? | null |
Returns IReadOnlyList<Guid>.