udf_place
Places a user-defined feature into a Creo part or assembly to create real geometry, mapping prompt references and setting variable dimensions from inspected UDF data.
Instructions
Create real geometry by placing a UDF (user-defined feature) into a part or assembly.
references maps each prompt from udf_inspect to model geometry: a name string -> datum plane/axis/csys/point/curve feature name or item name, e.g. "TOP", "A_1", "CS0" an int -> geometry id (e.g. a surface id from creoson geometry.get_surfaces) an object -> {"name"|"id": ..., "type": ...} to override the type "" for a body -> the part's (first) body dims sets variable dimensions by the names udf_inspect lists, e.g. {"DM": 12, "T": 30}. Returns the new group with its features and final dimension values.
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>",
"references": "<references>"
},
"name": "udf_place"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dims | No | ||
| file | No | ||
| name | Yes | ||
| scale | No | ||
| dependency | No | independent | |
| group_name | No | ||
| references | Yes | ||
| orientations | No | ||
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||