* BIM: Fix Site view provider initialization and constraints This commit fixes bugs in the `_ViewProviderSite` lifecycle, ensuring that sun path properties are correctly initialized with valid defaults and that their constraints are reliably restored when a document is opened. Previously, two main problems existed: 1. New Objects: When a new `Site` object was created, its sun path properties (e.g., `SunDateMonth`) would default to 0, which is an invalid value. The property editor in the GUI would also lack the appropriate min/max constraints. 2. Restored Objects: When a document containing a `Site` was opened, the property constraints were not reapplied. This happened because the view provider's initialization logic was not being reliably triggered due to race conditions during the document deserialization process. These issues are addressed now by a deferred initialization sequence: - For New Objects: In `_ViewProviderSite.__init__`, constraint and default value setup is deferred using `QTimer.singleShot(0)`. The `restoreConstraints` method also now sets sensible defaults (e.g., month 6, day 21) when it detects a new object. - For Restored Objects: The data object's `_Site.onDocumentRestored` hook is now used as a trigger to start the view provider's initialization. This is a necessary workaround, as the `ViewProvider` lacks its own restoration hook. This method now ensures the view provider's properties are present and then schedules `restoreConstraints` to run via `QTimer`. * BIM: add ArchSite GUI tests and fixtures - Additionally clean up and document the CMakeLists.txt file for better maintainability and readability * BIM: Enable GUI tests on CI - The line to enable the BIM workbench has been commented out, as previously it occasioned a timeout error on CI - The BIM GUI tests have been uncommented out to enable them
Your own 3D Parametric Modeler
Website • Documentation • Forum • Bug tracker • Git repository • Blog
Overview
-
Freedom to build what you want FreeCAD is an open-source parametric 3D modeler made primarily to design real-life objects of any size. Parametric modeling allows you to easily modify your design by going back into your model history to change its parameters.
-
Create 3D from 2D and back FreeCAD lets you sketch geometry-constrained 2D shapes and use them as a base to build other objects. It contains many components to adjust dimensions or extract design details from 3D models to create high quality production-ready drawings.
-
Designed for your needs FreeCAD is designed to fit a wide range of uses including product design, mechanical engineering and architecture, whether you are a hobbyist, programmer, experienced CAD user, student or teacher.
-
Cross platform FreeCAD runs on Windows, macOS and Linux operating systems.
-
Underlying technology
- OpenCASCADE A powerful geometry kernel, the most important component of FreeCAD
- Coin3D library Open Inventor-compliant 3D scene representation model
- Python FreeCAD offers a broad Python API
- Qt Graphical user interface built with Qt
Installing
Precompiled packages for stable releases are available for Windows, macOS and Linux on the latest releases page.
On most Linux distributions, FreeCAD is also directly installable from the software center application.
For weekly development releases visit the releases page.
Other options are described on the wiki Download page.
Compiling
FreeCAD requires several dependencies to correctly compile for development and production builds. The following pages contain updated build instructions for their respective platforms:
Reporting Issues
To report an issue please:
- Consider posting to the Forum, Discord channel, or Reddit to verify the issue;
- Search the existing issues for potential duplicates;
- Use the most updated stable or development versions of FreeCAD;
- Post version info from
Help > About FreeCAD > Copy to clipboard; - Restart FreeCAD in safe mode
Help > Restart in safe modeand try to reproduce the issue again. If the issue is resolved it can be fixed by deleting the FreeCAD config files. - Start recording a macro
Macro > Macro recording...and repeat all steps. Stop recording after the issue occurs and upload the saved macro or copy the macro code in the issue; - Post a Step-By-Step explanation on how to recreate the issue;
- Upload an example file (FCStd as ZIP file) to demonstrate the problem;
For more details see:
Note
The FPA offers developers the opportunity to apply for a grant to work on projects of their choosing. Check jobs and funding to know more.
Usage & Getting Help
The FreeCAD wiki contains documentation on general FreeCAD usage, Python scripting, and development. View these pages for more information:
The FreeCAD forum is a great place to find help and solve specific problems when learning to use FreeCAD.
This project receives generous infrastructure support from
and KiCad Services Corp.