BAQ zone help (image view)

So I’m learning how to do the baq zones. I’m going through the ICE customization guide and it says to make a calculated field with like this (double quotes)

As written in the help
“C:\DL\zone[LIKE:Part.Partnum].bmp”

I modified mine to this
“N:\Eng[Like:Part.Partnum].tif”

I tried just the way they typed it, modified for my file structure, but of course, it doesn’t work with the double quotes, and the token doesn’t seem to work either. It obviously fails the syntax test, and won’t return anything with the BAQ itself. Does anyone have a better guide to make this work? or can see what I am doing wrong?

I can get the baq zone to work fine with just a grid of information, (I set up a part where used that will be helpful), but I was interested in trying to get the images to work, as this might be helpful.

Brandon,
Your file path string should be single quotes for sure. Also I’ve always had better luck with shared folders or unc file paths for that. See screen shots below.

hopefully this gets you further along if you haven’t already solved it.

I’ll give that a shot. The customization guide doesn’t have the table criteria like you’ve shown here, although it automatically filters by the first column, so I’m not sure if I need it, but I’ll throw it in there and see if it makes a difference.

If all else fails, maybe the \ is being treated like an escape char - you could try doubling them up c:\dir\file.jpg

In C#, if you preface a string with the ‘@’ symbol, then it won’t process escape characters. Might night be helpful here but it has been nifty in other places.

Mark W.

So this is what I get when when I try to make it work. How do I get this to display an image? I have to missing a step somewhere, but I don’t see anything in the customization guide.

@Chris_Conn I tried double \'s but that didn’t make a difference.

I didn’t know BAQzones could return an image, but then I’ve never tried.

My thoughts are that your baq would have to return an actual image, not just a path but I’ve never looked into it (yet)

The user guide has an example to return an image. That’s what I’m trying to follow, but it’s not working.

From the user guide online. (I’m working from a printed out one because the online one doesn’t have an example to make one, only to show one)

You did this part already?
image

Yup. that’s how the grid shows up in my fail that I showed previously. I can get it to show a grid of information, which I will use in a couple of spots, but I’m would like to get the images to work as well.

What’s your baq look like?

About as simple as it gets

And finally, a snip of the extended properties?

image

A couple possibilities

  1. The quotes, try changing them to “doubles” or remove altogether.
  2. E10 doesn’t know how to display a TIFF image (try a jpg)
  3. The field actual HAS to be PartImage, resulting in Calculated_PartImage
  4. They failed to show a step :frowning:

it’s the .tif that it doesn’t like. I changed the file type to png and re-saved a sample print from .tif to png. Now it works. Not that great though, you can’t zoom out, and if you click on the image is throws an exception.

Here’s the error if anyone is interested.

Sweet, I’d suggest making a folder of thumbnails

Probably not worth the work for this example. We have a lot of ways to look up a print, from right click open with print, some VB scripts in windows that you can highlight and control+L to open a print, to solidworks. But it’s nice to know how it works in case I run across something in the future that I do think it’s helpful for.

1 Like