Skip to content

Python package

ra.user_element

User-defined elements.

import rhinoartisan as ra

Wraps ArtisanPlugin.Scripting.UserElementApi.

Functions

Function
create()Tags the given objects as a user element named name (the tool’s whole flow: group them, attach the UserElement user data, and give non-gem solid geometry the metal material).
list()Names of the user elements in the active document (read-only).

ra.user_element.create()

ra.user_element.create(object_ids: Sequence[IdLike], name: str) -> str

Tags the given objects as a user element named name (the tool’s whole flow: group them, attach the UserElement user data, and give non-gem solid geometry the metal material). Returns the element’s unique id.

ParameterType
object_idsSequence[IdLike]required
namestrrequired

ra.user_element.list()

ra.user_element.list() -> List[str]

Names of the user elements in the active document (read-only).