Is there any way in API to act like pressing "reverse the sense of the dimension" on the dimension dialog
SolidworksApi macros
Is there any way in API to act like pressing "reverse the sense of the dimension" on the dimension dialog
SolidworksApi macros
Would multiplying the value with minus one do the trick? It seems that button does the exact same thing.
I already tried that but the "Dimension.SystemValue" not affect any change,
for now i'm work around by convert it back to degree then rotate around axis then convert it back to RAD
I think the system value doesn't change because SolidWorks flips the sketch entity and removes the minus sign. I just recorded a macro while I set the dimension to 25mm, then reopen the dimension to flip the direction. This is in the macro:
myDimension.SystemValue = 0.025
myDimension.SystemValue = -0.025
If it still doesn't work, could you add some info on what you're trying to build?
it is working with the dimension of length but not rad or degree
i want to revert the angel dimension that rotate around the cooresponse axis
im also record the macro, its add minus to the systemvalue but when i re run macro again the value still the same
edit : anyway thanks for your time, i will use math to directly add or minus the degree by myself
I ran into this topic 9 years later and didn't find the answer I was looking for in my previous answers. But I did find it eventually: the IDisplayDimension.ExplementaryAngle method. This flips a dimension from 350 degrees to one of 10 degrees.