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

Pages: [1] 2 3 4
1
General Board / Re: Package Control & making them unerasable
« on: August 21, 2022, 04:00:15 am »
Hi Geert,

Thanks for the further pointers. I will explore them and hopefully make some progress.

Cheers,
Oz

2
General Board / Re: Package Control & making them unerasable
« on: August 19, 2022, 08:03:25 pm »
Hello Geert,

Thank you for the prompt reply!

Any references that you could provide for both the options you have suggested? I am not familiar with locking or version control to protect certain models.

Is there some other way for me to keep my elements-library completely out of the scope and import it to access its elements in any model?

Cheers

3
General Board / Package Control & making them unerasable
« on: August 19, 2022, 07:47:06 pm »
Hello friends,

I have a model created for reuse across various models called Elements-Library, and want this to be unerasable by all the people modelling. They should be able to import and use the elements from this library into their model packages and delete them from their whole model but never from Elements-Library,.

For example - In my EA project, I have two product models M1 & M2 (their diagrams & elements) in their respective packages P1 & P2 . I have another package just below the root node called Elements-Library, for keeping all the elements (classes) used in M1 & M2 models. How can delete elements only from model M1 without it getting deleted from model  M2 and Elements-Library packages? Is there a way to make my Elements-Library element unerasable and import its available elements into any other model?

Thank you.

Kind regards,
Oz

4
General Board / Re: VBscript
« on: March 01, 2022, 12:00:03 am »
Got it! Many thanks Geert  :)

Best,
Oz

5
General Board / Re: VBscript
« on: February 28, 2022, 11:44:49 pm »
You'll want a script that loops of the selected diagramobject and then change the BackgroundColor of the diagramObject, see
https://sparxsystems.com/enterprise_architect_user_guide/15.2/automation/diagramobjects.html

Here's an example that works on a diagram and loops the selected elements, so that should get you started.
https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/blob/master/Projects/Bellekens/Bellekens%20Change%20Management/Link%20Selected%20Element(s)%20to%20CR.vbs

Geert

Hi Geert,

I tried running your code "Link Selected Element(s) to CR.vbs" but it causes an error in file "LinkToCRMain.vbs" @line 43 : userLogin = getUserLogin
It does not recognise getUserLogin

I have imported the code using your XML file so I was expecting issues such as this.

Thanks,
Oz

6
Geert - many thanks for clarifying this further. :)

Best,
Oz

7
You can use Visual Studio and write C#

See https://github.com/GeertBellekens/Enterprise-Architect-Toolpack for examples

Geert

Hi Geert & q,

Thank you for your input.

Isn't there a set path configurations to be made before I can do any coding to communicate with EA? For instance,  I came across somewhere, a recommendation to include the path of EA.tbl file I am not sure where to do that in visual studio.

Also, Geert, is there a very simple example in C#/C++ that can be used just to get started. The default examples that come with EA library run to many lines of code...

Thanks again,
Oz

8
Hi friends,

hope all is well. I have realised the default IDE, is really terrible for using script languages so can anyone provide some tips on the steps to configure a dedicated programming IDE like visual basic or eclipse so that I can write code to interact with the EA Repository/Model? Any language like C++, C# or Java would do.

Thanks,
Oz

9
General Board / Re: using Javascript/VBscript to query/modify my Model
« on: February 22, 2022, 04:20:52 am »
Cheers Geert - thanks for pointing out the other routes!

Best,
Oz

10
General Board / Re: using Javascript/VBscript to query/modify my Model
« on: February 21, 2022, 05:02:27 am »
Hi Geert,

Thank you, that worked for me. The XML file is absolutely massive, so this is what guides EA to create a Script Management package and VBScript in the correct location, right? Isn't there a much simpler way of creating scripts and using them or one has to use the XML files? It would be good to know a much simpler route to get started with.

Thanks,
Oz

11
General Board / Re: using Javascript/VBscript to query/modify my Model
« on: February 21, 2022, 03:53:01 am »
Import Reference Data can now be found at Configure | Model | Transfer | Import Reference Data

There is a search field on the very top that you can use to search functions like this.


Geert

Thank you Geert! I did get to this point but upon clicking Import Reference Data I only get the option of importing "*.xml", but the folder of VBscript "Enterprise-Architect-VBScript-Library-master" does not contain any xml file type to import. How do I import the VBscrip code into EA and how do I run it?

Thanks again!

12
General Board / using Javascript/VBscript to query/modify my Model
« on: February 21, 2022, 12:07:24 am »
Hi EA Users,

Hope all is well on your sides!

I am trying to get started using any programming language (VB, JavaScript, C++ or Java) to start developing more complex queries than SQL route offers and eventually to modify the model elements via this code. I think (not 100% certain) the class Repository and its's methods are central to developing any interacting code:
https://sparxsystems.com/enterprise_architect_user_guide/15.2/automation/repository3.html

Please, can someone guide me on how to get started here? @Geert had suggested using the "built-in scripting module" so towards this I tried consulting his webpage:
https://bellekens.com/2015/12/27/how-to-use-the-enterprise-architect-vbscript-library/
Here, I have downloaded his example code, and then got stuck on the next step of importin the code into EA: "After downloading the file select menu option Project|Data Management|Import Reference Data and choose the downloaded file. Make sure to select Automation scripts and click Import." I could not find in EA, the menu options stated here.

Please help me to write a basic Javascript or any other language code to query and modify my model.

Many thanks for your consideration.

Best,
Oz

13
Hi KP,

This would be a long-winded route! I will need to open make another diagram to paste all the contents to and then delete the previous diagram I have moved the contents from....

Thanks for trying to help but it's not what I need.

Cheers!

14
The diagrams are not owned by an element, like being a child diagram of a block or an activity belonging to a usecase. So what is the fix for:
Quote
frame is actually a representation of the owner of the diagram. This owner should be the subject of the diagram.
?
Then they are owned by the package, and are a representation of that element.

Hi Eve,

Could you please elaborate on this and are there other routes to being able to move frame-based diagrams more easily? Is there a Global disable, then can be turned on once I have moved everything I need to?

Thanks!

15
Cheers Geert! I will look into this module & get started. I have heard that using it for search or DB interactions is slower than the SQL directly via ctrl-F but huge gains are to be made from it. The SQL route is only for querying whereas the scripting one would allow me to even make changes to the DB tables & automate model creation...etc

BR,
Oz

Pages: [1] 2 3 4