Hi,
I'm trying to create element in PowerDesigner with VB using
Visual Studio. I get data from a DB and I want to create all
dataStructure in PowerDesigner automatically.

The elements in ComplexType have attributes so I have to
extend a simpleType created. When I try to create object
"Derivation" on an "Element" the application give me an
error because is not possible.
The only thing is possible to do is to assign "Extension" to
Element.derivationType but I can't get a reference to this
object to set it the type.
How can I do?
How can I create a restriction/Extension on an element?