- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day Everyone!
I have a sheet metal template in inventor where in I have linked the bounding box of the flat pattern to my custom iproperties. I also have linked this iproperty with the parts list template for the width and height. Now my issue is I have a mirrored part of the same thing and the properties for the flat pattern differs on the iproperty and its giving me BOM errors. The original part was measured with a height of 58.047431006501 and the mirrored part as measured with a height of 58.0474310065012. It was a difference of 0.xxx-xxxxxxxx2! -_-
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It might be giving an error because the value is to long. Try a rounding function
Dim extents_length As String = Round(SheetMetal.FlatExtentsLength, 3)
'or
roundedClosest = Round(Round(SheetMetal.FlatExtentsLength,4) / 0.0625) * 0.0625 & " in" MessageBox.Show(roundedClosest)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Replace the extent string values in your other code
Dim extents_length As String = SheetMetal.FlatExtentsLength
Dim extents_width As String = SheetMetal.FlatExtentsLength
with
Dim extents_length As String = Round(SheetMetal.FlatExtentsLength, 3)
Dim extents_width As String = Round(SheetMetal.FlatExtentsWidth, 3)