Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bilon

Pages: [1] 2 3 ... 6
1
What I haven't mentioned, I'm using version 12. Let my friend to try in version 13 and - it works! Is there any change between versions 12 and 13, which could be the reason of the  difference?

2
I have run consistency check and reset ids, but it's still the same.
After running the script, new operation looks like this:

meth.Name=OPER1, meth.Stereotype=Phase_Basic, meth.StereotypeEx=Phase_Basic   

3
@Geert, qwerty
None of your workarounds works  :-(

4
Ok, here's the test case.

I have an element (it's selected in the project browser) without any operation. After running following script (adding a new operation and setting it's stereotype) I can see new operation, but no tagged values on it. But when uncommenting the last row of the script (synchronization of the stereotype), I can see all the tagged valued.

Code: [Select]
Dim elm As EA.Element
Dim meth As EA.Method
Set elm = Repository.GetTreeSelectedElements(0)
Set meth = elm.Methods.AddNew("OPER1", "")
meth.StereotypeEx = "aaBIF metadata::Phase_Basic"
meth.Update
elm.Methods.Refresh
'Repository.CustomCommand "Repository", "SynchProfile", "Profile=aaBIF metadata;Stereotype=Phase_Basic;"

And now tell me what I'm doing wrong.

5
Yes, I've just created new operation and added stereotype to it. Without synchronization I can't see any tagged values.

Libor

6
Let me continue with this issue.

I experimented a bit with the element.SynchTaggedValues method and found that it works, but only on existing operations. If this is a new operation just created by the script, it does not work. Any idea why?

7
It looks pretty complex. I'm definitely not going to use it. Thanks anyway!

8
I use version 12 and it doesn't work. In the help for version 15 shortcuts I've found "Copy an element, multiple elements or a Package plus any underlying structure to the clipboard for duplication in a target Package" for Ctrl+Shift+C. Are you sure?

9
Is there any way how to call a procedure in model script from a procedure in excel VBA?

10
Is it possible? I can't see any command or shortcut.

11
Something like this, but I want the new objet to be of EA class (for example element) and completely independent on model.

12
Yes, that is exactly what I need!

13
You are right, now I see. Interesting, but I'm definitely not Rich Anderson. As I know :-)

14
I really meant to create it with the API in the script. I was almost sure it is impossible, but I asked :-) What a pity it's not possible!

15
Automation Interface, Add-Ins and Tools / Create standalone object?
« on: July 23, 2019, 02:25:37 am »
Is it possible to create standalone object? I mean object not connected to any model object, created just for the needs of a script.

Pages: [1] 2 3 ... 6