Community
If I set the value of a numerical parameter with this code:
SyntaxEditor Code Snippet
ThisDoc.Document.ComponentDefinition.Parameters.Item("test").Value=100
then the parameter actually gets the value 1000,00000000 mm. Of course it has no impact on my model, but the visual presentation of my input forms are cluttered by all these trailing zeros.
Any suggestion on how to trim the trailing zeros?
What do you mean by "input forms"? Do you mean Inventor dialogs or your custom dialogs?
If I make an iLogic form, and then expose the parameter on that form:
The first is when the value is entered through build-in Inventor dialogs. like fx.
The second is after changing the value through the API with this:
ThisDoc.Document.ComponentDefinition.Parameters.Item("test").Value=100