![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: Dynamic fill color using Depictions to control color Topic Summary: Can't repeat controlling color fill of symbol w/ depictns Created On: 5-Jan-2007 23:03 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hi I used this in the USRPROPS.TXT file. Open up an entity symbol in an ER diagram and choose the 'Symbol' tab. Select the item from the list. OK the edit. The diagram symbol takes the new colour. Is this what you wanted? Thanks Ian | |
![]() |
|
We have succussrully used this type of entry to control the color of a symbol on a diagram, but cannot repeat it. I think we are missing a step related to the autoexec.sty. Any thoughts? I would like the color of an entity to be based on the value in the user property "Conceptual Area".
LIST "Conceptual Area" { VALUE "" VALUE "(Who) Party" DEPICTIONS { FILL COLOR {255,255,128}} VALUE "(How) Event" DEPICTIONS { FILL COLOR {128,255,255}} VALUE "(What) Products/Services" DEPICTIONS { FILL COLOR {223,193,255}} VALUE "(Where) Location" DEPICTIONS { FILL COLOR {255,255,128}} VALUE "(When) Time" DEPICTIONS { FILL COLOR {128,255,255}} VALUE "Other" DEPICTIONS { FILL COLOR {223,193,255}} } |
|
![]() |
|
![]() |
|
Hi
I used this in the USRPROPS.TXT file. Open up an entity symbol in an ER diagram and choose the 'Symbol' tab. Select the item from the list. OK the edit. The diagram symbol takes the new colour. Is this what you wanted? Thanks Ian ------------------------- Senior Software Developer Telelogic UK Ltd. Edited: 8-Jan-2007 at 10:16 by SA Team |
|
![]() |
|
![]() |
|
Thanks very much Ian! I was not aware that I needed to put the property on the symbol. I'm pretty new at this. Thanks again. It works. (For existing entites I also have to go "reset" the symbol colors - one at a time, but for new entities it is just fine!)
|
|
![]() |
|
![]() |
|
I have tried to implement this feature, but haven't succeded. The list values do show up on the Symbol tab, I can select on, but nothing happens. What do I miss?
|
|
![]() |
|
![]() |
|
Klaus,
Just FYI, we use the LIST entry below in conjunction with the SYMBOL enhancement below (notice that it is INVISIBLE), and also with the enhancement to the DEFINITION "Entity" shown below. This allows us to set the color for the entity from within the entity definition and have it apply to any diagram it appears on. If you have been playing with the fill colors using the fill colors from the menu, it is a little tricky to get it back. Be sure the fill is set to "automatic" for the symbol you are experimenting with. If you still have trouble, set the fill color to automatic and close SA. If it asks you whether to save the autoexec, say yes, and try again.
LIST "Conceptual Area"
{
VALUE ""
VALUE "(Who) Party" DEPICTIONS { FILL COLOR {204,255,204}}
VALUE "(How) Event" DEPICTIONS { FILL COLOR {255,204,0}}
VALUE "(What) Offerings" DEPICTIONS { FILL COLOR {204,255,255}}
VALUE "(Where) Location" DEPICTIONS { FILL COLOR {255,204,153}}
VALUE "(When) Time" DEPICTIONS { FILL COLOR {255,153,204}}
VALUE "Other" DEPICTIONS { FILL COLOR {192,192,192}}
}
SYMBOL "Entity" IN "Entity Relation"
{
PROPERTY "Conceptual Area" {INVISIBLE EDIT TEXT LISTONLY LIST "Conceptual Area" LENGTH 50 }
}
DEFINITION "Entity"
{
CHAPTER "Responsible Parties"
LAYOUT { TAB ALIGN OVER }
PROPERTY "Conceptual Area" { EDIT Text LISTONLYCOMBO LIST "Conceptual Area" }
|
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.