All,

I have a opportunity here, that I am struggling to solve.

I have a part with a sketch that has a dimensioned length attached to a construction line (that is driven). It is rounding to the nearest 32". I would like to somehow break that into to properties within the part if possible.

If that length of that line was lets 92.15625 long then the Major Length would be "092" (for 92 inches) and the Minor Length would be "05" (for 5/32).

Is there any way to do that without configurations? I can absolutely do this if I create configurations, but I was hoping to dodge making a configuration from 12.00 to 120.000 in 32 increments (3400+ configurations).

I can explain what it is needed for or why I am doing it if needed.

Thanks,

Pencil

I GOT IT!

I tried a few length combo's, you may want to try some more to stress test it, but this concept should do the trick. You also may want to add an additional variable for "int(D1@Sketch1)" as it's used several places. I had to add 3 of those "int"s after 99.9 would turn into 100 for AAA.

I also added a Denominator variable, so the BB sizing could be done by 1/4, 1/8, 1/32, 1/10, etc. for different parts.

For those who don't want to be bothered downloading the file &/or do not have 2017, here is a picture of the variables & Properties (99 29/32" shown):

Phew!

This was a good learning exercise for myself as well.

Edit:

Here's what I did:

Instead of adding zero's in front of the number, I broke the number down into 1 digit parts. There is a hidden round function not listed in SW but it can only round to a specific decimal, so I could turn 47.65 into 47.7, but couldn't turn it into 50. To work around that, I divided the number by it's know max digits, so 47.65 would turn into .4765 before rounding. thus we can round to .5 & then multiply by 10 to get the single digit of 5. But in that example, we want the answer to be 4, so the int command is used. Lastly, I would subtract the leading digit from the total number to get the next digit, i.e. 47.65-40 = 7.65 & then repeat the above processing.