Book a Demo

Author Topic: Changeing a Stereo Types  (Read 2394 times)

AndrewW

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Changeing a Stereo Types
« on: July 12, 2012, 12:16:40 am »
            

The Jscript below chnages the stereo type ok,

var currentElement as EA.Element;
currentElement = elementEnumerator.item();

currentElement.Stereotype = "New StereoType";
currentElement.Update();
currentElement.Elements.Refresh();

However whilst in the GUI the stereo type has changed the shaoe scripts associated with the new stero type  have not been run and the element still has the appearance of the old stero type.

Even a docuement reload does not have any effect.

When running vis the GUI the shapescripts are also run

Am I missing a line


Andrew

AndrewW

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Changeing a Stereo Types
« Reply #1 on: July 12, 2012, 12:59:57 am »
Fixed
Its another bug in EA !!!!!!!

if there is no shapescript assigned to the new stereotype then the shape is no updated


argh!!!!!!!!!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Changeing a Stereo Types
« Reply #2 on: July 12, 2012, 04:27:38 am »
You're getting there :-/

q.