Phantom math - values changing without reason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm posting a simplified version of my problem. Basically, I'm creating a multi-value list for a parameter. The multi-value parameter was pre-existing in the IAM (its only values are 1, 2, and 3.) When the program is run, it sets the list (again this is a simplified version), and allows the user to choose a value. However: when the program is finished, the value of that parameter (in the Parameters box) is 1/6 of what was selected. If I choose one of the three legitimate values from the Parameters box, and then run the program, it will automatically multiply it by 6. In my real program, all comparisons and calculations work properly, other than this issue. I've pasted this simple logic to a new file, and get the same results.
This is it:
MessageBox.Show("RPM: " & Rotation, "First Line") MultiValue.SetList("Rotation", 1, 2, 3) MessageBox.Show("RPM: " & Rotation, "List populated") 'User enters RPM Rotation = InputListBox("Select max rotation speed", MultiValue.List("Rotation"), Rotation, Title := "Max Speed", ListName := "") MessageBox.Show("RPM: " & Rotation, "Choice made") InventorVb.DocumentUpdate()
Here's a screenshot of me selecting "2" from the list", it's acknowledging the "2", then the value in the Parameters box being 1/3. What am I missing????
This is Inventor Pro 2021.
Vault Professional 2021