Nevron Forum

how to Get shape in attachments files?

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

By panbo hong - Wednesday, September 26, 2012

I have two shapes ,how to Get shape in attachments files? thanks!
By Nevron Support - Wednesday, September 26, 2012

Hi,

The current version of the diagramming component does not support this kind of operation, but the new diagramming component we are currently working on will support them. Currently with the old diagram the closest thing to what you want can be achieved like this:

// Create a graphics path that represents the model of the polygon

GraphicsPath path = new GraphicsPath();

path.AddRectangle(new RectangleF(0, 0, 200, 150));

path.AddArc(117, 0, 300, 150, 135, 90);

 

// Host the graphics path in a NCustomPath primitive

NCustomPath pathPrimitive = new NCustomPath(path, PathType.ClosedFigure);

 

// Create a composite shape and put the path primitive in it

NCompositeShape shape = new NCompositeShape();

shape.Primitives.AddChild(pathPrimitive);

 

// Add the composite shape to the drawing document's active layer

m_View.Document.ActiveLayer.AddChild(shape);

 

// Update the model bounds

shape.UpdateModelBounds();

 

// Reposition the shape

shape.Location = new NPointF(200, 200);

Note that this is not done through means of Constructive Solid Geometry (CSG). Real CSG support will be available in the new diagramming component we are currently working on.

By panbo hong - Wednesday, September 26, 2012

new version how time distribute?
By Nevron Support - Thursday, September 27, 2012

Hi Panbo,
We are still in design and development phase. There is no ETA for the release of this new diagram control.