Dear all,
since days I am struggling to create a table view in Cameo 2026x SysML v2 that displays the values of attributes owned by a part usage. I use DS_Views::TabularViews::gt as a starting point. I can display the attributes as elements, but cannot strip out the Real value contained in the attribute (example column "Det"):
view Det : CoreViews::ColumnByExpressionView :> column {
render rendering : CoreViews::ElementCellRendering :>> asTableCell {
calc :>> getValue {
in :>> rowElement;
getDet(rowElement) as Element
}
}
calc getDet {
in x : PartUsage;
x.ownedElement.?{ in e : AttributeUsage; e.name == "det" }->head{}
}
}
Or I can display the attribute values as one-member-set of Real values, but again cannot single-out the Real value to show only this in the column (example column "Prev"):
view Prev : CoreViews::ColumnByExpressionView :> column {
render rendering : CoreViews::ElementCellRendering :>> asTableCell {
calc :>> getValue {
in :>> rowElement;
getValPrev(getAttrPrev(rowElement)) as Element
}
}
calc getAttrPrev {
in x : PartUsage;
x.ownedElement.?{ in e : AttributeUsage; e.name == "prev" }->head{}
}
calc getValPrev {
in a : AttributeUsage;
a.ownedElement->head{}
}
}
Here is the table view produced...
Two questions for the community here:
- Any idea how to show just the Real value contained in the attribute, ideally as an editable field?
- I saw that there is / shall be a Cameo 2026x Refresh 1, with considerable amendments on the table capabilities. Is this new tool version already released? If not, when will it be released?
Any help gratefully appreciated.
Best regards, Carsten
