View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002221 | FreeCAD | Bug | public | 2015-08-19 05:48 | 2015-12-15 13:17 |
| Reporter | hyOzd | Assigned To | wmayer | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | Ubuntu Linux 15.04 | ||
| Fixed in Version | 0.16 | ||||
| Summary | 0002221: FreeCADGui.export([object], "test.wrl") doesn't export object if it's not selected | ||||
| Description | When exporting an object/objects to a VRML file using python; I use this line: FreeCADGui.export([object], "test.wrl") But if objects are not also selected in the GUI, exported file is empty like this; -- file: test.wrl -- #VRML V2.0 utf8 Group { children Group { } } ------------------ This happens on latest builds of FreeCAD 0.16 (5351 git). Stable 0.15 version works as expected. | ||||
| Steps To Reproduce | 1. Open a new document 2. Switch to "Part" workbench 3. Create a box shape 4. Unselect the box Shape 5. Switch to Python console 6. Run command: Gui.export([App.ActiveDocument.Box], "./test.wrl") | ||||
| Additional Information | A simple workaround is to select the shape before exporting. I use these lines to export a list of objects: FreeCADGui.Selection.clearSelection() for o in exportObjects: FreeCADGui.Selection.addSelection(o) FreeCADGui.export(exportObjects, filename) | ||||
| Tags | No tags attached. | ||||
| FreeCAD Information | |||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2015-08-19 05:48 | hyOzd | New Issue | |
| 2015-08-26 17:24 | wmayer | Changeset attached | => FreeCAD Master master 99fc24ea |
| 2015-08-26 17:24 | wmayer | Assigned To | => wmayer |
| 2015-08-26 17:24 | wmayer | Status | new => closed |
| 2015-08-26 17:24 | wmayer | Resolution | open => fixed |
| 2015-12-15 13:17 | yorik | Fixed in Version | => 0.16 |
FreeCAD