iLogic fractions

iLogic fractions

Jam_Jumpin
Advocate Advocate
440 Views
2 Replies
Message 1 of 3

iLogic fractions

Jam_Jumpin
Advocate
Advocate

I have a dialogue box that asks the user for a size. It only accepts decimals, is there a way to get it to accept fractions?

 

FT=th
FT = InputBox("Enter face thickness", "Face thickness", "3/16")
th=FT

 

iLogic, Inventor 2014

0 Likes
441 Views
2 Replies
Replies (2)
Message 2 of 3

adam.nagy
Autodesk Support
Autodesk Support

Hi,

 

I got this feedback:

>>>>>

You can use one of the parameter-related functions from the Inventor API to do it:

Dim FT As Double = 3/16
Dim FTstring As String = InputBox("Enter face thickness""Face thickness""3/16")
If (Not String.IsNullOrWhiteSpace(FTstring)) Then
FT = ThisApplication.UnitsOfMeasure.GetValueFromExpression(FTStringUnitsTypeEnum.kUnitlessUnits)
End If
MessageBox.Show("Face thickness = " & Round(FT,6)"Test")

<<<<<

 

Cheers,



Adam Nagy
Autodesk Platform Services
Message 3 of 3

Jam_Jumpin
Advocate
Advocate

Thanks a lot! I will try this.

I'm so glad iLogic is so easy to use!

0 Likes