Cancel
Showing results for 
Search instead for 
Did you mean: 

Add Custom Image to Block UI

Experimenter
Experimenter

Hi All,

 

In NX11, I am creating a block in Block UI Styler. I would like to add my own image to the block for explanatory purposes. Is there a way to do this in the dialog editor? I've tried adding 'Label/Bitmap' from the Block Catalog, but I have no way of choosing an image from a local file.

 

Any help or suggestions would be much appreciated.

 

Thanks,
Chris

6 REPLIES

Re: Add Custom Image to Block UI

Siemens Phenom Siemens Phenom
Siemens Phenom

Try the DrawingArea block.

Re: Add Custom Image to Block UI

Experimenter
Experimenter

Great. This is exactly what I was looking for. Thanks.

Re: Add Custom Image to Block UI

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Label/Image block also works, all you need to do is give full path of bitmap.

 

Below is image with both the blocks, At top it is Label/Bitmap block, below that it is drawing area block. Note that Drawing area block show additional black border.

 

Depending on user sceanrios you may want to choose one over other.

 

Capture.PNG

SE-Advanced
Siemens Industry Software

Re: Add Custom Image to Block UI

Experimenter
Experimenter

Thanks Shringanesh,

 

The label/image block looks much better, though I've been struggling to find the exact directory NX references for all of the bitmaps. Any thoughts or suggestions where the image directory would be located or called?

 

Thanks,
Chris

Highlighted

Re: Add Custom Image to Block UI

Experimenter
Experimenter

Actually, in looking, I found NX was referencing the following archived .bma file.

 

...nx11\UGII\bitmaps\high_quality.lc.bma

 

I can't seem to figure out how to access this file to add my own images.

Re: Add Custom Image to Block UI

Esteemed Contributor
Esteemed Contributor

If you do not already use the ugii_env.dat variable UGII_BITMAP_PATH, then you should start using it.

This way you don't need to specify the full path, you just have to place your BMP files into the folder pointed to by this variable and NX will happily find them Smiley Wink

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community