feature_tree_create
Creates any Creo feature from an Object TOOLKIT element tree, enabling sweeps, blends, drafts, ribs, patterns, mirrors, surfaces, and other features without dedicated tools.
Instructions
Create ANY Creo feature from an Object TOOLKIT element tree (the route to features without a dedicated tool: sweeps, blends, drafts, ribs, patterns, mirrors, surfaces, cosmetic threads...).
JSON node: {"elem": "PRO_E_...", , "children": [...]}, value one of "int" (number or TOOLKIT constant name like "PRO_EXTRUDE", "A | B" for flags), "double", "str", "bool", "ref"/"refs" (+ optional "ref_type"), "collection": {"edges"|"chain"|"curves"|"surfaces": [refs]}, "sketch": {"entities": [...]} on PRO_E_SKETCHER (see feature_extrude for entities). Workflow: toolkit_doc("ProRound") for the tree layout -> toolkit_lookup for constant values -> feature_tree_dump of a similar existing feature as a template -> feature_tree_create. xml: Creo's own element-tree XML (as from feature_tree_dump format="xml").
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "feature_tree_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | ||
| file | No | ||
| tree | No | ||
| undo_if_fail | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||