Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mass Accuracy in iLogic

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
307 Views, 3 Replies

Mass Accuracy in iLogic

Hello,

 I recently asked for help to set the mass calculation accuracy to 'VeryHigh' when doing calculations in iLogic.

 

I asked for the iLogic equivalent to the VBA term:

 

  ' Set the accuracy to VeryHigh.
      oMassProps.Accuracy = k_VeryHigh

 

and was provided with: 

 

     oMassProps.Accuracy = 24580 'k_VeryHigh=24580      

 

However, I believe that the value 24580 is actually equivalent to k_Medium.

 

Can somebody please confirm the iLogic equivalent value of k_VeryHigh.

 

Many Thanks,

 

 Nick

 

p.s.

 Original post:

http://forums.autodesk.com/t5/Autodesk-Inventor/iLogic-iProperties-Mass-Requested-Accuracy/td-p/3945...

 

 

3 REPLIES 3
Message 2 of 4
mrattray
in reply to: Anonymous

From the VBA object browser:
k_VeryHigh = 24580
k_High = 24579
k_Medium = 24578
k_Low = 24577
k_None = 24581

To be more sure, you could use:

Imports Inventor.MassPropertiesAccuracyEnum
oMassProps.Accuracy = k_VeryHigh

iLogic uses the exact same methods as VBA 99% of the time, sometimes with a catch. In this case all you needed was the imports statement. VBA will apply the import automatically, where iLogic needs it explicitly stated.
Mike (not Matt) Rattray

Message 3 of 4
Anonymous
in reply to: mrattray

Hi Mike,

 Many thanks for the swift response.

I have my suspicions that iLogic does not respond to the numerical input, or there is a slight programming error, as through my (and others) testing, using 24580 only achieves Medium accuracy.

Many thanks for the alternative method, it seems a more robust way of achieving what I am trying to do.

Having tested it, my model is now achieving the accuracy I require, and is accomplishing it in only 75 iterations, whereas yesterday it was taking over 350.

Having struggled with this project for a month now, two weeks of which solely on trying to resolve the issues caused by the mass inaccuracy, I can safely say you are my saviour.  Have some kudos.

Many thanks again,

  Nick

Message 4 of 4
mrattray
in reply to: Anonymous

Honestly, I didn't expect it to work any differently for you. I'm glad it did though.
Mike (not Matt) Rattray

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

Post to forums  

Autodesk Design & Make Report