.NET API
BasketUpdateApi
Maintenance for baskets saved by old Artisan versions. Creating and editing baskets is BasketApi; this facade only migrates the legacy single-object format (BasketApi is not partial, hence a separate class).
from ArtisanPlugin.Scripting import BasketUpdateApi
See also the Python package, ra.basket.
Methods
| Method | |
|---|---|
UpdateLegacyBaskets | The ArtisanBasketUpdate command, headless: finds every legacy basket (one object carrying “ObjectType = Basket” + parameters in its geometry dictionary, as saved by old Artisan versions, hidden or not), recomputes it against its mother gem with the current kernel and replaces it by the modern editable “Basket” group (metal material, RaObjectUserData with the parameters and the mother). |
UpdateLegacyBaskets
IReadOnlyList<Guid> BasketUpdateApi.UpdateLegacyBaskets()
The ArtisanBasketUpdate command, headless: finds every legacy basket (one object carrying “ObjectType = Basket” + parameters in its geometry dictionary, as saved by old Artisan versions, hidden or not), recomputes it against its mother gem with the current kernel and replaces it by the modern editable “Basket” group (metal material, RaObjectUserData with the parameters and the mother). Baskets whose mother gem is gone or that fail to compute are left untouched. Returns the ids of the new baskets (BasketApi.Find / handles); empty when the document has no legacy baskets.
Returns IReadOnlyList<Guid>.