geom_selection_actions
Creates box, ball, cylinder, or logical geometry selections and returns global entity numbers that can be passed directly to physics and material selections.
Instructions
Create a geometry-sequence selection feature and return matched entity numbers.
The returned numbers are GLOBAL entity numbers of the finalized geometry (the same numbering physics boundary conditions use), so they can be passed straight to physics/material/feature selections.
Args: selection_type: BoxSelection | BallSelection | CylinderSelection | DiskSelection | ExplicitSelection | AdjacentSelection | UnionSelection | IntersectionSelection | DifferenceSelection | ComplementSelection | LogicalExpressionSelection. tag: selection feature tag (None = automatic, e.g. boxsel1). entity_dim: entity dimension to select: 3=domains, 2=boundaries, 1=edges, 0=points, -1=whole objects (default 2). entities: explicit entities for ExplicitSelection as {"object": [ids]}. xmin/xmax/ymin/ymax/zmin/zmax: box limits (BoxSelection); null = unbounded. condition: intersects | inside | somevertex | allvertices. pos: position for BallSelection ([x,y,z]) or CylinderSelection/DiskSelection (Disk: [x,y]; Cylinder: 3D base point). r: radius (Ball/Cylinder/Disk) or cylinder outer radius. axis: axis for CylinderSelection, e.g. ["0","0","1"] or "z". input/add/subtract: tags of preceding selection features used by the set-operation selections (Union/Intersection/Difference/Complement/ Adjacent/LogicalExpression). expression: logical expression for LogicalExpressionSelection, e.g. "sel1&!sel2" (use input tags). cumulative: also create a cumulative selection with this tag and let the new feature contribute to it. properties: extra selection feature properties (e.g. {"selshow": "off"}). label: display label. build: build the geometry after creating the selection (default true). geometry: geometry sequence tag (default "geom1"). component: component tag (None = auto). model: model name/tag (None = current model).
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": {
"selection_type": "<selection_type>"
},
"name": "geom_selection_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| r | No | ||
| add | No | ||
| pos | No | ||
| tag | No | ||
| axis | No | ||
| xmax | No | ||
| xmin | No | ||
| ymax | No | ||
| ymin | No | ||
| zmax | No | ||
| zmin | No | ||
| build | No | ||
| input | No | ||
| label | No | ||
| model | No | ||
| entities | No | ||
| geometry | No | geom1 | |
| subtract | No | ||
| component | No | ||
| condition | No | ||
| cumulative | No | ||
| entity_dim | No | ||
| expression | No | ||
| properties | No | ||
| selection_type | Yes |