insert_into_scad
Insert OpenSCAD code into a specific module to add geometry or operations like holes or supports. Choose insertion position before closing or after opening brace.
Instructions
Insert code into an OpenSCAD module without replacing it.
Adds geometry or operations inside a module. Use for targeted
additions like "add ventilation holes to the top panel" or
"add screw holes to the base."
Args:
scad_code: OpenSCAD source code.
module_name: Module to modify (e.g. "base_plate").
code_to_insert: OpenSCAD code to insert.
position: "end" (before closing brace) or "start" (after
opening brace). Default: "end".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | end | |
| scad_code | Yes | ||
| module_name | Yes | ||
| code_to_insert | Yes |