.NET

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

Two AutoCAD drawing comparison

2185 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,449
Registered: ‎04-09-2008
Message 2 of 10 (2,177 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,169 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,449
Registered: ‎04-09-2008
Message 4 of 10 (2,167 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,159 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,152 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,449
Registered: ‎04-09-2008
Message 7 of 10 (2,144 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,139 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,136 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: 337
Registered: ‎05-12-2009
Message 10 of 10 (2,130 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!