Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
AnthonyB7
321 Views, 4 Replies

Mirrored Sheet Metal Parts

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! -_-

dalton98
in reply to: AnthonyB7

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)
AnthonyB7
in reply to: dalton98

Thank you for the reply. Where do I add this code Dalton?
dalton98
in reply to: AnthonyB7

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)

AnthonyB7
in reply to: dalton98

Thank you Dalton, This works way better now. Thank you again.