Book a Demo

Author Topic: Two questions regarding shape scripts  (Read 2756 times)

Niklas M

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Two questions regarding shape scripts
« on: October 13, 2012, 12:00:20 am »
Hi!

I have two questions regarding shape scripts.
 
1.
I would like to have another default background colour on an element I’ve done a shape script for but still give the users the opportunity to change the colour.

One solution is to use a Project Template Package but that doesn’t help when I drag an element to a diagram from the Project Browser.

I would like to use something like the method GetUserFillColor() to see if there is a UserFillColor set but it can only be used as an argument to the method setfillcolor().

2.
Detect if there is any link to a file (local or webadress) set in an element?
Haslinkeddocument doesn’t do it but I can´t find out if I can use propertytype or something like that.
      
Thanks,
Niklas

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Two questions regarding shape scripts
« Reply #1 on: October 18, 2012, 08:46:52 am »
1. Don't do it with shape scripts. Set the colour on the stereotype itself (http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/standard_uml_models/set_default_appearance.html)

2. Don't think there's anything. (Like there's not anything for tests, resource allocations etc.)