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)
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.
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?
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.
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.
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...