Inventor General Discussion

## Inventor General Discussion

Distinguished Contributor
Posts: 140
Registered: ‎01-31-2008
Message 1 of 4 (267 Views)

# ceil functions in parameters

267 Views, 3 Replies
01-14-2014 08:44 AM

I am trying to use the ceil functions in parameters and it wont allow me to reference a dimension.  I understand that the equation that I am using ceil in has to be unitless but do the units im refrencing also have to be unitless.  I want to divide a dimension my 21 then round up to the nearest whold number.  I am using inventor 2014.

*Expert Elite*
Posts: 26,514
Registered: ‎04-20-2006
Message 2 of 4 (260 Views)

# Re: ceil functions in parameters

01-14-2014 08:57 AM in reply to: justinpcaris

Post simple example here.

The solution will involve getting correct units and unitless in the equation.

-----------------------------------------------------------------------------------------
Autodesk Inventor 2014 Certified Professional
Certified SolidWorks Professional
Inventor Professional 2015 64-bit
http://www.autodesk.com/edcommunity
http://home.pct.edu/~jmather/content/DSG322/inventor_surface_tutorials.htm
*Expert Elite*
Posts: 1,064
Registered: ‎09-03-2008
Message 3 of 4 (247 Views)

# Re: ceil functions in parameters

01-14-2014 10:08 AM in reply to: justinpcaris

Yes, the ceil( ) function expects a unitless value and returns a unitless value.  For example, if you have a parameter named Width whose units are mm, your ceiling function would have to look like this:

ceil( Width / 1mm ) * 1mm

See these other topics for additional help:

http://forums.autodesk.com/t5/Inventor-General/Parameter-Not-Rounding-Correctly/m-p/4497453/highligh...

http://forums.autodesk.com/t5/Inventor-General/Parameter-Rounding-to-Multiples-similar-to-MROUND-in-...

Cameron Whetten
Inventor 2014

Distinguished Contributor
Posts: 140
Registered: ‎01-31-2008
Message 4 of 4 (214 Views)

# Re: ceil functions in parameters

01-16-2014 10:50 AM in reply to: justinpcaris

Thats it thanks for the help.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.