cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to compare the drawing files ?

rbodu
1-Newbie

How to compare the drawing files ?

suppose that we have the master file (.drw) and the file is created by the user (.drw)

how to check weather the user created is follows all the master file properties like(dimension, no of sheets, view templates)


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
6 REPLIES 6
mender
5-Regular Member
(To:rbodu)

If you want to verify that the user drawing and the master drawing have the same number of sheets, you call ProDrawingSheetsCount on each and see if they are the same.  How this extends to other attributes you might want to check is particular to each.  You may wish to consider implementing your customization as an extension to ModelCHECK, so you can leverage the checks performed there.  Or not, if yours all require this other reference model to define the desired properties.

rbodu
1-Newbie
(To:mender)

suppose we are opening the TWO (.drw) files in the same session

It is possible to compare the both the drawings with the API.

which API should use?

mender
5-Regular Member
(To:rbodu)

For the example given,

int n_sheets1, n_sheets2;

ProDrawingSheetsCount(p_drw1, &n_sheets1);

ProDrawingSheetsCount(p_drw2, &n_sheets2);

if (n_sheets1 != n_sheets2)

  /* difference found */


For other things you might want to check, you'd call other APIs as appropriate.  Since you haven't said what you're looking to check, it'd hard to give you exact code.

rbodu
1-Newbie
(To:mender)

I want to compare the actual content present in the both the drawing files

suppose that the first file in an master file and other is user created file (the user should follow all the properties which is present in the master file )

for example: suppose the user forget to give the symbol in in particular view temple which is present in the mater file

at this condition in the master file the symbol should be highlighted means the user come to know what he had forget to add.

and thanx Mathew for your value able guidelines.

TomasLoun
4-Participant
(To:rbodu)

You have to compare all drawing items by your program I think. That means to get all sheets, views, tables, notes, symbols, dimensions etc. and compare them. That means a lot of used functions and a lot of work...

Chris3
19-Tanzanite
(To:rbodu)

Consider voting on this idea:

Track Changes for Creo Drawings and Models

Announcements