Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

jlinkjlink 搜索

Agent Skill

jlink 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

186

周安装

8

GitHub Stars

公开资料未说明

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:jlink(jlink 搜索)
来源仓库:https://github.com/dmdorta1111/jac-v1
仓库路径:skills/jlink
安装命令:
npx skills add dmdorta1111/jac-v1 --skill "jlink"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add dmdorta1111/jac-v1 --skill "jlink"

简介

发现并安装 AI 代理的技能,协助扩展宿主平台的功能模块。

  • 适用于需要动态加载新能力或集成第三方插件的研究检索场景。
  • 通过 npx skills add dmdorta1111/jac-v1 --skill "jlink" 命令从 GitHub 安装。
  • 需验证仓库来源可靠性及技能兼容性,防止引入恶意或不稳定组件。
  • 建议在安装后查阅原始 README 文档以了解具体用法和潜在影响。

SKILL.md

name
jlink
description
>

Jlink - Java Automation Toolkit for Creo Parametric

Jlink (Object TOOLKIT Java) is a free Java API that enables programmatic automation of Creo Parametric design tasks. It provides Session-based access to models, features, parameters, assemblies, and drawings.

Quick Start

New to Jlink? Start here:

  1. Read Architecture Overview below
  2. Study Basic Patterns for initialization
  3. Review Common Tasks Decision Tree
  4. Check Reference Guide for specific operations

Core Concepts

Session Model (Entry Point)

All Jlink operations flow through a single Session object:

// Get active session (main pattern)
Session session = pfcSession.GetCurrentSessionWithCompatibility(
    CreoCompatibility.C4Compatible
);

// Now use session for all operations
Model model = session.RetrieveModel(descriptor);

Exception Handling (Universal)

All Jlink methods throw jxthrowable:

try {
    // Any Jlink operation
    Model model = session.RetrieveModel(descriptor);
    Feature feat = model.GetFeatureByName("MY_FEATURE");
} catch (jxthrowable x) {
    x.printStackTrace();
    // Handle error
}

Object Hierarchy

Session (connection to Creo)
├── Model (Part, Assembly, or Drawing)
│   ├── FeatureTree (all features)
│   ├── ParameterTable (model parameters)
│   └── Drawing-specific (sheets, views, notes)
├── UICommand (menu/toolbar integration)
└── Selection (interactive user selection)

Architecture Overview

Packages (20+ modules, but focus on core 6)

PackagePurposeKey Classes
pfcSessionSession managementSession, Selection, UICommand
pfcModelModels (parts, assemblies, drawings)Model, ModelDescriptor, ModelType
pfcFeatureFeature creation & manipulationFeature, FeatureCreate, FeatureType
pfcParameterParameters & dimensionsParameter, ParamValue, DimensionType
pfcGeometryGeometry operationsPoint, Vector, Transform
pfcAsyncConnectionAsync/remote operationsAsyncConnection, AsyncServer

Session Lifecycle

// 1. Retrieve session (usually already exists)
Session session = pfcSession.GetCurrentSessionWithCompatibility(
    CreoCompatibility.C4Compatible
);

// 2. Work with models/features/parameters
try {
    // Do work
} catch (jxthrowable x) {
    // Handle errors
}

// 3. Cleanup (usually automatic in application context)
// No explicit disconnect needed for current session

Basic Patterns

1. Model Operations

Retrieve existing model:

// By name and type
ModelDescriptor descr = pfcModel.ModelDescriptor_Create(
    ModelType.MDL_PART,
    "my_part",
    null  // No directory
);
Model model = session.RetrieveModel(descr);

// Get current model in Creo
Model current = session.GetCurrentModel();

Create/save model:

ModelDescriptor descr = pfcModel.ModelDescriptor_Create(
    ModelType.MDL_PART,
    "new_part",
    null
);
Model newModel = session.CreateModel(descr, null);

// Save to working directory
newModel.Save();  // or SaveAs(descriptor)

Model types:

  • ModelType.MDL_PART - Part file
  • ModelType.MDL_ASSEMBLY - Assembly file
  • ModelType.MDL_DRAWING - Drawing file

2. Feature Access & Creation

Get feature by name:

try {
    Feature feat = model.GetFeatureByName("EXTRUDE_1");
} catch (jxthrowable x) {
    // Feature not found
}

Iterate features:

FeatureTree featTree = model.GetFeatureTree();
Sequence<Feature> features = featTree.GetFeatures();

for (int i = 0; i < features.GetMembersCount(); i++) {
    Feature f = features.GetMember(i);
    // Process feature
}

Create feature (example: extrude):

FeatureCreateData createData = pfcFeature.FeatureCreate_Create(
    FeatureType.EXTRUDE,
    ModelRef.CURRENT,  // Current model
    "", null, null
);

// Set extrude depth
createData.SetIntParam("depth_type", 1);  // ONE_SIDED
createData.SetDoubleParam("depth_1", 10.0);  // 10 units

