I am always looking for something to help me save time and always looking for examples on how other people do things so I just thought I'd share my new userform to change a hi/low or bilateral to a symetrical tolerance (we model to nominal by default)
I have set it up as a shortcut to the macro on my keyboard so I can select a dimension and run it quickly.
Here is a screen shot of the UI:
you only have to have a dimension selected and it will convert the value and apply the tolerance with increasing the precision if required over the documents default.
Enjoy. (and if you have any comments/criticisms please let me know)
SolidworksApi macros
Nice, thanks for sharing it Paul
Hey Paul, good job!
Thanks for sharing!
Cheers
updated version attached... this one doesn't blow away any prefixes, suffixes, etc you may have put in place before, it ONLY changes the dimension value and the tolerance.
How can I activate this macro? When I click on a dimension with a fit tolerance and then hit the macro nothing happens. Thanks.
From, David
David,
I'm not sure, works fine for me. Can you post a file you are using and say which dimension you can't it get to run on? What version of SolidWorks are you using?
Paul
I am using Solidworks 2015. I'm trying to change dimensions such as the ones attached below to symmetric tolerances using your macro. Maybe I am importing the macro wrong...
How are you starting the macro after selecting a dimension? Are those dimensions you can actually double click on and change the dimension value? Can you post the part and drawing files?
I simply click on the dimension and try to run the macro. I am able to edit the dimensions. Here are some sample files. Thanks!
From, David
David,
Sorry for the delay in response. Are you not getting the user form to display or is the macro running not as you expect?
You are running this on a drawing dimension rather than a model dimension, it isn't capable of changing the nominal value displayed, but will change the tolerance. You'll have to run this on model dimensions inserted in the drawing or on dimensions in the actual part file.
Let me know if you have any other questions.
I simply can not get the user form to display. What I'm doing is annotating a dimension from a part file in the drawing file. And shucks I thought it would be able to change the value to a nominal value. Oh well, thanks for all your time!
From, David