I use iLogic to create custom iProperty value. Problem is that it shows comma after the value. Is this a bug or is there something wrong with my settings?
This seems to be quite similar problem.
SyntaxEditor Code Snippet
iProperties.Value("Custom", "Sheet_Length") = Round(SheetMetal.FlatExtentsLength) iProperties.Value("Custom", "Sheet_Width") = Round(SheetMetal.FlatExtentsWidth)
Solved! Go to Solution.
Solved by johnsonshiue. Go to Solution.
What version of Inventor do you have?
Have you installed all updates for it?
Your code works just fine for me in 2018
Inventor Professional 2018.2.
Windows 10 64-bit
I tried the code on another computer which has 2017 Inventor and Windows language is english.
It shows decimal there:
The problem (or reason) is your Windows Location (location/region locale) settings are different..
One is set to use a comma as the digit symbol the other using the period..
Go here..
Control panel... Clock, Language, Region...Change date, time, or number formats..additional settings..
Ok, but how do I get an integer?
Hi Mikko,
There is a way to force the iProperties to be integer. Here is what you need to do.
1) Instead of writing out flat pattern extents to custom iProperties directly, create two User Parameters, i.e. FLAT_LENGTH and FLAT_WIDTH.
2) Check "Export" status on the far right column in the Parameters dialog.
3) Click on the expression/equation field of the parameter -> click on the small arrow button -> Custom Property Format -> set precision to integer. Do it for both parameters.
4) Go to iLogic browser and edit the rule. Change the rule so that the two parameters equal to the extents.
Many thanks!
Can't find what you're looking for? Ask the community or share your knowledge.