Profile Picture

how to Get shape in attachments files?

Posted By panbo hong 12 Years Ago
Author
Message
panbo hong
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 4, Visits: 1
I have two shapes ,how to Get shape in attachments files? thanks!

Attachments
SchematicDiagram.gif (157 views, 16.00 KB)
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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.



Best Regards,
Nevron Support Team



panbo hong
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 4, Visits: 1
new version how time distribute?

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Panbo,
We are still in design and development phase. There is no ETA for the release of this new diagram control.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic