Code Editor & Project Structure

Learn how to work with OpenSCAD code, navigate the project structure, and understand the design tree.

Project Structure

Project Location

All Forge projects are stored in the /forgeprojects directory in your root folder. Each new project you create will be saved here.

Project directory structure

OpenSCAD Code Editor

Editing OpenSCAD Code

The OpenSCAD code for your design is always accessible and editable in the tab to the right of the treeview. You can modify the code directly to fine-tune your design or add complex features.

OpenSCAD code editor interface

Design Tree

Understanding the Treeview

The treeview provides a hierarchical representation of your 3D design, showing all shapes and their measurements. This makes it easy to understand the structure of your model and verify dimensions.

  • • View all shapes in your design
  • • Check measurements and dimensions
  • • Understand the hierarchy of components
  • • Navigate complex designs easily
Design tree view showing model hierarchy

Tips and Best Practices

Code Organization

  • • Keep code modular and well-commented
  • • Use meaningful variable names
  • • Group related operations together
  • • Save frequently to avoid losing changes

Design Tree Usage

  • • Review measurements before finalizing
  • • Use the tree to navigate large models
  • • Verify component relationships
  • • Check for proper nesting of shapes