.NET

Reply
Mentor
mzakiralam
Posts: 231
Registered: ‎11-09-2012
Message 1 of 10 (2,212 Views)

Two AutoCAD drawing comparison

2212 Views, 9 Replies
01-17-2013 12:42 AM

Hi All,

 

I want to do some coding which will compare that 2 autocad drawings are identical or not? Can anybody help me in this regard. Hints with VB code will be appreciated.

 

Thanks and Regards

zakir

Moderator
Alexander.Rivilis
Posts: 1,450
Registered: ‎04-09-2008
Message 2 of 10 (2,204 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 02:39 AM in reply to: mzakiralam

mzakiralam wrote:

I want to do some coding which will compare that 2 autocad drawings are identical or not? Can anybody help me in this regard. Hints with VB code will be appreciated.


If you can explain in great detail what is "identical drawings", then you may be able to get help.


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Mentor
mzakiralam
Posts: 231
Registered: ‎11-09-2012
Message 3 of 10 (2,196 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 04:42 AM in reply to: Alexander.Rivilis

Suppose, I have one drawing. Now I make a copy of it.  Afterwards I delete few lines from it. I want to compare these 2 drawings whether they are similar or not? The comparison result should tell me that this is not similar. Because I have delete something from the copied drawing. If I do not delete any lines from the copied drawing, then the comparison should tell me  that two drawings are same. This is what I want to mean.

Moderator
Alexander.Rivilis
Posts: 1,450
Registered: ‎04-09-2008
Message 4 of 10 (2,194 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 04:50 AM in reply to: mzakiralam

mzakiralam wrote:

... If I do not delete any lines from the copied drawing, then the comparison should tell me  that two drawings are same...


If everything were that simple ...

 

1. What about you add new lines to drawing?

2. What about you change layer of lines?

3. What about you change color of line?

4. What about you combine some lines in block or group?

5. What about you change properties of dwg-file (Title, Subject, Author, Revision...)?

6. etc...etc..etc..

 

I try to explain how difficult this task in the general case.

 


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Mentor
mzakiralam
Posts: 231
Registered: ‎11-09-2012
Message 5 of 10 (2,186 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 05:15 AM in reply to: Alexander.Rivilis

You are right. Any change in the duplicated drawing should be reported and should give a message that drawings are not similar.

Distinguished Contributor
djonio
Posts: 105
Registered: ‎12-29-2005
Message 6 of 10 (2,179 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 05:46 AM in reply to: mzakiralam

zakir,

 

IMHO Mr. Rivilis is trying to tell you this would be a HUGE, almost undoable task. If so I would agree with him.

as some would say ... "Your eyes are bigger than your wallet."

r,

dennis 

Moderator
Alexander.Rivilis
Posts: 1,450
Registered: ‎04-09-2008
Message 7 of 10 (2,171 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 06:09 AM in reply to: djonio

djonio wrote:

zakir,

 

IMHO Mr. Rivilis is trying to tell you this would be a HUGE, almost undoable task. If so I would agree with him.

as some would say ... "Your eyes are bigger than your wallet."

r,

dennis 


This is exactly that I wanted to say. But my English is not allowed so beautifully and laconically describe the situation. :smileytongue:

 

Zakir. You can begin with this topic: http://www.theswamp.org/index.php?topic=39991.0


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Mentor
mzakiralam
Posts: 231
Registered: ‎11-09-2012
Message 8 of 10 (2,166 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 06:16 AM in reply to: Alexander.Rivilis

Yeah I understand that. This is why my first sentence was "You are right". First I only consider the drawing structure. That is why I was optimistic.

Mentor
mzakiralam
Posts: 231
Registered: ‎11-09-2012
Message 9 of 10 (2,163 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 06:17 AM in reply to: mzakiralam

Thanks any way for your link :smileyhappy:

Valued Mentor
jeff
Posts: 338
Registered: ‎05-12-2009
Message 10 of 10 (2,157 Views)

Re: Two AutoCAD drawing comparison

01-17-2013 06:26 AM in reply to: mzakiralam
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.