.NET

.NET

Reply
Active Contributor
pva75
Posts: 48
Registered: ‎07-22-2012
Message 21 of 23 (87 Views)

Re: How to create linked objects (for network diagramm)?

04-05-2013 10:48 PM in reply to: Selevkos

Hi Selevkos

 

Please check my answer before - I linked objects in ExtendedDictionary and allpy new position to all lined objects during move events.

 

Don't forget to handle copy/paste/delete for your objects it you want to store linked object list for copies objects for example.

 

Editor is easy - I have 2 promt dialogs - choose first object/point and choose linked object. And then I store this new link - I add new key/value in ExtendedDictionary as handle=linked_handle1, linked_handle2,... So I can easy parse it during any event.

 

Pavel.

Active Member
Selevkos
Posts: 9
Registered: ‎04-05-2013
Message 22 of 23 (84 Views)

Re: How to create linked objects (for network diagramm)?

04-06-2013 12:36 AM in reply to: pva75

Thanks for your fast reply.

 

I will try to do as you suggest.

 

But, also I  want to create a network topology in which users will search for shortest or longest path between the  nodes. 

 

Do you have any suggestion for this?

 

 

 

 

Active Contributor
pva75
Posts: 48
Registered: ‎07-22-2012
Message 23 of 23 (77 Views)

Re: How to create linked objects (for network diagramm)?

04-06-2013 05:32 AM in reply to: Selevkos

Your task can be separated to 2 items: find path and show it.

 

If about second you can do it with OverruledDraw. Add special flag to ExtendedDictionary and it this flag is 1 - draw special line else standard. It allows you to draw path.

 

Second item has many ways. For example you can use additional library (for example C# libraries as GraphSharp or anythink else) or you can use graph theory for it.

 

Pavel.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.