Change the accuracy of the mass value in my cartridge

I'm in the process of modifying my cartridge and I'd like to write an Ilogic in which the mass accuracy is a function of a mass value.

Like what:

if mass <5kg P=3

otherwise P=0.

P is the number of digits after the decimal point.

Thank you for your help.

Hello

To see to use the instruction

MASSPROP

But a priori, you will have to use this code (to be adapted):

http://www.cadtutor.net/forum/showthread.php?11722-Contribute-a-tip-become-famous&p=71069&highlight=vlax-ename->vla-object#post71069

 

Hello 

First of all, it seems impossible to write LISP with Inventor, but you can write iLogic or vba code.

Then, when you talk about the precision p=3, do you mean 3 digits after the decimal point?

1 Like

I expressed myself badly:

  1. Inventor 2015, iLogic instead of Lisp
  2. P=3 is the number of digits after the decimal point

thanks to .PL and Aurelien Fives

I'll see with VBA