// Create and return feature
Feature newFeat = model.CreateFeature(createData);

3. Parameter Operations

Get parameter value:

try {
    Parameter param = model.GetParam("THICKNESS");
    ParamValue val = param.GetValue();
    double thickness = val.GetDoubleValue();
} catch (jxthrowable x) {
    // Parameter not found
}

Set parameter value:

Parameter param = model.GetParam("THICKNESS");
ParamValue newVal = pfcParameter.ParamValue_CreateDoubleParamValue(2.5);
param.SetValue(newVal);

Model parameters:

// Get all parameters
ParameterTable paramTable = model.GetParameters();
Sequence<Parameter> params = paramTable.GetParams();

for (int i = 0; i < params.GetMembersCount(); i++) {
    Parameter p = params.GetMember(i);
    // Access param
}

4. Interactive Selection

Get user selection:

UICommand cmd = session.UICreateCommand("custom.select", selectionListener);

// Selection types
SelectionOptions opts = pfcSelection.SelectionOptions_Create();
opts.AddFilterType(SelectionType.EDGE);  // Allow edge selection
opts.SetMaxSelectCount(5);  // Max 5 edges

Selection selection = session.UISelect(opts, null);

Process selections:

int count = selection.GetSelectionCount();
for (int i = 0; i < count; i++) {
    SelectedObject selObj = selection.GetSelectionItem(i);
    GeometryType geomType = selObj.GetSelectionType();
    // Use selected geometry
}

5. Assembly Operations

Add component:

ModelDescriptor compDescr = pfcModel.ModelDescriptor_Create(
    ModelType.MDL_PART,
    "component_name",
    null
);

ComponentFeat compFeat = (ComponentFeat)model.CreateFeature(
    pfcFeature.FeatureCreate_Create(
        FeatureType.COMPONENT,
        ModelRef.CURRENT,
        "", compDescr, null
    )
);

Apply constraints:

Constraint constraint = pfcConstraint.Constraint_CreateMateConstraint(
    surfaceRef1,  // First reference
    surfaceRef2   // Second reference
);
model.AddConstraint(constraint);

6. Drawing Automation

Create drawing view:

// Open template or create drawing
ModelDescriptor drawDescr = pfcModel.ModelDescriptor_Create(
    ModelType.MDL_DRAWING,
    "drawing_name",
    null
);
Model drawing = session.CreateModel(drawDescr, null);

// Add view (simplified)
DrawingSheet sheet = drawing.GetCurrentSheet();
DrawingView view = sheet.CreateGeneralView(modelRef, viewData);

Common Tasks Decision Tree

Choose task → find reference file → implement pattern

Model Management

  • Open/retrieve modelsession.RetrieveModel(descriptor)
  • Create new modelsession.CreateModel(descriptor, null)
  • Save modelmodel.Save() or model.SaveAs(descriptor)
  • Check if modifiedmodel.GetModified() → bool

Feature Operations

  • Get feature by namesolid.GetFeatureByName(name)
  • Iterate all featuressolid.ListFeaturesByType(true, null)
  • Create featuresolid.CreateFeature(FeatureCreateInstructions)
  • Delete featurefeature.CreateDeleteOp() then execute
  • Get feature dimensionsfeature.ListSubItems(ITEM_DIMENSION) (returns ModelItems)

Parameters

  • Get parametermodel.GetParam(name)GetValue()
  • Set parameterparam.SetValue(newValue)
  • List all parametersmodel.GetParameters().GetParams()
  • Create parametermodel.AddParam()

Assembly

  • Add component → Feature creation with FeatureType.FEATTYPE_COMPONENT
  • Apply constraintcomponentFeat.SetConstraints(constraints, path)
  • List componentssolid.ListFeaturesByType(true, FeatureType.FEATTYPE_COMPONENT)
  • Get subassemblycomponentFeat.GetModelDescr()session.RetrieveModel()

Interactive Selection

  • Select edgesSelectionOptions.AddFilterType(SelectionType.EDGE)
  • Select surfacesSelectionOptions.AddFilterType(SelectionType.SURFACE)
  • Get selected geometryselection.GetSelectionItem(i) → process

Drawing

  • Create viewsheet.CreateGeneralView(modelRef, viewData)
  • Add note/dimensionsheet.CreateGeneralNote(position, text)
  • Export/print → Drawing-specific APIs
  • Get sheetsdrawing.GetDrawingSheets()

Best Practices

  1. Always use try-catch - All Jlink operations throw jxthrowable
  2. Validate model type before specific operations (part vs assembly vs drawing)
  3. Regenerate after changes - model.Regenerate() for feature/parameter changes
  4. Check references validity - Geometry handles may become invalid after regen
  5. Batch operations - Group model open/close for efficiency
  6. Session reuse - Don't create new sessions; reuse GetCurrentSessionWithCompatibility()
  7. Clear resources - Free large collections/selections after use
  8. Log operations - Essential for debugging batch/async processes
  9. Handle missing features - Wrap feature access in try-catch
  10. Test with actual model - Jlink behavior varies by Creo configuration

