insert_into_scad
Add geometry or operations inside an OpenSCAD module at the start or end. Insert targeted modifications like holes without replacing existing code.
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 |