I am using Nevron Diagram to create a diagram with data stored in my database to create objects of type NShape performed with for what followsDim read As SqlDataReader = consultadatosDB (consultaobjetivos) Do While lectura.Read ()
Nombre_objetos Dim As NShape = CreateFlowChartingShape (Documento_diagrama, FlowChartingShapes.Decision, GetGridCell (lectura.Item (4), lectura.Item (5)), lectura.Item (1), "CPA") LoopThis works fine, but when I create the connectors I have a problem, because only I have the name of a NShape, I wonder how I can create dynamic way connectors with different names to create their connectors,CreateConnector (Documento_diagrama, nombre_objetos, "Center", nombre_objetos, "Center", ConnectorType.Line, "NO") Thank you very much.JAMV
Hello Javier,
Can you please elaborate and explain more clearly what you are trying to achieve.
Best Regards,Nevron Support Team
thanks The idea is this, I create a chart dynamically, as followsusers enter data about each of its processes and the sequence in which they like the level and sublevel of each process, the idea is that with that information stored in database diagram can be generatedconsultadatosDB: is a class that I see the number and a description of the objects must be created in the diagram, it also brings the values of their positionDim read As SqlDataReader = consultadatosDB (consultaobjetivos) Do While lectura.Read () Name_objetos Dim As NShape = CreateFlowChartingShape (Documento_diagrama, FlowChartingShapes.Decision, GetGridCell (lectura.Item (4), lectura.Item (5)), lectura.Item (1), "DESIGN") Looplectura.item (4) = vertical positionlectura.item (4) = horizontal positionlectura.item (1) = object nameThis works great, now I want to create the connectors between objectsand carried out as followsCreateConnector (Documento_diagrama, name_objetos, "Center", name_objetos, "Center", ConnectorType.Line, "NO")The problem here is him / herself that CreateConnector dees for the name of NShape type objects to create the connector, but as my connections are all are created dynamically with the same name Dim As name_objetos NShape and display connectors each pointing to himself I would like to know if you can help me solve this problem
thanks
Hello Javier,We are unable to understand the problems you currently experience.Can you please send us your sample project. Also, please explain more clearly what is the problem with the connectors names.
The following is a simple example on how to create a diagram from a database using the automatic Graph Data Importer: http://support.nevron.com/KB/a27/automatically-create-a-diagram-from-a-database.aspx
Note – to set the connectors texts, you can subscribe to the EdgeImported event of the Data Importer (similar to the VertexImported event like in the example).