iLogic Round function errors

iLogic Round function errors

jonathan.victor
Advocate Advocate
211 Views
1 Reply
Message 1 of 2

iLogic Round function errors

jonathan.victor
Advocate
Advocate

Hi I having trouble to use the Round function in Inventor 2025. In Inventor 2022, the following code would set a double value up to 1 decimal digit for a custom property. I'm using this as example, but I have several codes presenting the same issue and my other colleagues from our company are having the same problem.

 

iProperties.Value("Custom", "MAXIMA_CARGA_FLEXAO") = Round((2 * (MAX_BS * W_rolamento) / DIST_A) / 1000, 1)

 

But after updating to V2025 iLogic is setting 12 decimal digits, even if if the code requests only 1 decimal. I've tested the same code for showing the value on a MsgBox and the value show up rounded to 1 decimal on the message box, but write the value with 12 digits on the custom property.

 

jonathanvictor_0-1715978859823.png

jonathanvictor_1-1715978891671.png

 

 

I also tried to round up to other decimal precisions but had the same results, how can I fix it? (Considering we have hundreds of codes using this function for over 10 years without this issue)

 

@MjDeck 

@johnsonshiue 

@WCrihfield 

0 Likes
212 Views
1 Reply
Reply (1)
Message 2 of 2

MjDeck
Autodesk
Autodesk

Hi Jonathan, this looks like internal issue number INVGEN-75215. We have a fix for it, and the 2025.1 release should have that fix. 
A possible workaround would be to use a Text property instead of Number. But that might affect how you use the property downstream.


Mike Deck
Software Developer
Autodesk, Inc.