← ClaudeAtlas

creo-jlinklisted

Run automation inside PTC Creo Parametric via J-Link (the Java API) — batch STEP/BOM/drawing export, mass properties. Use for Creo 自动化 / 二次开发 / 批量导出, otk.jar, protk.dat, parametric.bat, pfcSession, or when Creo starts up fine but a J-Link app silently never runs.
HuMoran/tt-skills · ★ 0 · AI & Automation · score 70
Install: claude install-skill HuMoran/tt-skills
# Creo J-Link — Operation Skill Write a Java class, have Creo load and run it at startup. Batch-export a few hundred parts to STEP, dump a BOM, generate drawing PDFs — without touching the mouse. Bundled: | File | What it is | |---|---| | `creo-run.bat` | Launcher. Checks your environment, generates the three config files Creo needs, compiles, starts Creo with the right JVM. | | `HelloJlink.java` | Smoke test + skeleton to copy. Proves the chain works, carries the reflection helpers. | ## When this skill applies - Batch operations across many parts/assemblies (export, measure, rename, parameter edit) - Anything you would otherwise do by clicking the same menu 300 times - Diagnosing why a J-Link app silently fails to run It does **not** cover: Pro/TOOLKIT in C, Creo Object TOOLKIT C++, Windchill, or driving Creo's GUI by simulated clicks. ## Quick start 1. Make a working directory. Drop in `creo-run.bat` and your `.java` file (start with `HelloJlink.java`). 2. Open `creo-run.bat` in a text editor and fix the two lines at the top: ```bat set "CREO_ROOT=C:\Program Files\PTC\Creo 13.4.0.0" set "JDK=C:\Program Files\Eclipse Adoptium\jdk-25.0.3+9" ``` `CREO_ROOT` is whatever version directory you have under `C:\Program Files\PTC\`. For `JDK`, point at any JDK you already have — step 3 tells you whether it is new enough. 3. From `cmd`: ``` creo-run.bat --check verify the environment, launch nothing creo-run.bat HelloJlink compile it and start