Anonymous
in reply to: jazpearson

Thank you Jaz!

 

 A few more questions if you don't mind...

 

 

ItemDimensionBase baseDim = itm.Dimensions.FirstOrDefault(x => x.Name == "Length");
ItemDimensionBase baseDim2 = itm.Dimensions.FirstOrDefault(x => x.Name == "Width");

foreach (Item value in lstStraight)
   {
     MessageBox.Show("Length: " + baseDim.Value.ToString());
     MessageBox.Show("Width: " + baseDim2.Value.ToString());
   }

I'm trying to figure out how to reference everything here and display it to make sure I am referencing everything right. 

 

I noticed that I can get the "Length" to work and display. However, I get errors when I try to add "Width" and "Depth". I've screenshotted the error. I'm clearly referencing something wrong. But I am not entirely sure what. 

 

I basically want to display a lot of information about each item so I know that I'm referencing things right. And I can proceed with my plug-ins