Examples

Real prompts, real output

A fast proof surface for prospects evaluating whether Forge understands real Teamcenter ITK batch work.

These examples show prompt shape, pattern fit, and package seriousness. For technical examples with validation notes and more concrete output expectations, see /docs/examples.

What this page shows

Realistic prompt framing, recognizable Teamcenter batch patterns, and delivery-oriented output that feels like engineering work, not a toy demo.

What this page does not show

It is not a full tutorial surface and it does not expose internal scaffold logic. Use the docs examples page for more technical validation detail.

CSV Part Import

Imports parts from CSV with per-row validation, per-item rollback, dry-run execution, and a concise summary report for release review.

file-input-mutate
Build a Teamcenter ITK batch that reads a CSV with item ID, name, and owning group, creates missing parts, supports --dry-run, rolls back only the failed row, and prints a final summary.
Expected output

All validations passed with one advisory note.

#include <tc/tc.h>
#include <pom/pom/pom.h>
#include <fclasses/tc_string.h>
#include <iostream>
#include <fstream>
#include <vector>

int ITK_user_main(int argc, char** argv) {
  logical dry_run = FALSE;
  int ifail = ITK_initialize_text_services(0);
  if (ifail != ITK_ok) {
    return ifail;
  }

  std::ifstream csv("parts.csv");
  std::string row;
  int imported = 0;
  int failed = 0;

  while (std::getline(csv, row)) {
POM rollback per item
Dry-run mode (--dry-run)
Continue on error
Structured summary report
Build scripts included

Imports parts from CSV with per-row validation, per-item rollback, dry-run execution, and a concise summary report for release review.

Try this prompt

Released Parts Export

Exports released parts from a saved query with paging, stable CSV output, and execution telemetry suitable for audit trails.

query-export
Generate a batch that runs a saved query for released parts, exports item id, revision, and release status to CSV, supports pagination, and logs execution totals.
Expected output

Validations passed. Export path contract confirmed.

#include <qry/qry.h>
#include <iman.h>
#include <fstream>

int ITK_user_main(int argc, char** argv) {
  int ifail = ITK_initialize_text_services(0);
  if (ifail != ITK_ok) {
    return ifail;
  }

  std::ofstream out("released-parts.csv");
  out << "item_id,name,status\n";

  // Query execution, paging, and guarded export omitted for brevity.
  return ITK_ok;
}
Read-only execution
Stable CSV header contract
Execution tracking
Summary report
Build script included

Exports released parts from a saved query with paging, stable CSV output, and execution telemetry suitable for audit trails.

Try this prompt

Bulk Status Update

Updates status in bulk with guarded mutation, continue-on-error semantics, and audit-friendly outcome reporting.

query-update
Create an ITK executable that selects parts by query and updates a custom status property with continue-on-error handling, per-item rollback, and summary report.
Expected output

One warning: confirm status value mapping before production.

#include <epm/epm.h>
#include <pom/pom/pom.h>

int ITK_user_main(int argc, char** argv) {
  // Query-select, validate current status, mutate, report summary.
  return ITK_ok;
}
POM rollback per item
Continue on error
Pre-flight query validation
Summary report
Cross-platform build scripts

Updates status in bulk with guarded mutation, continue-on-error semantics, and audit-friendly outcome reporting.

Try this prompt