Docs/Getting Started/Model Management

Model Management

In CoModel, the model is the object you actually build and simulate. This article covers model management: creating, opening, renaming, duplicating, deleting, and version history.

The model list

Click Models in the left navigation to open the model list page. The list is sorted by last modified time, newest first; each entry shows:

  • Model name and description;
  • Last modified time;
  • A status tag (Private / Shared / Public template);
  • A canvas thumbnail (a default placeholder if none exists).

Filter by name with the search box at the top, or filter by tag: All / Private / Shared.

Model list page with search and status filters

Empty-state guidance

On first use, the list shows a Create your first model guidance card; click it to start.

Create a model

  1. Click New Model on the model list page.
  2. Fill in the dialog:
    • Model name (required): must be a valid Julia module name, e.g. SpringMassDamper. Rules: starts with an uppercase letter; letters, digits, and underscores only; 2–100 characters.
    • Description (optional): briefly state what the model is for; up to 500 characters.
    • Create from template (optional): pick a public template published by the administrator as a starting point.
  3. Click Create; the graphical editor opens automatically.

Tip: model names must be unique within one user space. If the name is taken, change it and retry.

Open a model

Click any model card in the list to enter the graphical editor. The system restores:

  • All component nodes and their positions;
  • All connections and their routing paths;
  • All parameter values;
  • The corresponding .jl source in the Code View on the right.

If the model is a read-only copy shared to you by another user, the editor opens in read-only mode and changes cannot be saved.

Rename a model

You can rename a model from two places:

  • Model list page: right-click the model card and choose Rename.
  • Editor top toolbar: click the model name and edit it in place.

After renaming, the system updates in sync:

  • The display name in the model list;
  • The module name in the .jl source file (e.g. module OldName becomes module NewName);
  • The @comodel:model annotation in the source.

Duplicate a model

Duplicating a model lets you create variants of an existing design quickly:

  1. Right-click the target model on the model list page and choose Duplicate.
  2. The system creates a deep copy; the new model is named {original}_Copy by default with status Private draft.
  3. The new model is fully independent of the original; neither affects the other.

The duplicate preserves:

  • All nodes, connections, and layout on the canvas;
  • All parameter values;
  • The model's .jl source.

Delete a model

  1. Right-click the target model on the model list page and choose Delete.
  2. Verify the model name in the confirmation dialog, then click Delete.

Deletion is a soft delete: the model is marked as deleted and moved to the recycle bin, where the administrator can restore it for 30 days. After 30 days, the system automatically purges the associated data for good.

Version history

CoModel saves version snapshots of a model automatically so you can roll back to an earlier state at any time.

View version history

  1. Click Version History in the editor top toolbar.
  2. The sidebar on the right lists the versions:
    • Autosave snapshots (every 5 minutes; the last 20 are kept);
    • Snapshots created on manual save;
    • Records created by clicking Create Version Snapshot manually.

Each entry shows a timestamp, the trigger (manual / automatic), and a note.

Version history sidebar in the editor

Restore a version

  1. Click a version in the list; the canvas previews that version in read-only mode.
  2. Click Restore to This Version.
  3. The system first takes a snapshot of the current state, then restores the target version, so your latest changes are never lost.

Sharing and permissions

Share with specific users

  1. Click Share in the editor top toolbar.
  2. Enter the recipient's email (an existing account in the instance).
  3. The recipient sees the model in the Shared with Me list with read-only access.

The model owner can revoke the share at any time in the sharing settings.

Public templates

Administrators can publish good models as public templates; any user can pick one as a starting point when creating a model. Public templates are for duplication only—the original cannot be edited directly.

Common operations at a glance

Operation Where Notes
Create a model Model list page > New Model Fill in name and description; optional template
Open a model Click a model card Opens the graphical editor
Rename Right-click menu / name at the top of the editor Updates the .jl module name in sync
Duplicate Right-click menu > Duplicate Produces an independent deep copy
Delete Right-click menu > Delete Soft delete; recoverable for 30 days
Version history Editor > Version History View and restore past snapshots
Share Editor > Share Read-only sharing with specific users

Next steps