I think User Interface Element has a specific behavior regarding Meta Wizard Creator OnWizRealize function.
I put this code in the macro linked to a new Meta Wizard Creator User Interface Element.
Sub OnWizRealize(Manager As MegaWizardContext)
Dim myObject As MegaObject
myObject = Manager.Template
cDiagrammes = myObject.getCollection("Diagramme")
When creation an User Interface Element in user interface diagram, previous code always displays 0 !
But i think it has to display 1 (by finding the diagram)...
I've made something wrong ?
Thanks and regards,