robmiles.com
  • Journal
  • Projects
  • C# Yellow Book Begin to Code with C# Begin to Code with Python Begin to Code with JavaScript Exam Ref 70-483 Programming in C#
  • Hull Pixelbot Wrestling with Python Arduino Raspberry Pi Bluetooth Manager chords settings
  • The Little Brown Ikea Pencil of Doom Trip Hazard PI
  • RedNoseDay 2011 RedNoseDay 2015 Red Nose Day 2017 Red Nose Day 2019 Red Nose Day 2021 Three Thing Game Destruction Golf Rather Useful Seminars Crazy Archive Ye Olde Spoke Very Silly Games News Departmental Events Windows Phone App Studio LiveWriterFickrInkify
  • Tag Cloud

robmiles.com

  • Journal/
  • Projects/
  • Books/
    • C# Yellow Book
    • Begin to Code with C#
    • Begin to Code with Python
    • Begin to Code with JavaScript
    • Exam Ref 70-483 Programming in C#
  • Tech/
    • Hull Pixelbot
    • Wrestling with Python
    • Arduino
    • Raspberry Pi
    • Bluetooth Manager
    • chords
    • settings
  • Stories/
    • The Little Brown Ikea Pencil of Doom
    • Trip Hazard PI
  • Archive/
    • RedNoseDay 2011
    • RedNoseDay 2015
    • Red Nose Day 2017
    • Red Nose Day 2019
    • Red Nose Day 2021
    • Three Thing Game
    • Destruction Golf
    • Rather Useful Seminars
    • Crazy Archive
    • Ye Olde Spoke
    • Very Silly Games News
    • Departmental Events
    • Windows Phone App Studio
    • LiveWriterFickrInkify
  • Tag Cloud/

robmiles.com

Rob Miles on the web. Also available in Real Life (tm)

Journal

robmiles.com

  • Journal/
  • Projects/
  • Books/
    • C# Yellow Book
    • Begin to Code with C#
    • Begin to Code with Python
    • Begin to Code with JavaScript
    • Exam Ref 70-483 Programming in C#
  • Tech/
    • Hull Pixelbot
    • Wrestling with Python
    • Arduino
    • Raspberry Pi
    • Bluetooth Manager
    • chords
    • settings
  • Stories/
    • The Little Brown Ikea Pencil of Doom
    • Trip Hazard PI
  • Archive/
    • RedNoseDay 2011
    • RedNoseDay 2015
    • Red Nose Day 2017
    • Red Nose Day 2019
    • Red Nose Day 2021
    • Three Thing Game
    • Destruction Golf
    • Rather Useful Seminars
    • Crazy Archive
    • Ye Olde Spoke
    • Very Silly Games News
    • Departmental Events
    • Windows Phone App Studio
    • LiveWriterFickrInkify
  • Tag Cloud/
August 11, 2025

FreeCAD Tips 1 : Clear your workspace

August 11, 2025/ Rob Miles

If you use FreeCAD from Python (I might be the only one) then here’s a tiny bit of code that’s very useful.

# Delete all existing objects in the document
for obj in doc.Objects:
    doc.removeObject(obj.Name)

This allows you replace existing code generated objects with new ones so your workspace doesn’t fill up with stuff.

August 11, 2025/ Rob Miles/ Comment
FreeCAD

Rob Miles

  • Journal
  • Driffield Steam Fair Fun
  • Journal/
  • Projects/
  • Books/
    • C# Yellow Book
    • Begin to Code with C#
    • Begin to Code with Python
    • Begin to Code with JavaScript
    • Exam Ref 70-483 Programming in C#
  • Tech/
    • Hull Pixelbot
    • Wrestling with Python
    • Arduino
    • Raspberry Pi
    • Bluetooth Manager
    • chords
    • settings
  • Stories/
    • The Little Brown Ikea Pencil of Doom
    • Trip Hazard PI
  • Archive/
    • RedNoseDay 2011
    • RedNoseDay 2015
    • Red Nose Day 2017
    • Red Nose Day 2019
    • Red Nose Day 2021
    • Three Thing Game
    • Destruction Golf
    • Rather Useful Seminars
    • Crazy Archive
    • Ye Olde Spoke
    • Very Silly Games News
    • Departmental Events
    • Windows Phone App Studio
    • LiveWriterFickrInkify
  • Tag Cloud/

robmiles.com

Rob Miles is technology author and educator who spent many years as a lecturer in Computer Science at the University of Hull. He is also a Microsoft Developer Technologies MVP. He is into technology, teaching and photography. He is the author of the World Famous C# Yellow Book and almost as handsome as he thinks he is.

 
Books

Projects

Python Shorts

Bad Jokes
Journal RSS