Some documents created by importing other CAD data contain group metadata. When exporting my .des to .svg in Designer 2017 the odm namespace is missing.
This causes an error in an external tool Apache Batik used to convert the svg to jpg.
Is there a way to find/remove this metadata inside the .des file?
Or maybe Designer should fix the .svg export to handle the odm tag better.
Example: <odm ...> does not contain a namespace.
Workaround.
Add a namespace so it looks like this:
or remove the full odm tag.
63778bad.des
I figured out how to batch delete the data as a workaround. But this probably should be fixed in Designer so the SVGs output as valid XML.
It finds all groups and clears the "apsid".
Sub RemoveApsidObjectData() ActiveDocument.BeginCommandGroup "RemoveObjectData" Dim shRange As ShapeRange Set shRange = ActiveLayer.FindShapes(Type:=cdrGroupShape) Dim sh As Shape For Each sh In shRange If (sh.Type = cdrGroupShape) Then sh.ObjectData("apsid").Clear End If Next ActiveDocument.EndCommandGroupEnd Sub