How to round a constraint to the nearest whole number using iLogic?

How to round a constraint to the nearest whole number using iLogic?

11133SFW4P
Explorer Explorer
790 Views
1 Reply
Message 1 of 2

How to round a constraint to the nearest whole number using iLogic?

11133SFW4P
Explorer
Explorer

Hi all, 

Today I was trying to use iLogic to make it so that the offset of a mate constraint could only be a whole value. 

So for example, If I manually entered the value 2.8, it would automatically round it up to 3.

What would be the best way to achieve this?

I'm fairly new with iLogic but I thought there would be a rounding rule but haven't been able to figure/find anything out.

Any help would be much appreciated 

 

Thanks in Advance 

Alex 

0 Likes
Accepted solutions (1)
791 Views
1 Reply
Reply (1)
Message 2 of 2

I_Forge_KC
Advisor
Advisor
Accepted solution

The math operators are based on the standard VB math ops.

Take a look here:

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2015...


K. Cornett
Generative Design Consultant / Trainer

0 Likes