Cancel
Showing results for 
Search instead for 
Did you mean: 

BMIDE - Item icon collapsed / expanded

Creator
Creator

Hey,

does anyone know how to create a property renderer to define two icons for an item.

One icon is for the collapsed state in the RAC and one is for the expanded state. (Clicking plus and minus left to the item in the RAC)

 

With the file "customer.properties" file, I can do this, with the following two lines:

MyItem.ICON=images/MyItem.png
MyItem.Open.ICON=images/MyItem_open.png

 

But, I wanna create a property renderer for the item to do some more icon overlays, depending on new properties.

 

Is there a runtime property to check or somethink link this?

 

 

Thanks in advance

3 REPLIES

Re: BMIDE - Item icon collapsed / expanded

Legend
Legend

Hello ewikon, maybe this help you:


if you have Teamcenter documentation then see here:
OverlayIcons_03

if not, here's the link to the Siemens website
https://docs.plm.automation.siemens.com/tdoc/tc/11.4/help#uid:xid1256815:index_plm00071:id166856:xid...

Here is another link to a document from the community, in Exercise 2 an example with properties:
https://community.plm.automation.siemens.com/siemensplm/attachments/siemensplm/Teamcenter-Administra...

Re: BMIDE - Item icon collapsed / expanded

Genius
Genius

I dont know if this helps you or not, but I have an overlay when the status is Obsolete.  But, I have compounded the status to the revision - so it is doing it based on the property - which is what I think you want?!

 

from my notes:

 

  1. Create a propertyrenderer with a definition of:

<?xml version="1.0" encoding="UTF-8"?>

<icons Version="1.0">

    <propertyMap name="ObsStatusMap">

        <item key="Obsolete" value="IE4_Obsolete_Overlay.png"/>

    </propertyMap>

    <primaryIcon source="IE4_ItemRevision.png">

    <overlayIcon source="ie4_Status" mapName="ObsStatusMap"/>   

</primaryIcon>

</icons>

 

Attach renderer to object_string of IE4_ ItemRevision

does this help?

 

Richard

www.prospectplm.co.uk

Richard Bennett
PLM Consultant
Prospect PLM Ltd

Re: BMIDE - Item icon collapsed / expanded

Creator
Creator

Thanks for the answers, but the basic mechanic of the rendering properties is not the problem.

I want to show another icon, when you click on the arrow left to the items icon.

Without a property renderer this is no problem via customer.properties file, but I wanna use the property renderer to add later some additional overlays.

 

 

RAC - Screenshots:

 

item_collapsed.pngcollapsed

 

item_expanded.pngexpanded

 

Thanks