hello all i need a macro that detect modification associeted to the part that is modified thank you all.Capture.JPG


Categories: API∕Macros

Comments
Last comment By: Dan Pihlaja   Thu, 15 Feb 2018 14:14:18 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

Well, you better get started .

 

Start writing it and we can help where you get stuck.

By: Jacob Corder  Tue, 13 Feb 2018 13:18:40 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

 

By: Rachid Mhamdi  Tue, 13 Feb 2018 14:05:37 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

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.

By: John Alexander  Tue, 13 Feb 2018 14:19:47 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

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.

By: Josh Brady  Tue, 13 Feb 2018 14:21:24 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

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

By: Rachid Mhamdi  Tue, 13 Feb 2018 22:50:23 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

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. 

By: Josh Brady  Wed, 14 Feb 2018 13:13:15 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

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

Sans titre.png

By: Rachid Mhamdi  Thu, 15 Feb 2018 08:10:55 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

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.

By: Josh Brady  Thu, 15 Feb 2018 13:26:07 GMT
Re: hello all i need a macro that detects the changes associated to the part and color the zone that is changed

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.

By: Dan Pihlaja  Thu, 15 Feb 2018 14:14:18 GMT
You are not authorized to view this page No results found! Suggestions: Check spelling, try a different search, or browse topics below.