feature_xml_create
Create or edit Creo features from element-tree XML, including round, chamfer, hole, shell, draft, datum and patterns. Use exported XML as a template, then verify the result with model_info and preview_image.
Instructions
Creates/edits geometry in the running Creo 5 through the DreamFeatureApp plugin. There is no mirror tool: build symmetric shapes with symmetric extrudes, revolves or patterns. Units are mm and degrees. Parts are addressed by name (lowercase, no .prt). Model axes: FRONT is the XY plane (normal +Z), TOP is XZ (normal +Y), RIGHT is YZ (normal +X). Each feature call either ends with an active feature or is rolled back. Nothing is saved unless model_save is called. Check results with model_info (volume, bound_box) and preview_image.
Advanced. Create a feature from element tree XML (as returned by feature_xml_export, edited). Works for features without sketches (round, chamfer, hole, shell, draft, datum, pattern...). Reference ids must exist in this model (find_geometry). Failed features are rolled back.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"xml": "<xml>"
},
"name": "feature_xml_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | ||
| name | Yes | Part name without .prt |