Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi I have some strange problem. When I Add a parameter with add by value as this:
oUserParams.AddByValue("FlatPatternWidth", SheetMetal.FlatExtentsWidth, Inventor.UnitsTypeEnum.kMillimeterLengthUnits)
it put the value 10 times the actual value. when I msgbox(SheetMetal.FlatExtentsWidth) it gives the correct value so the problem is Inventor.UnitsTypeEnum.kMillimeterLengthUnits. if I Change it to
Inventor.UnitsTypeEnum.kCentimeterLengthUnits I got correct measure but wrong unit in parameters.
Why do I need to make the SheetMetal.FlatExtentsWidth/10 for it to work?
Solved! Go to Solution.