Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drafting Dimension Rounding

Status
Not open for further replies.

Andy512

Electrical
Feb 29, 2008
25
Is there a way to get all displayed dimension values to round up in V20?

For example: 6.1 to round up to 7.

The ROUND-UP option in the Units Tab of the dimension style editor only rounds values 5 and over. Less than 5 and it rounds down. (settle down, I realize this is the standard method of rounding. Just need all numbers rounded up)
 
Replies continue below

Recommended for you

Hi,

I think you're screwed: I can't think of any way to do this
other than by programming a small macro or addin

dy
 
Or change them manually - but that's dangerous.

bc.
2.4GHz Core2 Quad, 4GB RAM,
Quadro FX4600.
 
There is away but it might be a bit long-winded if you have loads of dims.
Every dim you put on becomes a variable.
Open the variable table and locate one of you dims eg. V123
Now create a new variable called something like RND_V123 and set the formula to FIX(V123)+1
THIS WILL TAKE THE INETEGER PART OF THE DIMENSION AND ADD ONE TO IT.
Now turn off the display of the dimension text, and on the prefix/suffix set the Subfix to %{RND_V123}
Just in case you can't read these characters thats
"Percent", "LH Sqiggly Bracket" "RND_V123" "RH Squiggly Bracket"
You would need to do this for every dimension, each with it's own matching variable.

bc.
2.4GHz Core2 Quad, 4GB RAM,
Quadro FX4600.
 
Unfortunately, this method adds 1 to all values including 6.0 which becomes 7.

The Round-Up option should probably be relabeled as ROUND because that's what it does. Almost seems like a bug to me.

Will start looking at using Excel for display of dimensions because =ROUNDUP(#.#) does what I need it to do there.
 
Hi,

this should do (assuming a max. of 2 decimals):

var1 3.12
var2 3.00
fix(var1+0.99) --> 4.00
fix(var2+0.99) --> 3.00

dy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor