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 - qwerty

Pages: 1 ... 4 5 [6] 7 8 ... 595
76
Hmm. You are (almost) right. It seems I got mixed up with both (I don't use it that often). However, there's a little difference. The menu-created CallBehavior has that little trident icon. Just setting the classifier does not create this icon. It will probably only appear if you create the t_xref entry.

q.

77
Uffe, what you describe is what you get when you press Ctrl-L on the Action and select  a classifier. Do that for an Action of your choice. Now from the menu create a new Action and select CallBehavior. It will ask for certain elements (e.g. a StateMachine) you can assign to the behavior. Now look at both elements and you will see the difference.

q.

78
I am sorry, but I really do not know, what to do with the code you provided. :(

In other words: you can not do that easily. The API provides nothing to do it. You need to dig into the underlying database and how to deal with it. Only then you can use what I posted above.

q.

79
Uffe, that's not correct. The above will create an instance, which is something completely different.

q.

80
General Board / Re: Help with the help
« on: October 18, 2017, 10:09:55 pm »
Ah yes. Nice one, Sparx. Make a button that does not look like one. And hide a formerly visible navigation under a semi-button. Similar to the New button now hidden in the project view. Well, ...

Thanks anyhow :-)

q.

81
On that level? Your magic hand moving the mouse.

q.

82
Bugs and Issues / Re: Test, Issue, Defect, Requirement dependencies
« on: October 18, 2017, 09:39:26 pm »
No. It's Sparxian thinking. Us Earthlings are not able to understand that. Just take it granted. It won't be changed. And even if, it would get worse.

q.

83
Bugs and Issues / Re: Timing diagrams
« on: October 18, 2017, 09:37:06 pm »
I once used them but the number of times can be counted by the fingers of one hand. I got used to it after some time to create what I needed. But that's years ago and I'd have to start from scratch the next time.

q.

84
General Board / Re: Help with the help
« on: October 18, 2017, 09:30:26 pm »
But from there the Odyssey goes on. The tree-structure of the former object model is completely gone.

q.

85
For CallBehavior it's similar. t_object.classifier_guid has the guid of the StateMachine or whatever is in place. t_xref differs in

Code: [Select]
Description="@PROP=@NAME=kind@ENDNAME;@TYPE=ActionKind@ENDTYPE;@VALU=CallBehavior@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;;"

q.

86
So, there are two things to do. One is to set the classifier as above. This can not be done with the API, but only directly in the database. The second is to add a couple of CustomProperties which, according to the help, are "Currently only editable from the user interface.". Instead you can create an entry in t_xref with

Code: [Select]
Name="CustomProperties"
Type="element property"
Description="@PROP=@NAME=kind@ENDNAME;@TYPE=ActionKind@ENDTYPE;@VALU=CallOperation@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;"
Supplier=<guid of the action>

Good luck.

q.

P.S. Uffe is right. It's t_object.classifier_guid (I was working on t_document for a request from Geert). And it's a CallOperation I'm talking about (drag operation onto diagram).

87
General Board / Help with the help
« on: October 18, 2017, 09:09:32 pm »
Now that from time to time I have to work with V13 I have the need to consult the former help. Up to V12 the object model was reachable from a side bar directly. The new unhelpful layout (http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/index/index.html) does not longer have the side bar. It even seems to miss a link to the object model. Or I can't find it. Where is it now. No longer needed???

q.

88
Good question. The API does not seem to expose it. I'll have a look.

q.

P.S. t_document.classifier_guid corresponds to the operation's guid.

89
It appears that the format they use is something internal. It's not a BMP, PNG or any other know image format. So no luck here unless you grease some developer's palm.

q.

P.S. This is the hex dump of a cached (very simple) diagram:

3C 95 AD AA E5 F4 1A 93 49 40 13 95 74 2E 6F BE 43 A4 0F 81 F6 AA F1 82 D3 D8 4A 05 FA 21 1B 0D 38 EE 32 9D D2 73 10 1B 13 16 D0 B5 2C 77 04 F1 B0 0C 04 8A FA 8A F1 66 CD 29 41 47 34 88 85 1B 39 F1 08 65 98 55 81 24 D9 4F 95 06 B8 6A 63 D9 98 A6 4E 59 88 B5 8F EE 9C 67 C6 34 02 91 A3 FB 5A A7 73 16 88 F2 C4 B6 B3 EC D8 0D 10 DF 94 17 C3 00 94 5D D6 B2 92 31 0F 20 CB C1 44 FD 14 36 A0 A1 5A 00 0E 6E 4A 91 AF 23 7E 9F B4 42 25 6C F9 0F D3 21 9F 01 5E 25 C7 D3 C6 D8 B7 D2 66 DE CF 99 EB 5F 16 8F DD 2D 7C 38 DC B4 4C 6D 5C 7E F7 B3 8D 27 E3 AF EC 6E 1F EB 11 D5 97 0F 26 38 0E BE 7B 94 BB 89 DC 22 FD F3 BA 02 BB 88 EA 99 46 40 18 4D 82 99 3E 32 95 1D 3E 42 D1 05 43 5C C6 66 0C FF 67 EC 24 28 D0 F0 91 BA 8E A7 B8 3A 9B A6 E0 E1 C7 E1 B0 59 38 A5 FB 0B 76 CC 4B 1E 39 F9 34 E8 DF BA 63 6F EA B7 2F 7A 6A 9C A4 2B 5C B1 61 66 B9 05 F2 CA 13 F7 C8 EC EE 61 D2 EA BF 70 6F 95 9D 2F 96 80 A3 FE 19 28 BA 2B 80 60 D7 F7 85 50 88 58 59 F7 A2 9C 01 71 F5 6E 6C FB BA EC 57 65 58 89 0F E6 CD CD CC 22 5F 02 4A CC 40 F0 77 21 7D E2 EC 06 9B A4 1A 4D FA 30 3C 0E 44 9A 6F BF A3 04 D8 2D 9F 3E 43 11 0C 88 5C 2C 16 92 D9 DB BA E3 46 13 27 1C FD F8 AD 6A 33 02 C6 4D 46 32

There's no magic number in front.

P.P.S. When slightly moving one element, the dump looks completely different.

90
A cache would most probably be implemented in memory, but you never know what they smoked before (designing ?/) implementing. I'll see if there's something in the DB if you tell me where to turn on the cache.

q.

Pages: 1 ... 4 5 [6] 7 8 ... 595