Cancel
Showing results for 
Search instead for 
Did you mean: 

According to the different state shows how different icons in the BMIDE configure

Experimenter
Experimenter

According to the different state shows how different icons in the BMIDE configure
TC Revision: TC10.1.4.1
 
client needs:
   Different state show different icons
Such as:
Release Status: Small black flag
Obsolete state: small red flag
 
Siemens official whether there is a standard solution

 

==============Gorgeous parting line==================

 

发放状态图标能否在BMIDE配置

TC修订版:TC10.1.4.1

 

客户需求:

  根据不同的状态显示不同的图标

如:

发布状态:黑色小旗子

废弃状态:红色小旗子

 

西门子官方是否有标准的解决方案

 

5 REPLIES

Re: 发放状态图标能否在BMIDE配置

Genius
Genius

English please

Re: 发放状态图标能否在BMIDE配置

Pioneer
Pioneer

This Forums can support Chinese(Simplified) very well.

Re: 发放状态图标能否在BMIDE配置

Experimenter
Experimenter
Already added Chinese and English control

Re: 发放状态图标能否在BMIDE配置

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
In Tc10.1.4, release status icons still need to be rolled out to the client by creating an "images" directory to hold the 16x16.png files (000000flag_sm.png, ff0000flag_sm.png) and a customer.properties file referencing the release status display name and the required image. Place both in the "plugins" directory.

\plugins\images\000000flag_sm.png
\plugins\images\ff0000flag_sm.png
\plugins\customer.properties

customer.properties:
# Example (USE DISPLAY NAME)
# release_status_list.Blue\ Flame.ICON=images/ff0000flag.png
# release_statuses.Blue\ Flame.ICON=images/ff0000flag.png
release_status_list.Release\ Status.ICON=images/000000flag_sm.png
release_statuses.Release\ Status.ICON=images/000000flag_sm.png
release_status_list.Obsolete\ state.ICON=images/ff0000flag_sm.png
release_statuses.Obsolete\ state.ICON=images/ff0000flag_sm.png

In Tc11.2.x you can take advantage of the ReleaseStatusMap (BMIDE) to eliminate the release_statuses but not the release_status_list yet. It's mixed, which results in images and ReleaseStatusMap in BMIDE and images w/customer.properties deploy to clients. Makes it really hard to them keep in sync.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: 发放状态图标能否在BMIDE配置

Experimenter
Experimenter

如何为不同的状态定义不同的图标? ?
1. 先通过 BMIDE, 定义属性渲染(菜单:BMIDE新建模型元素属性渲染器),渲
染的定义如下
<?xml version="1.0" encoding="UTF-8"?>
<icons Version="1.0">
<primaryIcon source="G2status1.png"/>
<overlayIcon source="object_name" mapName="ReleaseStatusMap" />
<propertyMap name="ReleaseStatusMap">
<item key="G2MyStatus" value="G2status1.png"/>
<item key="Approved" value="G2status2.png"/>
</propertyMap>
</icons>
注意:
a. primaryIcon 一定要定义
b. item key 是状态内部定义的名称,如 G2MyStatus, Approved.
c. value 是 Fnd0Icon 的名称,如 G2status2.png
2. 定义完属性渲染后,点击右侧附加,选择 ReleaseStatus.object_string
3. 部署完成后,业务对象下面的状态对象显示客制化的图标,但是业务对象右侧还是
显示 OOTB 的图标。我们需要在 tc_root\portal\plugins\configuration_10000.1.0 目录
下创建 customer.properties 文件,内容如下:
release_status_list.G2MyStatus.ICON=images/G2status1.png
release_status_list.\u5df2\u6279\u51c6.ICON=images/G2status2.png
注意:这里定义的状态名为显示名称,对于中文字符,需要用 native2ascii 进行转
码,如“已批准”状态。具体做法:新建一个 txt 文本,内容为“已批准”,然后
执行 native2ascii 命令转 Unicode
4. 保存 customer.properties 文件后,运行 genregxml.bat 文件进行注册,再清理缓存
后生效.