Can any one tell me How to compare two drawing file with object data(two version of the same drawing) .if any body has source code (C# Arx) then will be much better.
Thanks
Murali
If you can explain in great detail what is "to compare the drawings" I'll try to help you.
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
ok..suppose I have drawing A ..Now I have made some changes in drawing A(like addition/deletion/object data modification) and save it as Drawing B. Now I want to compare Drawing A and B to find out the changes and mark those changes in a temporary drawing.
Thanks
Murali
1. Iterate model space (and other layout if needed).
2. Collect ObjectID's for all entities in both dwg files.
3. Compare collection of ObjectID's, find deleted/added entities (compare not ObjectID but Handle value)
4. Compare entities with the same Handle from both dwg file. It is easy compare entitytype, layer, color, linetype, etc., but not easy compare geometry of entities.
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Thanks..actually major issue with the object data copmarison.should I have to open both the dwg in the current session?
If you have sample code..will b good for me.
Thanks
Murali
@murali.pandey wrote:
...should I have to open both the dwg in the current session?...
Yes.
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
is there a way to iterate over all the different properties of an object, without having to specifically specify each one. Such as height , width. just use the properties that would normally show up in the properties in Visual Studio.
I know this is probably a long shot.
Thanks.
You could use reflection or create a filer.
Here was attempt that was thrown together as a intial test just to see how it worked but I think I wiould take another approach.
http://www.theswamp.org/index.php?topic=39991.0
It used handles to compare so the idea was for comparing diffrent versions of the same drawing.
It might be better to go with a DxfFiler that which looks like it overrides might be eaiser for creating some type of structure for comparing.
If you look at Tony T posts here
http://www.theswamp.org/index.php?topic=41311.0
http://www.theswamp.org/index.php?topic=41371.0
You could maybe use LINQ to group types, and figure a way to test some properties and get more specidic as needed like using curve properties for lines, polylines, and get more specific for ones that pass.
Or somehow mix the two where you file out info that would make comparing eaiser.