Skip to content

expression_item

freecad.datamanager_wb.domain.expression_item

Lightweight representation of an expression binding.

This module defines a small dataclass used to display and select expression engine entries in the UI.

ExpressionItem(object_name, lhs, rhs, operator='=') dataclass

A single expression binding shown in the UI.

Instances represent one expression assignment (left-hand side and right-hand side) that belongs to a particular FreeCAD object. The UI uses these items to populate the expressions list and to select the referenced object when a user clicks an entry.

Attributes:

Name Type Description
object_name str

Name/label of the FreeCAD object that owns the expression.

lhs str

Left-hand side of the expression (typically "Object.Property").

rhs str

Right-hand side expression string.

operator str

Infix operator shown between lhs and rhs in the UI.

display_text property

Return the display string shown in the expressions list.

lhs instance-attribute

object_name instance-attribute

operator = '=' class-attribute instance-attribute

rhs instance-attribute