insert_into_scad
Insert OpenSCAD code into an existing module at the start or end to add geometry like holes or supports without modifying the rest of the design.
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 |