Book a Demo

Author Topic: How to set Attribute.Type from VB Script  (Read 4192 times)

Shounbourgh

  • EA Novice
  • *
  • Posts: 18
  • Karma: +1/-0
    • View Profile
How to set Attribute.Type from VB Script
« on: June 01, 2016, 06:19:23 pm »
Hi,

i want to set the Type-property of an attribute of an element to a self defined DataType. I tried to set the dataType.ElementGUID to the attr.Type, but it dont create the reference.
What I have to to set there?

Thx, Erik

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to set Attribute.Type from VB Script
« Reply #1 on: June 01, 2016, 06:34:54 pm »
You have to set the attribute.ClassifierID (and the fill in the type field as well)

Geert

Shounbourgh

  • EA Novice
  • *
  • Posts: 18
  • Karma: +1/-0
    • View Profile
Re: How to set Attribute.Type from VB Script
« Reply #2 on: June 01, 2016, 07:25:06 pm »
Hi Geert,

nice, it works :)