In our application, we need to render paths that we are making in Illustrator. We can do this in WPF by exporting to XAML or SVG and extracting the path data which is in a format detailed in the link below: https://msdn.microsoft.com/en-us/library/cc189041(v=vs.95).aspx
Before i implement a custom parser that takes this format string and returns a GraphicsMill Path object, i just wanted to check there isn't already a function to do this or at least to do part of the work?
I realise Path is serializable but the format isn't the same and it uses magic values for the commands.
Chris Jones;31025 Before i implement a custom parser that takes this format string and returns a GraphicsMill Path object, i just wanted to check there isn't already a function to do this or at least to do part of the work?
Unfortunately, we don't support to import paths from SVG or XAML.
Even though, could you provide us with a sample file/data?
Thanks for your reply, that is what i assumed would be the case. The path data format is quite useful as it can be extracted from files exported from illustrator.
An example path data which should draw a cog (image attached of us rendering it with WPF):
The link i gave describes the format which does appear to line up with the methods on the Path class such as moveTo, LineTo etc. I'm not yet sure whether there will be feature parity though which is a possible concern.
Can you export your AI file to PSD format? In this case, you could get Graphics Mill path without additional manipulations as a clipping path or via PsdShapeFrame’s VectorMask property.
Or you can try to obtain System.Drawing.Drawing2D.GraphicsPath somehow, which is also convertible to GM path.
We could use photoshop files but i want to avoid using that in this area (we are using it for a different part of the application). I've implemented a simple parser class for the XAML/SVG path data format that generates a Path object which seems to work well so far.