I tihnk I have all of my settings correct to eliminate leading zeros and add trailing zeros. However, when I create an equate, the solution always has a leading zero. I am linking a custom property to this equation and I don't want a zero before the decimal.
Ex: My dimension (D1@Sketch1) is .500, My equation is "Length" = "D1@Sketch1"+.05, but the equation evaluates to 0.550, not .550.
Thanks for any help you can give me.
SolidworksParts And Features
I have no idea where all the # symbols came from. Please ignore them.
Equations return numbers that are formatted in standard VBA syntax - that is, with the leading zero. I believe your best bet is to create some construction geometry, dimension it, and link the value of the dimension to the result of your equation. The dimension will then be correctly formatted per your document settings, and you can link your property to the dimension instead of the equation.
Thanks, I guess that's good to know about equation syntax. It seemed like a fairly simple task, but it's turning out to be more difficult. I have my part dimensioned nominal, and I want two custom properties for MAX length and MIN length. I will try the construction geometry suggestion. That may be simpler anyway.
Thanks!
Josh,
just reading through your posts around the forum, and your SWX skills just blew me away...
Since I suppose you have the right answer, could you just take a paak at my latest posts?
https://forum.solidworks.com/message/255162#255162
and
https://forum.solidworks.com/message/9940#9940
Sorry, but I couldn't get in touch with you in a different way.
Thank you and regards
Riccardo