We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Validating diagram model semanthics

I''m using Essencial Diagram to make a GUI that enables people to create some diagram (based on 3 ou 4 symbols I previously defined in the Symbol Designer). This diagrams people create have some semantic rules, but I don''t know how to implement them. For example, I can DragnDrop any symbols from the palette to the Model area. But when I''m going to link them I must assure that some instance of symbol type A (for example) isn''t connected to any instance of a symbol of type B. I don''t know how to do it using Validate event or something like that (I don''t event know how to access the links in the model... I thnik it''s not to clear in the documentation). Thank You

1 Reply

AD Administrator Syncfusion Team June 17, 2004 01:55 PM

Hi Jose, Kindly take a look at the code in the MemberSymbol.cs file in the OrgChart sample that ships with Essential Diagram. It has code for AcceptConnection which should give you an idea to do what you are seeking. However, there was a problem with the AcceptConnection method which has since been fixed. We should have a newer version available for download in Direct-Trac which includes this fix. Regards Arun

Loader.
Live Chat Icon For mobile
Up arrow icon