-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Export functionality #6
Comments
--- Task #6: Create Export functionality
For the export functionality I can think of the following approach:
|
- Add function get_objects_of_active_document - Add test file test_json_exporter and first test case --- Task #6: Create Export functionality
- Move logic from exporter to the JsonProductAssembly - Add read_from_freecad empty function in AJsonProduct - Implement functionality to recursively traverse the tree using JsonProductAssembly and for each object open the FreeCAD document and call read_from_freecad --- Task #6: Create Export functionality
In AJsonProduct and ProductAssembly - Update read_from_freecad - Add parse_to_json function --- Task #6: Create Export functionality
Now returns a list of the parsed parts, when calling read_from_freecad on the root assembly. --- Task #6: Create Export functionality
In AJsonPart: - Add read_from_freecad, parse_to_json and empty _get_freecad_properties functions In specific parts: - overwrite _get_freecad_properties for the shape --- Task #6: Create Export functionality
Add tests for box, cone, cylinder, sphere and geometry. Also minor fixes. --- Task #6: Create Export functionality
Test reading from FreeCAD object --- Task #6: Create Export functionality
Add _ignore_static function to test_setup to ignore a static key in a whole JSON object. --- Task #6: Create Export functionality
- Use sheet in json_part and json_product - Add function in json_spread_sheet to read from the FreeCAD sheet object, not the active_document - Add a test case for that function --- Task #6: Create Export functionality
- Fix command_export and close document in the UI after the export - Resolve TODOs - Add test case for rotations in test_json_product and test case for parsing to JSON in test_json_product_assembly - Add test_get_products_of_active_document and test_read_from_freecad in test_json_product_assembly - Replace print with Log statements --- Task #6: Create Export functionality
Some shapes couldn't be tested, because they are missing in the importer too |
The text was updated successfully, but these errors were encountered: