Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Helmut Ortmann on June 21, 2012, 10:11:13 pm

Title: Can't use Repository.Execute(..) with VS 2012
Post by: Helmut Ortmann on June 21, 2012, 10:11:13 pm
Hello,

I wanted to use the undocumented function Repository.Execute(..). I can't see it with Visual Studio. The other functions are available. In the Object Catalog it's marked gray as opposed to black for the other methods.

Is there a special trick to use this function?

Kind regards,

Helmut
Title: Re: Can't use Repository.Execute(..) with VS 2012
Post by: Geert Bellekens on June 21, 2012, 10:30:33 pm
You can't see it, but you can still use it.
Just type it out in full and it should work.

Somehow this is a kind of "gray area" undocumented operation.

Geert
Title: Re: Can't use Repository.Execute(..) with VS 2012
Post by: Helmut Ortmann on June 21, 2012, 10:40:11 pm
Hello Geert,

thanks a lot. I just found the solution. I think a hidden method.

It works!

Kind regards,

Helmut
Title: Re: Can't use Repository.Execute(..) with VS 2012
Post by: Ian Mitchell on June 22, 2012, 04:52:05 pm
What does this 'secret' method do? I can't seem to see it on VS2012 Object browser?
Title: Re: Can't use Repository.Execute(..) with VS 2012
Post by: qwerty on June 22, 2012, 08:59:01 pm
That why it's secret. It is an unsupported, though existing since long time method. You supply a SQL command to update/delete records. See also my scripting book.

q.