View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000734||FreeCAD||Bug||public||2012-06-05 00:42||2012-06-05 15:55|
|Fixed in Version||0.13|
|Summary||0000734: Cannot export Drawing Page to SVG|
|Description||Werner, can you have a look at this? I tried to solve myself but I got a bit lost...|
When you have a Drawing Page object selected, trying to export it to the SVG format calls the wrong module and the export fails:
>>> import FreeCADGui
>>> del __objs__
Exception (Mon Jun 4 23:38:39 2012): 'NoneType' object has no attribute 'dump'
Exception (Mon Jun 4 23:38:39 2012): FreeCAD exception thrown ('NoneType' object has no attribute 'dump')
Stack Trace: Traceback (most recent call last):
File "<string>", line 4, in <module>
I suppose it's because now the Drawing View is a Document View too, hence it uses FreeCADGui.export() instead of DrawingGui.export()... Only, I couldn't find how to solve that... Couldn't figure out how it was working before.
Can I leave this to you?
|Tags||No tags attached.|
Note, for the export we have several modules than can write SVG and each of them does it in a different way:
* FreeCADGui exports the content of the 3d view
* Drawing exports the drawing page
* Draft ...
You have apparently chosen the first entry 3D view which uses the first option. Sure, there it wasn't handled correctly either which is now fixed.
But to export the drawing page you have to chose the filter Drawing (*.svg *.svgz)
git show ff187c1
Excellent, yes, that was it... Indeed I needed to select "Drawing" especially. Before wasn't it that when you specified an svg filename didn't you get automatically a module selector dialog? I don't remember for sure.
But your fix solves the error message, thanks a lot!
> Before wasn't it that when you specified an svg filename didn't you get automatically a module selector dialog?
For the export you are forced to choose an entry of the filter list which is associated to the corresponding module. So, there is no need to show the selector dialog. However, I can't remember if we had the one global filter as on the open dialog which shows all supported types.
For the Import and Open commands we still have this global filter and there the selector dialog will be shown. But also here if you explicitly use the right filter in the list the dialog won't be shown either.
||Ah you are right... I think I mixed up the import and export stuff...|
|2012-06-05 00:42||yorik||New Issue|
|2012-06-05 00:42||yorik||Status||new => assigned|
|2012-06-05 00:42||yorik||Assigned To||=> wmayer|
|2012-06-05 09:46||wmayer||Note Added: 0002127|
|2012-06-05 09:46||wmayer||Status||assigned => closed|
|2012-06-05 09:46||wmayer||Resolution||open => fixed|
|2012-06-05 09:46||wmayer||Fixed in Version||=> 0.13|
|2012-06-05 13:00||yorik||Note Added: 0002132|
|2012-06-05 15:52||wmayer||Note Added: 0002133|
|2012-06-05 15:55||yorik||Note Added: 0002134|