Product

Anvil

The shared runtime toolkit for CATIA Magic resource development.

Every CATIA Magic resource needs the same plumbing: typed access to its profile, rules that apply stereotypes, a way to log and to tell the modeller what happened. Anvil carries that plumbing once, as a resource with a plugin, so each resource calls it instead of rebuilding it.

What it carries

  • Profile bindings

    A typed API for stereotypes, tags and enumerations, on which hand-written and generated bindings both sit.

  • Auto-stereotyping

    An engine that applies the stereotype a model already implies, and a rule contract a resource extends.

  • Model-event tracing

    A tracer that records the commits of a project, usable on its own in a plugin with no rules.

  • Logging

    Writes into CATIA Magic's own log under a category of the resource's own.

  • Notifications

    Shows the modeller a balloon in the lower-right corner and records the same message in the log.

  • Diagram image export

    Exports a diagram as an image, from shortcut-menu entries a modeller fires directly.

  • Guarded element creation

    Creates an element with its name, owner and stereotype in one call, checked against the metamodel, the platform's permissions and the loaded customizations.

  • Sessions

    Runs a model change in one named session, closed when the change returns and cancelled when it throws.

  • Macros

    An interpreter and a shortcut menu that put an automation, drawn from model steps, within a modeller's reach.

  • Queries and rendering

    Query operations a plugin calls and a modeller composes in the expression editor, plus text rendering of any model value.

How resources use it

A resource declares Anvil as a dependency and calls its packages directly. Anvil's own plugin installs the diagram image export, the macro menu and its auto-stereotype engine for the modeller, and removes them when the plugin closes.

Interested in Anvil?

Products ship to clients during an engagement. Tell us what you are building.