Book a Demo

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 - Stanislav Hrabí

Pages: [1]
1
Thanks for the replies.

My mistake for not making it clearer in OP
- Uffe's interpretation is/was correct - thanks for a confirmation of what I was afraid of :-)

Although the Repository.GetFieldFromFormat and Repository.GetFormatFromField are indeed interesting functions, afaik they will not help me in the screnario

Let's say I've got element notes like this:
"Example element note" -i.e. the note with a part of it bold

If I then call something like: Session.Output(Repository.GetFieldFromFormat("html",selectedElement.Notes));
I'll get
Code: [Select]
Example [b]element [/b]note
This could allow me (in conjunction with GetFormatFromField) for example find all bold parts of a note and add a font color to them

But what I want to do is to select/highlight part of the text and run a script, which would add pair tags around the selection - e.g. let's say i select/highlight "Example", I'd run a script and it the output would be
Code: [Select]
Example [b]{startOfTxtInsertedByScript}element {/endOfTxtInsertedByScript} [/b]note

2
Hello,

I was wondering - is it somehow possible to access (in a script) only a selected part of the Notes property?

The Element.Notes property only allows me to work with the text as a whole. I'd like to run a script which could modify the selected part of the notes property.

3
Hi

I'm trying out the model add in functionality a little more.  The example model shows us how to add a custom add-in tab via EA_OnContextItemChanged,  BuildSummary and AddPropertiesTab

So far I can use the add-in tab to create a list of values. But what I'd like to do is create a few custom buttons in the custom tab.

Could somebody give me a hint (or even better, write a piece of code) how to create a functional custom button?


4
Suggestions and Requests / Re: Show all feature requests
« on: July 20, 2019, 12:47:32 am »
I too would appreciate seeing list of my requests/bug reports - and their status. And being able to upvote helpful feature request would be nice too. Sometimes it gets a little frustrating not knowing if anybody is working on an issue you have reported...

5
This feature was added in EA 15 RC1 (build 1504). From the build 1504 release notes:
"Added support for web style back navigation when following a hyperlink on a diagram"

You can disable this new feature and restore the previous functionality by opening Start > Desktop > Visual Style and disable the option "Enable Diagram Browser Navigation".

I believe this is a feature with a great potential. But could you change it, so the user could either open a new tab, or continue in the same tab -differently in every case (like in browsers)?
It would be nice if user could set a default behavior and use the alternative behavior in conjunction with another key - prefferably ctrl, or any (configurable) key. Similar behavior is even now possible with deleting - you can delete element on the diagram (DEL), or delete element from the model (ctrl+DEL).

6
Thanks for the replies.

I believe the solution could be quite simple. Just add a button to behavior editor, which would: save code, disable edited add-in and then re-enable it. Maybe one could make the button visible only when editing an element with the JavaScriptAddin stereotype...

Anyways - I believe it should/could take minutes to make (admittedly more time to test), but it would help (me and other users) A LOT :-)

I've posted this as priority request for a feature. I really hope the developers will make this happen... :-)

7
Hi, qwerty :-)

Thank you for your reply. However, I must admit I’m not sure If we understand each other (and if I made myself clear).

The functionality I write about is creation of Model Based add-ins (the first link in the previous post). I believe it has been added in the EA 15, which is still in RC status. Version EA 14 and older could only use “standard” add-ins, which use .dll COM files.

When I try to change something in a standard add-in (available in EA14 and older), I think I have to close EA, then compile the code to create a new version of .dll and then start EA again (usually in debug mode). I don’t know how to update a standard add-in without closing EA altogether, because the compiler won’t let me update a file that is being used (“used by another process” error).

The Model Based add-ins allow me to edit code while running EA and even update the plugin without closing EA. I just have to disable and re-enable the add-in. What I’d like to know if there is even faster way to propagate a change in a model based add-in. Specifically it would be nice to have something like a save+update add-in option in the behavior editor.

If you know a way, how to update a standard add-in without closing EA first, please let me know - it would be a great help  :). And if you know how to update a model based add-in more easily than by steps: save, Manage add-ins -> uncheck Load on startup, Manage add-ins -> check Load on startup, it would be even better  :)

S.

8
Hello, fellow EA users and/or developers :-)

I`ve been trying out the new EA's 15 feature - Model based add-ins

The only manual I`ve found so far is this one: https://community.sparxsystems.com/white-papers/1277-enterprise-architect-15-model-based-javascript-addin and latest api`s: https://www.sparxsystems.com/enterprise_architect_user_guide/15.0/automation/repository3.html

I`m quite adept with EA's scripting and somewhat familiar with normal add-ins. I`ve managed to modify the functionality in the example model.

Now, to the issue itself: unlike the scripting, I can`t simply save a version of my add-in and run it/see the results. It seems like I have to reload it first. I found out I don`t have to reload EA/model - I can reload the add-in by unchecking and subsequent checking of the Load on Startup checkbox in Manage Add-Ins. Nevertheless, that still seems a little bit tedious. Maybe there is a quicker way - like a button right “under the nose”, I fail to see :-) … 

Looking forward to hearing any advice/input... ;-)


Pages: [1]