Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
SOLVED
Reply
Message 1 of 2
11133SFW4P
676 Views, 1 Reply

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

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 

1 REPLY 1
Message 2 of 2
I_Forge_KC
in reply to: 11133SFW4P

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report