- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i'm using Iventor 2023,
Need an Ilogic to convert a user parameter, in to mm and vis versa.
It's almost working but something wrong some where!
the LG parameter is the input lenght and LGM is the result.
My need is when i enter a lenght 5270 mm (LG) , i need to see result like 207.48 in (LGM)
or in i enter a lenght 207.48 in (LG), i need to see result like 5270 mm (LGM)
here's the code i trying to make it work
Dim oParams As Parameters oParams = ThisDoc.Document.ComponentDefinition.Parameters Dim oParamName As Parameter oParamName = oParams.Item("LGM") If LG = kInchLengthUnits Then oParamName.Units = "mm" ElseIf LG = kMillimeterLengthUnits Then oParamName.Units = "in" End If ThisDoc.Document.Update
Thank you
Solved! Go to Solution.