This skill is the common ground for every FrameworX display build, regardless of paradigm. Load it whenever you do display work. Pair with Skill Display Construction - Canvas for pixel-positioned HMI/P&ID displays or with Skill Display Construction - Dashboard for grid-based data displays.
What this skill covers:
write_objects mechanics on DisplaysList (document objects, read-before-write)write_objects → get_state → check errorList → visual checkpoint → fix → respond)What this skill does NOT cover: the equipment cookbook, controls reference, or grid-cell layout — those live in Canvas and Dashboard.
Steel (light office) or Onyx (dark control room).Tool | When |
|---|---|
| Once at start of session to confirm field names |
| Once to get the brush catalogue |
| Once to get the theme-pair catalogue (Light/Dark, Steel/Graphite, etc.) |
| Before using an element type you have not used this session |
| Before attaching a dynamic you have not used this session |
| Before every modification to an existing display (document-object rule) |
| After your plan is complete |
| After every write, to check |
| At visual checkpoints during a Canvas build. See §3 for the cap. |
Do not hardcode hex colors unless the hex carries process meaning. Use FillTheme, StrokeTheme, ForegroundTheme, BackgroundTheme, BorderBrushTheme properties with semantic brush names from list_elements('ThemeColors').
Hex is reserved for things with domain meaning that shouldn't change across themes — heat = red, water = blue, alarm = red, batch progress = amber. Everything else should adapt to whichever of the 13 theme pairs the operator is running.
Call list_elements('ThemeNames') for the authoritative list at runtime. The typical usage map:
Light / Dark pair | Use for |
|---|---|
| Default office / default control room |
| Refined corporate office / premium control room |
| Industrial office / industrial control room |
| Soft UI emphasis, OEM branding |
| Refreshing / deep contrast |
| Warm accents for specialty applications |
| Accessibility, outdoor tablets, low-vision |
Theme is switched at runtime via @Client.Theme = "Dark". Every properly-themed display reflows automatically.
Before placing any element, decide which theme family this solution is for:
Then use *Theme properties throughout — the displays render correctly under any theme, but look best under the one you designed for.
Call list_elements('ThemeColors') for the authoritative list. The 12 brushes you'll use 90% of the time:
Brush | Meaning | Typical use |
|---|---|---|
| Card / section background | Background |
| Full-page background | The display-root Background override |
| Control body | Gauge / chart / data-grid background |
| Primary text | Headings, values, labels |
| Meta text | Units, captions, "UPDATED AT" stamps |
| Highlighted text | Section titles, accent links |
| The solution's accent color | Active-state markers, selected-row borders, links |
| Running / OK state | Indicator fills, live-data values |
| Stopped / fault state | Indicator fills, alarm text |
| Active alarm (yellow) | Banded gauge danger zones, pulsing elements |
| HPG two-state fills | Status-indicator shape fills tied to a boolean |
| Process water | Pipe runs carrying water/aqueous streams |
Other brushes exist and are valid — ElementBlue, ElementGreen, AlarmHighPriority, ColorCyan, ColorSlate, ColorAmber, ColorTeal, ColorCoral, ColorPurple, ColorDimmed, PopupBackground, DefaultFill, DefaultStroke, DefaultBorder, and more. Check list_elements('ThemeColors').
Note on Element*-family brushes: ElementRed, ElementOrange, ElementYellow may not apply consistently on all shape types. If you don't see your intended color, prefer StateRed / ColorAmber / StateAlarm.
When you write {"FillTheme": "ElementBlue"} the writer stores it as {"Fill": "theme:ElementBlue"}. Both input forms are equivalent:
{"FillTheme": "StateGreen"} → stored as {"Fill": "theme:StateGreen"}{"Fill": "theme:StateGreen"} → stored as {"Fill": "theme:StateGreen"}{"Fill": "#FFEF4444"} → stored as {"Fill": "#FFEF4444"} (hex){"Fill": "#FF000000", "FillTheme": "ElementBlue"} → stored as {"Fill": "#FF000000"} (hex wins)Use FillTheme / StrokeTheme / ForegroundTheme / BackgroundTheme / BorderBrushTheme for readability — it documents your intent. The writer collapses to the prefixed form. If you mean a hardcoded color, use Fill/Stroke/Foreground etc. directly.
Every newly created display gets "Background": "#FFFAFAFA" (light gray) baked in. If you're building for a dark theme, this shows through at every gap or transparent edge. Always set the root Background explicitly:
{
"Name": "MyDisplay",
"PanelType": "Canvas",
"Size": "1600 x 900",
"Width": 1600, "Height": 900,
"Background": "theme:PageBackground",
"Elements": [ /* ... */ ]
}Or, for a full-bleed dark background on a dark-themed display, place a full-size Rectangle with FillTheme: "PageBackground" as the first element.
{
"Name": "MyDisplay",
"PanelType": "Canvas",
"DisplayMode": "Page",
"Navigate": "true",
"Size": "1600 x 900",
"OnResize": "StretchFill",
"Width": 1600,
"Height": 900,
"Background": "theme:PageBackground",
"Elements": [ /* ... */ ]
}Name. Never ObjectName.PanelType is required. "Canvas" or "Dashboard". Omitting it silently defaults to Canvas.JsonFormat wrapper. All properties at the top level.DisplayMode controls window style: "Page" (normal), "Dialog" (modal popup), "Popup" (floating non-modal), "PopupWindow" (separate window — not available on Web, avoid unless explicitly requested).OnResize: "StretchFill" is the sensible default. Use "NoAction" for fixed-pixel displays.DisplaysDraw is NOT a writable table. It is the Designer visual editor UI. Use DisplaysList for all display create/edit operations.Displays, Symbols, Scripts, Queries, and Reports are document objects: write_objects replaces the entire document on save. Omitted content is deleted.
When modifying an existing display:
get_objects('DisplaysList', names=['MyDisplay'], detail='full')Never send a partial update — you'll silently delete everything you didn't include.
Keep the element list in working memory. During a session that adds, modifies, or removes elements across multiple turns, track what the display holds — same discipline a programmer uses to keep the state of the code they're editing in their head. When you write, every element you intend to keep must be in the payload, and elements you removed must be absent. errorList will not tell you about an element you forgot to drop; only the user will notice it's still on screen.
MainPage is predefined in new solutions. Write main content directly into it — no need to create a new display for the landing screen.
AI-created objects are automatically tagged with the MCP category, which makes them editable / overwritable by subsequent AI writes. Objects without this label are "owned" by the user and produce Skipping existing on write attempts. This is the user-protection mechanism — respect it. When you see Skipping existing, the user can add the MCP label in Designer if they want to allow AI edits.
Exception: Description fields are always writable, even on user-owned objects without the MCP label. If the user asks you to update a description on an object you otherwise can't edit, that specific field will still save.
solution_id on every writeEvery write_objects, delete_objects, rename_objects, and designer_action call should include the solution_id from the most recent open_solution or create_solution response. This verifies the session is still connected to the expected solution.
This cadence catches errors within the same turn they were introduced, before they accumulate.
get_objects(detail='full') if modifying an existing displaywrite_objects(data=[...])get_state(target='designer'), look at errorListerrorList non-empty, fix and go back to step 3errorList and readOnly from get_stateget_state on a display returns compile errors as a list, and also reports whether the Designer is currently read-only:
{
"readOnly": false,
"readOnlyReason": null,
"errorList": [
{
"ID": 0,
"ErrorCode": "BC30456",
"IsWarning": false,
"Line": 8,
"Column": -1,
"Location": "Uid_41_TTextBlock_LinkedValue_e1",
"ErrorText": "error BC30456: 'Status' is not a member of 'UserType'."
}
]
}The Location string tells you which element (by Uid) and which property (LinkedValue, Expression, etc.) has the problem. Use it to find and fix the exact property.
If errorList is absent or empty, the display compiled clean.
Also check readOnly. If it is true, a subsequent write_objects will fail — check readOnlyReason and surface it to the user before retrying. Common causes: runtime is running, another client has the display open for edit.
errorList is ground truth for compile correctness: bindings resolve, required fields are present, the display will render without crashing. A clean errorList is necessary before you respond as finished.
errorList is blind to visual correctness. None of the following produce an error:
Left/TopTextBlock whose LinkedValue clips because its rendered length exceeds WidthRadialGauge with YMaxValue below the tag's engineering-range maximum (pegs at max forever)Polygon with valid Points but Fill equal to the background (invisible)All of those compile clean. All are operator-rejected.
This step closes the gap errorList leaves open. The rules differ by paradigm because spatial correctness matters far more in Canvas than in Dashboard.
Canvas: spatial correctness is the whole point. Coordinate-based composition of pipes, vessels, zone layouts, and P&ID flow is the class of work where authoring blind gets it wrong the most. Take get_screenshot(target='display', element='X') at authoring checkpoints:
Hard cap: 3 screenshots per display per session. If three checkpoints did not resolve the visual problem, a fourth will not either — the problem is judgment, not pixels. Hand back to the user with a summary of what was built and what looks wrong; ask them to open Designer and guide the next move.
Dashboard: grid reflow is resolved at render time against a specific window size, and most Dashboard mistakes (wrong control choice for the cell purpose, missing Cell.HeaderLink, broken DataGrid → detail wiring) are visible in the structure, not the pixels. Screenshots are generally unnecessary for Dashboard — rely on a clean errorList and a clear written summary to the user. If something looks wrong after the user previews it, fix and iterate; don't screenshot speculatively.
Not for iterative self-soothing. Do not take a screenshot after every write just to feel certain. The cost is real and the behavior encourages re-work spirals over clean planning. Screenshots go at checkpoints, not at every turn.
Write a one-paragraph summary when you respond, regardless of paradigm: which zones or cells exist, what lives in each, which tags drive what. The summary is what the user reads before they look at the display themselves — and it forces you to notice gaps ("I reserved a zone for alarms but never put an AlarmViewer in it") that errorList cannot.
@Tag. is the only binding prefix you'll use in displays@Tag.<path> — the tag's Value. Do NOT append .Value; it's implicit (@Tag.X == @Tag.X.Value).@Tag.<path>/Attr.<member> — a UDT member on the tag.@Tag.<path>.<udt_member> — alternate dot syntax for UDT members.@Dataset.Query.<QueryName> — dataset query result (for DataGrid, ComboBox DataTable source).@Client.Context.<property> — session-scoped client context (AssetName, AssetPath, Theme).@Client.<property> — general client-scoped tags (@Client.Theme, @Client.AlarmPage.Filter).@Now — current time.Never use @Label. in display-element bindings. @Label. is only for symbol-definition internals.
Include asset folders in every tag reference: Area1/Line1/Motor1.Speed, not Motor1.Speed.
The single most important text pattern. Instead of two TextBlocks (value + unit) side by side, use ONE with composite LinkedValue:
{
"Type": "TextBlock",
"LinkedValue": "Temperature: {@Tag.Reactor/Temperature_C} °C",
"FontFamily": "Inter",
"FontSize": 14,
"Width": 220, "Height": 22
}Patterns:
"Flow: {@Tag.X} GPM" — label + value + unit"{@Tag.X} NTU" — value + unit"pH: {@Tag.X}" — label + value"Operator: {@Tag.Shift/CurrentOperator}" — label + bound stringIf you write a Polygon without Points, nothing renders and no error is produced — the element is simply invisible.
// Silently invisible
{ "Type": "Polygon", "Left": 100, "Top": 100, "Width": 50, "Height": 50 }// Renders correctly { "Type": "Polygon", "Left": 100, "Top": 100, "Width": 50, "Height": 50, "Points": "25,0 50,50 0,50" }
Polygon auto-closes (last point connects back to first). Polyline doesn't. For pipe runs use Gridline (constrains to horizontal/vertical segments — the P&ID convention).
The writer normalizes several shapes on save. When you later read the display back, you get the normalized form:
You wrote | Stored as |
|---|---|
|
|
|
|
|
|
|
|
| Flat array OR wrapper — writer accepts both |
Consequence: when round-tripping a display for edits, don't expect to see "Type": "Cylinder" — you'll see a "Path" with auto-generated Data. Edit the Path, or add new Cylinders alongside (they normalize too).
Token | Pixels | Where |
|---|---|---|
xs | 4 | Gap between label and value in a stacked pair |
sm | 8 | Gap between sibling sub-elements within a card |
md | 16 | Gap between sibling cards in a row |
lg | 24 | Card interior padding (content vs card edge) |
xl | 32 | Zone padding (zone background Rectangle vs content) |
2xl | 48 | Major section separator |
3xl | 64 | Display-level margins |
Use FontFamily: "Inter" (or the solution's chosen font) universally.
Role | FontSize | When |
|---|---|---|
Hero | 26–32 | Display title, single-metric hero number |
H1 | 20–22 | Main section headings |
H2 | 16 | Sub-section headings, card titles |
Body | 13–14 | Bound values, primary text |
Meta | 10–11 | Labels, units, captions |
Micro | 9 | Timestamps, very-low-priority meta |
Element | Min | Recommended |
|---|---|---|
Button | 100×32 | 130×40 |
TextBox / NumericTextBox | 120×28 | 160×32 |
ComboBox | 160×28 | 200×32 |
Slider | 200×28 | 260×32 |
ToggleSwitch | 60×28 | 80×32 |
CircularGauge / RadialGauge | 150×150 | 180×180 |
SemiCircle | 200×120 | 240×140 |
LinearGauge (horizontal) | 260×80 | 300×100 |
CenterValue | 120×120 | 140×140 |
TrendChart | 400×200 | 500×300 |
BarChart | 300×200 | 400×240 |
PieChart | 200×200 | 240×240 |
AlarmViewer | 400×220 | 600×240 |
AssetsTree | 200×300 | 240×400 |
DataGrid | 400×200 | 600×300 |
Wizard symbol (TANK/PUMP/etc.) | 60×60 | 80×80 |
Role | Hex |
|---|---|
Heat / reaction |
|
Cold / water |
|
Running / active |
|
Alarm / warning |
|
Accent / link / data |
|
Text on dark |
|
Meta text |
|
There are many element types — Shapes, Container, Interaction, Gauges, Charts, Viewer, Editors, IndustrialIcons, and the Dashboard-specific Cell. The catalogue also evolves between releases.
Rather than rely on a static list that drifts, always discover at runtime:
list_elements() — every element type, grouped by categorylist_elements('<ElementName>') — the schema for one specific element (valid properties, defaults, notes)list_elements('Wizard') — the 5 Wizard symbolslist_elements('Library/HMI') or subpath — Library symbols (see §7)list_elements('ThemeColors') — brush cataloguelist_elements('ThemeNames') — theme-pair catalogueCanvas and Dashboard skills cover which element types fit each paradigm and how to use them in context.
Every symbol uses Type: "Symbol". Not Type: "Pump", not Type: "Valve". One element type, many SymbolName values.
{
"Type": "Symbol",
"SymbolName": "Wizard/PUMP",
"Left": 400, "Top": 300,
"Width": 80, "Height": 80,
"SymbolLabels": [
{ "Type": "SymbolLabel", "Key": "State", "LabelName": "State", "LabelValue": "@Tag.Pump1/Running", "FieldType": "Expression" },
{ "Type": "SymbolLabel", "Key": "RPM", "LabelName": "RPM", "LabelValue": "@Tag.Pump1/Speed", "FieldType": "Expression" }
]
}The complete Wizard catalog is 5 symbols:
SymbolName | What it is | Typical SymbolLabels |
|---|---|---|
| Industrial blower/fan | State, RPM |
| Electric motor | State, RPM |
| Pump (styles selectable in Designer) | State, RPM |
| Storage tank | Level, Alarm |
| Valve (various styles) | State, Position |
Always treat list_elements('Wizard') as the authoritative runtime catalog — if an entry does not appear there, do not attempt to use it.
Call list_elements('Library/HMI') or specific subfolders (Library/HMI/Pumps, Library/HMI/Valves, etc.) to discover. Results are limited to 50 per call — when you see truncated: true, drill into specific subfolders to see complete listings. Library symbols auto-import on first reference:
{ "Type": "Symbol", "SymbolName": "Library/HMI/Pumps/CentrifugalPump", "Left": 200, "Top": 200, "Width": 120, "Height": 80 }User-created symbols in the current solution use Solution/ prefix:
{ "Type": "Symbol", "SymbolName": "Solution/MyCustomTank", "Left": 100, "Top": 100, "Width": 80, "Height": 100 }All symbols scale to any proportional size. Default is 65×65 — use 40×40 for compact, 80×80 for medium, 120×120 for large. Maintain aspect ratio; don't stretch asymmetrically.
SymbolLabels is the ONLY way to push data into a symbol:
Key must match a label key defined inside the symbol (case-sensitive).LabelValue uses @Tag.X / @Client.Context.X / @Now / composite strings.FieldType: "Expression" is the default and handles tag paths and expressions.@Label.X in display-element SymbolLabels. @Label. is a symbol-definition internal only.Layout regions: Header, Footer, Menu, Submenu, Content. The Startup layout defines which display loads into each region.
get_table_schema('DisplaysLayouts')
get_objects('DisplaysLayouts', names=['Startup'], detail='full')For plant-wide navigation with dynamic content:
Client.Context updates → content displays react@Tag.Area1/Line1/StateAsset(Client.Context.AssetPath + "State1")A single display template can show data for whichever asset the operator selects. See the Dashboard skill for the AssetsTree + ChildDisplay master-detail pattern.
CodeBehind is client-side C# or VB.NET code embedded in each display. Lifecycle methods: DisplayOpening(), DisplayIsOpen(), DisplayClosing(), DialogOnOK().
The Contents field format starts with CSharp\r\n or VBdotNet\r\n before the code. Full CodeBehind guidance lives in the Skill Scripts Expressions skill.
Mistake | Fix |
|---|---|
Responding as finished on empty |
|
Taking screenshots after every write | Checkpoints, not reassurance. Canvas: up to 3 per display. Dashboard: generally unnecessary. |
Losing track of the element list across turns | Keep the display's element list in working memory as you add/modify/remove across the session. An element you forgot to drop will still render; |
Ignoring | Check |
Hardcoding hex without thinking about theme switching | Use |
Polygon / Gridline without Points | Always include |
Using | Field is always |
Using | Visual editor UI, not a writable table. Use |
Omitting | Required — |
Wrapping the envelope in | Properties go at top level, no wrapper |
Partial write on an existing display | Always read-modify-write the complete document |
Using |
|
Setting colors without clearing theme | Set value AND clear theme: |
Calling | The parameter is |
Relying on a static element/symbol list | Always call |
// Session startup
get_table_schema('DisplaysList')
list_elements('ThemeColors')
list_elements('ThemeNames')// Before first use of a type this session list_elements('<ElementName>') list_dynamics('<DynamicName>')
// Read-modify-write an existing display get_objects('DisplaysList', names=['X'], detail='full') write_objects(table_type='DisplaysList', data=[...]) get_state(target='designer') // verify errorList empty AND readOnly false
// Visual checkpoint (see Section 3) // Canvas: up to 3 per display (after zones, after equipment, before done) // Dashboard: generally unnecessary get_screenshot(target='display', element='X')
Display envelope template:
{
"Name": "MyDisplay",
"PanelType": "Canvas",
"DisplayMode": "Page",
"Navigate": "true",
"Size": "1600 x 900",
"OnResize": "StretchFill",
"Width": 1600,
"Height": 900,
"Background": "theme:PageBackground",
"Elements": []
}After the basics are internalized, load the paradigm-specific skill:
Both assume this Basics skill is loaded.