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

Pages: [1] 2
1
Thanks for the help.

I have now managed to assign the tags and the stereotype.
I think currently this is enough for me.

Thanks for the support.

Many greetings

2
Hello,
thanks for the answer.

A TaggedValue is now created when the element is created.
But with the second one I get the following error:


Code: [Select]
case otPackage
' Code for when a package is selected

dim thePackage as EA.Diagram
set thePackage = Repository.GetTreeSelectedObject()
dim theElement as EA.Element
'dim theElement as EA.TaggedValue

set theElement = thePackage.Elements.AddNew("Errornumber", "Signal")
set theElement = theElement.TaggedValues.AddNew("Tag 1", "Description Tag 1")
set theElement = theElement.TaggedValues.AddNew("Tag 2", "Description Tag 2")

What's my mistake here?
I've tried it without a set, but it's not working either.

I have looked at the examples, but they are also very complex :-)

Is there a simple way to assign a sterotype to the signal which already exists, so that the element takes over this formatting?

Many greetings

3
Hello,

thanks to the forum I have now managed to make a VB script where a signal is created.

Now I would like to add 5 TaggedValues to this element and change the color to pink.

Are there code examples for TaggedValues here? I found something in the EAScriptLib, but I can't really handle it.

Here is my code so far:

Code: [Select]
case otPackage
' Code for when a package is selected

dim thePackage as EA.Diagram
set thePackage = Repository.GetTreeSelectedObject()
dim theElement as EA.Element

set theElement = thePackage.Elements.AddNew("Fehlernummer", "Signal")

theElement.Update()
thePackage.Elements.Refresh()

Best regards

4
Thanks, that's how it worked now :-)

5
Thanks for pointing out that was the first problem.
I was able to fix that now.

Now it is so that when I want to add a signal, it always brings me the error that an object is missing.

Code: [Select]
case otPackage
' Code for when a package is selected

dim ElementSignal
ElementSignal = "Signal"

dim theElement as EA.Element
set theElement = theElement.Elements.AddNew(ElementSignal, "Test")
theElement.Update()
theElement.Packages.Refresh()

Where is my error?

Thanks

6
Hello,

I would like to create a new element of the type "Signal" using a VBScript.
Unfortunately it always brings me the standard message "This script does not support items of this type.

Has anyone given me a code snippet in which an element of the type Signal is created?

Many greetings

7
General Board / Overview of all baselines?
« on: September 30, 2019, 02:50:08 pm »
Hello,

is an overview of all created baselines available in the EA?

It would be nice if I could see where a baseline is created everywhere.

Best regards

8
Hello,

I saw in the EAExample the Activity Diagram, Multiple Orders. Now I noticed that the activity objects partly contain variables and calculations. Unfortunately, I can't find anywhere how to enter them there when I create my own diagram.

Under which menu item can I insert these instructions?
I marked them yellow in the picture.




Many greetings

9
Hello,

is there a way if I call a win32Dialog in a StateMachine to close this dialog outside again?

I want to display something in this dialog and after confirming with OKAY it should close again.




Many greetings

10
General Board / Re: List of commands for programming
« on: July 19, 2019, 06:59:40 pm »
Hello,

thank you for your answer.
I would like to extend this code, or perform invoices or something similar. For this there must be a basis, which commands can be used.
I would like to have a list or FAQ or else of commands, functions or something similar, which you can orientate yourself on.
Is there such a documentation? I didn't find anything in the help.

Because e.g. the function Trace(...) is a defined term. There are surely several of them like "random()", "Math.XXX", etc.

Many greetings

11
General Board / List of commands for programming
« on: July 19, 2019, 03:11:01 pm »
Hello,

is there a list of commands and instructions for programming in the EA?
In the EAExample, the following instructions, for example, are used in the simulation:

random()
Trace()
etc.


Or can any Java commands be used here?

I hope my question was understandable :-)

Many greetings

12
General Board / Re: Change sort order in project browser?
« on: July 04, 2019, 07:00:23 pm »
Thank you!

13
General Board / Change sort order in project browser?
« on: July 04, 2019, 06:04:41 pm »
Hello,

we create some elements via the API. They always have the same name and an additional number, which also has the background that they are sorted correctly.
Now the problem is that these elements are sorted automatically by the EA. However, the program sorts the numbers as follows:

1
10
11
2
20
21
3
...

Is there a possibility that the sorting is done in ascending order?

Example:
1
2
3
4
...
10
11
12
...
20
21
...

The problem is also there if I copy a package and insert it at another place, then the entries are also displayed alphabetically sorted there.

Many greetings

14
General Board / Re: Attributes disappear after closing and opening
« on: June 25, 2019, 09:21:08 pm »
Okay, now I get it :-)

Thanks a lot!

15
General Board / Re: Attributes disappear after closing and opening
« on: June 25, 2019, 02:37:22 pm »
Hello,

now I am a bit confused that I received a different answer by e-mail than here.
What is correct now?

Is it a bug or is it none?

Pages: [1] 2