Book a Demo

Author Topic: Supress settig stereotype XSDComplexType  (Read 6898 times)

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Supress settig stereotype XSDComplexType
« on: March 10, 2016, 07:29:04 pm »
Hi,

import XSD (Code engineering / import XML Schema) set stereotype of elements "XSDComplexType". Is it possible to supress it ? Create Elements no setting stereotype ?

Thanks,

Michel

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Supress settig stereotype XSDComplexType
« Reply #1 on: March 10, 2016, 07:38:10 pm »
Hi Michel,

I don't think you can suppress it, but it should be easy enough to remove them afterwards using the view package as list, or with a little script.

Geert

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Supress settig stereotype XSDComplexType
« Reply #2 on: March 10, 2016, 07:43:00 pm »
It is really a simple task. But it cost a little time for hundreds of Elements and for thousend of attributes ...

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Supress settig stereotype XSDComplexType
« Reply #3 on: March 10, 2016, 07:58:25 pm »
If it's too much to do manually then I would use a little script to do it for you.

Geert

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Supress settig stereotype XSDComplexType
« Reply #4 on: March 10, 2016, 10:20:39 pm »
Is there a similar script ?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Supress settig stereotype XSDComplexType
« Reply #5 on: March 10, 2016, 10:37:04 pm »
Have a look at this one:

https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Projects/Project%20A/A%20Scripts/Post%20processing%20XSD%20transformation.vbs

It does a lot more then simply change stereotypes, but is should be sufficient to serve as inspiration.

Geert

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Supress settig stereotype XSDComplexType
« Reply #6 on: March 10, 2016, 11:44:45 pm »
Geert: thanks a lot !