Cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the MU icon permanent

Creator
Creator

hi at all

how the subject says:
i want to change the icon of the MU's in addiction to an attribute (6 several) permanent

i already tried it with

@.BildNr := ....;

but this seems to be local and only for this object.

 

 

9 REPLIES

Re: How to change the MU icon permanent

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You access only one MU with @; so you change the icon only for this object. If you want to change the icon for all MUs of a class, then you need to adress the class and change the icon there. Plant Simulation changes by default the icons depend on the state of the MUs. If you don't want this behavior, you need to deactivate the use of the state icons in the icon editor.

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: How to change the MU icon permanent

Creator
Creator

it's the same MU but my MU's have an attribute (Prod) which could be (6, 007-003, 007-000,...)
and the method should change the symbol of the MU's in addiction to this attribute
So i created 6 different icons (0 .. 5) for one MU

 

 

is
do
 if @.Prod = "6" or @.Prod = "007-003" then
  @.BildNr := 3;
 elseif @.Prod = "7" or @.Prod = "007-000" then
  @.BildNr := 0;
 elseif @.Prod = "007-001" then
  @.BildNr := 4;
 elseif @.Prod = "007-002" then
  @.BildNr := 5;
 elseif @.Prod = "007-006" then
  @.BildNr := 2;
 end;
end;

Re: How to change the MU icon permanent

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

it should work, if you deactivane the vector grahics and the state icons

 

What is the problem?

 

 

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: How to change the MU icon permanent

Creator
Creator

What are the state icons?

The problem is that the icons are changing back to the starting icon when they are moving to the next object.

Re: How to change the MU icon permanent

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Plant Simulation changes between icons depend of the state of the MU. If the MU is waiting, Plant Simulation changes to the icon with the name "waiting", default is "operational".

 

So you can solve your problem in two ways: copy your icon in the icons waiting and operational or deactivate this behavior, icon editor in V.11

 

state11.png

V12..

state_21_1.png

 

 

 

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: How to change the MU icon permanent

Creator
Creator

i couldn't solve the problem so far

i posted my version below
the method is called "Symbol" and it will be activated at the sensor on the FS_1

could you maybe have a look at it?

thank you very much!

Re: How to change the MU icon permanent

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Your method symbol is not triggered by the sensorcontrol (instead steuerung_fs1).

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: How to change the MU icon permanent

Creator
Creator

Is it not?

because it is like in the image below

what I need to change?

Re: How to change the MU icon permanent

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

your model version_1 has only 2 sensors...

You need to deactivate the state icons in the icon editor for the bramme in the class library.

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net