iLogic Form problem with numerical data

iLogic Form problem with numerical data

Anonymous
Not applicable
551 Views
3 Replies
Message 1 of 4

iLogic Form problem with numerical data

Anonymous
Not applicable

When I enter numerical data into a form I created, it always changes the data type to text. When I search the data from Vault Basic it does not recognize and list any of the number data from the form. If I go into the iProperties/Custom tab and manually change the data type to number and enter the data, the Vault recognizes it with no problem. This defeats the purpose of having a form. When I looked into the form options, I could not find any setting that allows you to set a field for a specific data type like the iProperties/Custom tab does. Any ideas, suggestions?

Thank you.

0 Likes
Accepted solutions (1)
552 Views
3 Replies
Replies (3)
Message 2 of 4

adam.nagy
Autodesk Support
Autodesk Support

Hi,

 

Could you please provide the exact steps you take? The way I tried it seemed to work fine and the data type did not change:

http://www.screencast.com/t/Y0pk4HuG

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 4

Anonymous
Not applicable

The data is entered through an iLogic Form, but nowhere in the iProperty is there an option to change the data type. For example my "GPM CALCULATED" property.

 

iLogicForm.JPG

0 Likes
Message 4 of 4

MjDeck
Autodesk
Autodesk
Accepted solution

At the time you create the control in the form, the data type for the control is taken from the iProperty. After that, you can't change it.
 If the control is working right, it won't let you enter a non-numeric value. It will show an error indicator:
NumericiProperty.png

 

Do you have a iLogic rule in the part or assembly that calculates a value for this iProperty? From a rule, it is easy to change the iProperty from Number to Text. Statements like this will do it:
gpm = "2.5"

iProperties.Value("Custom", "GPM CALCULATED") = gpm

 

A good way to avoid this would be to explicitly convert the value to a number. Here's a sample:

gpm = "2.5"
iProperties.Value("Custom", "GPM CALCULATED") = Convert.ToDouble(gpm)

 

If this information doesn't help, please provide a simple part that shows the problem.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes