Skip to content

Attribute

Jasper Quillweld edited this page Oct 20, 2026 · 1 revision

Attribute

A value or property of a part (attribute usage).

Attribute is one of the friendly builder classes — the name without a Builder/Usage/Definition suffix. It is a subclass of Builder and produces a *Usage node.

Usage

from sysml2py import Attribute

mass = Attribute('mass')
print(mass.dump())
attribute mass;

Definition

from sysml2py import Attribute

d = Attribute('mass', kind='definition')
print(d.dump())
attribute def mass;

Related

Clone this wiki locally