Inventor General Discussion

Inventor General Discussion

Reply
Distinguished Contributor
justinpcaris
Posts: 141
Registered: ‎01-31-2008
Message 1 of 4 (282 Views)
Accepted Solution

ceil functions in parameters

282 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*
JDMather
Posts: 26,651
Registered: ‎04-20-2006
Message 2 of 4 (275 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.

Please mark this response as "Accept as Solution" if it answers your question.
-----------------------------------------------------------------------------------------
Autodesk Inventor 2014 Certified Professional
Autodesk AutoCAD 2013 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*
cwhetten
Posts: 1,072
Registered: ‎09-03-2008
Message 3 of 4 (262 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

Please click "Accept as Solution" if this response answers your question.

Distinguished Contributor
justinpcaris
Posts: 141
Registered: ‎01-31-2008
Message 4 of 4 (229 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.