Skip to main content

Module property_edit

Module property_edit 

Source
Expand description

Writing property sets and quantities (feature properties-write, #123).

The write side of IfcModel::property_sets: a property is addressed by the same object, set name and property name the read side reports, and its value is the read side’s value, a typed IfcValue (or $), a list of them for an enumerated or list value, or a typed measure for a quantity. The facade’s checked edit (ifc::apply_property_edits) does the work: it plans the whole batch, validates every value against the declared release and, with the property-catalog feature, the release’s PSD/QTO catalog, and commits one transaction, or refuses and changes nothing.

An occurrence’s inherited value is overridden on the occurrence, never changed on the shared type set; address the type object to change that. A set or a property entity the object shares is copied before it changes.

Hosts carry an edit in their own idiom. The C tape form, read by PropertyEdit::from_tagged, is one LIST: an ENUM SET or REMOVE, the object (REF or INTEGER), the set name and the property name (TEXT), then, for SET, the value and an optional set type (TEXT or NULL).

Structs§

PropertyEdit
One edit of a batch.
PropertyEditResult
What a committed batch did.

Enums§

EditAction
What a PropertyEdit does.