Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey everyone,
I'm using iLogic right now to enter the overall dimensions of a formed part into my iProperties. That works great. Now I would like to also get a code that changes the manufacturing process, depending on a few things:
If it's just a flat plate, then the process should say "laser cut". If it has any forming feature on it, it should say "laser cut & formed". My thinking was that if any of X, Y or Z parameters are larger than "Thickness", then I know it's a formed part (except in the rare case where the width of the part is less than "Thickness" but that basically won't ever happen). Can someone give me a hint of why the 2nd part of my code doesn't work? Thanks!
'Get Component bounding box measurements Model_X=Round(Measure.ExtentsLength, 0) 'X-axis BB length Model_Y=Round(Measure.ExtentsWidth, 0) 'Y-axis BB length Model_Z=Round(Measure.ExtentsHeight, 0) 'Z-axis BB length Dim oValue As String oValue = (Model_X & "x" & Model_Y & "x" & Model_Z) iProperties.Value("Summary", "Title") = oValue 'try to see if it's formed or flat If Model_X Or Model_Y Or Model_Z > Thickness Then iProperties.Value("Summary", "Manager") = "Laser Cut & Formed" Else If Model_X Or Model_Y Or Model_Z <= Thickness Then iProperties.Value("Summary", "Manager") = "Laser Cut" End If
Solved! Go to Solution.