Skip to content

.NET API

NamedPendantApi

Name pendant (the ArtisanNamedPendant tool): a written name as a solid pendant, editable afterwards (smart component with parameter user data).

from ArtisanPlugin.Scripting import NamedPendantApi

See also the guide, Accessories › Named pendant, and the Python package, ra.named_pendant.

Methods

Method
CreateDefaults: font Arial bold, height 5, thickness 0.4, spacing 0.5.

Create

IReadOnlyList<Guid> NamedPendantApi.Create(
    string text,
    Plane? plane = null,
    double height = 0,
    double thickness = 0,
    string font = null,
    string element = null)

Defaults: font Arial bold, height 5, thickness 0.4, spacing 0.5. Returns the ids of the created breps (letters + plate/rail). element = name of a saved NamedPendant element (ElementsApi.List(“NamedPendant”)) to start from; text and the explicit arguments override it.

ParameterTypeDefault
textstringrequired
planePlane?null
heightdouble0
thicknessdouble0
fontstringnull
elementstringnull

Returns IReadOnlyList<Guid>.