Reference Files

For detailed information, see:

  • jlink-session.md - Session creation, lifecycle, compatibility modes
  • jlink-models.md - Model operations (open, create, save, properties)
  • jlink-features.md - Feature creation, types, dimension manipulation
  • jlink-parameters.md - Parameter access, modification, validation
  • jlink-assembly.md - Assembly operations, constraints, components
  • jlink-drawing.md - Drawing automation, views, sheets, export
  • jlink-selection.md - Interactive selection, geometry types, filters
  • jlink-patterns.md - Complete end-to-end workflow patterns
  • jlink-error-handling.md - Exception strategies, recovery, logging
  • jlink-performance.md - Optimization techniques, caching, async patterns

Installation & Setup

Prerequisites:

  • Creo 4.0+ with J-Link/OTK selected during installation
  • Java 21+ JDK for Creo 12.4+ (class file version 65.0)
  • IDE: Eclipse, IntelliJ, or VS Code

CLASSPATH configuration (Creo 12.4+):

${CREO_HOME}/Common Files/text/java/otk.jar
${CREO_HOME}/Common Files/text/java/pfcasync.jar

CLASSPATH configuration (Creo 4.0-11.x):

${CREO_HOME}/Common Files/otk_java_free/*.jar

Application registration (jlink.txt):

DESCRIPTION=MyApp
STARTUP=DLL
JAVA_MAIN_CLASS=com.mycompany.MyApp
JLINK_VERSION=11.0
CLASSPATH=MyApp.jar

Common Use Cases

Batch Model Modification:

  1. Get session
  2. For each model: RetrieveModel() → modify parameters → Regenerate() → Save()

Assembly Generation from Data:

  1. Create base assembly
  2. For each component: AddFeature(COMPONENT) → ApplyConstraints()
  3. Save assembly

Feature Extraction for CAM:

  1. Get model
  2. Iterate features by type
  3. Extract geometry references
  4. Generate NC code or CNC path data

Parameter-Driven Design:

  1. Get session
  2. Modify model parameters
  3. Regenerate model
  4. Extract modified geometry
  5. Generate drawings/exports

UI Integration:

  1. Create UICommand
  2. Register in menu/toolbar
  3. Handle selection via SelectionListener
  4. Apply changes to model

Creo 12.4 API Quick Reference

Verified Methods (from JAR analysis)

InterfaceMethodReturnsDescription
SessionGetCurrentDirectory()StringCurrent working dir
SessionGetActiveModel()ModelCurrent active model
SessionRetrieveModel(ModelDescriptor)ModelOpen model
ModelGetFullName()StringFull model path
ModelGetFileName()StringFile name only
ModelGetType()ModelTypeMDL_PART/MDL_ASSEMBLY
ModelListParams()ParametersAll parameters
SolidListFeaturesByType(Boolean, FeatureType)FeaturesGet features
SolidGetFeatureByName(String)FeatureGet single feature
SolidGetPrincipalUnits()UnitSystemUnit system
FeatureGetName()StringFeature name
FeatureGetFeatType()FeatureTypeFeature type
FeatureGetStatus()FeatureStatusSUPPRESSED/ACTIVE/etc
FeatureListSubItems(ModelItemType)ModelItemsGet dimensions etc
FeatureListChildren()FeaturesDependent features
BaseDimensionGetDimValue()doubleDimension value
BaseDimensionSetDimValue(double)voidSet dimension
ComponentFeatGetModelDescr()ModelDescriptorComponent model
ParameterGetValue()ParamValueParameter value
ParamValueGetDoubleValue()DoubleNumeric value
ParamValueGetStringValue()StringString value

Non-Existent Methods (Common Mistakes)

Wrong MethodCorrect Alternative
session.IsAlive()Try-catch GetCurrentDirectory()
session.GetWorkingDirectory()GetCurrentDirectory()
session.UISetComputeMode()Not available in Creo 12.4
model.GetModelName()GetFullName() or GetFileName()
feat.GetSuppressed()GetStatus() == FEAT_SUPPRESSED
feat.GetFailed()GetStatus() == FEAT_UNREGENERATED
feat.ListDimensions()ListSubItems(ITEM_DIMENSION)
dim.GetValue()GetDimValue() (BaseDimension)
compFeat.GetModelDescriptor()GetModelDescr()
model.GetUnitsystem()Solid.GetPrincipalUnits()

Unresolved Questions

  • Async connection best practices for distributed teams
  • Performance optimization for large assemblies (100+ components)
  • Integration patterns with SmartAssembly scripting workflow

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

mcpjam

31.53%
按下载量换算20

Claude Code

22.61%
按下载量换算15

windsurf

17.43%
按下载量换算11

zencoder

12.5%
按下载量换算8

crush

8.62%
按下载量换算6

cline

3.28%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills