hello all i need a macro that detect modification associeted to the part that is modified thank you all.
Well, you better get started .
Start writing it and we can help where you get stuck.
If you're just going to color the differences, why not color one of the parts red, place them in a common assembly and mate their origins coincident. That should give the same information for additive features.
Sorry, your specification/requirement is very poorly and insufficiently described.
If you want to compare two different models and see how they vary, you can use the Compare Geometry tool that's built into SolidWorks. Please see Compare Geometry Using SOLIDWORKS Utilities
If you want some code that watches while you work and colors different features different colors, I don't know of any that exist already, and it's a large enough project that I doubt anyone will tackle it for free. I could be wrong though.
First of all thank you Mr.Josh Brady for your feedback,i'knaw that this question need many steps to anser it but realy i need even the steps to knew haw to do it and the macro to just color the modified zone
You have not even specified whether you want to detect changes to a single part file or if you want to detect differences between two different part files.
hello josh think you for you anser ,ok i will explain mort:
initial part and modified part:
i need a macro that can read the faces, edage , vertex of initial part and compaire them with the modified part means olso read the faces ,edges,vertex of the second part(modifed part i mean)to see the simularity then the faces that changed give them ather color to sey that this face for example changed do you indrestend' the picture maybe explain more. thank you Josh Brady
I believe this is almost exactly how Compare Geometry works. Did you investigate that? It's built-in functionality of SolidWorks.
Since this function already exists in SolidWorks, if you really need your own macro for some reason it will probably have to be written for you. How much are you prepared to pay for such a macro? I think the cost will probably be around USD $1000 to $2000 unless someone finds your challenge interesting and unique and wants to try it for free.
What I do in these situations is either use the Compare utility just like Josh said, or I add both parts to an assembly and overlay them, then change the color of 1.
Retrieving data ...