Nevron Forum

import vector based graphics?

https://www.nevron.com/Forum/Topic3605.aspx

By Douglas Earl - Friday, May 28, 2010

Is there any way to import vector-based graphics such as SVG?  How can we create complex shapes (such as the people shapes in your symbol shapes library) that aren't based on images?  If there is no way for us to do this ourselves, do you or another party provide this as a service?
By Nevron Support - Wednesday, June 2, 2010

Hi Douglas,

Importing from SVG or other vector based format with all the details involved is very difficult, since this essentially means making an SVG viewer. We thought of creating such importers, but in all cases they will have many limitations.

Currently the best way to make custom shapes visually is to use the diagram designer and to create custom libraries. This is basically achieved in this way:

1. Click on the New Library Command
2. Create and edit the shapes that you need in the drawing view.
3. Select all shapes and compose them to a single shape.
4. Drag and drop the composed shape in the library.
5. Repeat 2-4 for all custom shapes.
6. Save you library in .nlx format.
7. In your code you can load the library from the .nlx file and create instances of the masters it contains.

In fact all the shapes that we provide were first sketched in the diagram designer, and were then converted to code.