.NET

.NET

Reply
Active Contributor
48 Posts
2 Kudos
Registered: ‎07-22-2012
Post 21 of 23

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
9 Posts
0 Kudos
Registered: ‎04-05-2013
Post 22 of 23

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
48 Posts
2 Kudos
Registered: ‎07-22-2012
Post 23 of 23

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!