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

Pages: [1] 2
1
Bugs and Issues / Re: Name of diagram included in RTF report
« on: January 13, 2021, 07:50:11 pm »
Quote
Question: If you have an IBD with Ports on the diagram frame, who or what owns the Ports?

Good point...

Anyway, I suppose the Exclude filter should have solved my problem, but it didn't...?

2
Bugs and Issues / Re: Name of diagram included in RTF report
« on: January 12, 2021, 07:08:50 pm »
Thanks for the help!

For information, the diagram is a SysML 1.3 Requirements diagram, and it seems as if I can't set the diagram frame to non-printable? If I right-click on one of the requirements in the diagram, there is a "Behavior" sub-menu where I can toggle "Printable", but the diagram frame does not seem to be possible to (select and) right-click.

Also tried the exclude filter: in the "Generate Documentation" dialog, under "Exclude filters", I selected "Exclude details for" "Diagram frame" but that didn't help.

I can achieve what I want by selecting "Hide diagram frame" in each diagram, but I have a lot of diagrams...

(I still think it seems strange that the diagram frame should be considered to be an element in the diagram. Intuitively, it feels as if the frame IS the diagram, not an element in it.  :-\)

3
Bugs and Issues / Name of diagram included in RTF report
« on: January 11, 2021, 11:18:58 pm »
I have a template in EA 15.0 which looks like:

package >
{Pkg.Name}
{Pkg.Notes}

diagram >
element >
{Element.Name} {Element.Notes}
< element
< diagram

child packages >
< child packages

< package

When using this template on a package that contains a diagram, the Name and Notes of all elements in the diagram is included in the RTF report, but the problem is that the name of the diagram is also included in the report, which I didn't expect... If I right-click in the diagram and choose "Hide diagram frame", the report no longer contains the name of the diagram. The diagram frame shouldn't be regarded by the RTF template as an element in the diagram, should it?

4
General Board / Re: ODBC problems...
« on: January 07, 2021, 07:06:45 am »
Installing a whole bunch of Visual C++ redistributables solved the problem with installing version 5.1.13 of the MySQL ODBC driver...

https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/

5
General Board / ODBC problems...
« on: January 06, 2021, 03:28:31 am »
Migrating from an old work laptop to a brand new one (both with Windows 10 Pro).

On the old laptop I run EA 15.0 and uses the (at least previously) recommended MySQL ODBC driver version 5.1.13 to connect to a database repository. This works just fine.

On the new laptop I installed EA 15.0 and also tried to install the same ODBC driver (5.1.13) but the installation fails due to "Error 1918... can't find ....\myodbc5S.dll".

I googled and found recommendations to install Visual C++ Redistributable Packages for Visual Studio 2013, e.g. https://moreabout.tech/error-1918-while-installing-mysql-odbc-driver-on-windows/. I did that, but it didn't help. Same error.

Googled again and found a recommendation to download myodbc5S.dll and put it in C:\Windows\System32. https://bugs.mysql.com/bug.php?id=81204 That didn't help either.

I can install version 5.1.12 of the driver, but it isn't shown as an alternative when I try to add a new ODBC source...

Also tried to install version 5.3.6, which is recommended in https://sparxsystems.com/enterprise_architect_user_guide/15.0/model_repository/setupmysqlodbcdriver.html but I get the same error...

Any ideas? Thanks!

6
As I wrote, I copied the example from the user guide (link above) to my JavaScript script and changed "new ActiveXObject("MSXML2.DOMDocument.4.0")" to "new COMObject("MSXML2.DOMDocument")"

Code: [Select]
!INC Local Scripts.EAConstants-JScript

function myFunctionName (objectID)

{
var xmlDOM = new COMObject("MSXML2.DOMDocument");

xmlDOM.validateOnParse = false;
xmlDOM.async = false;

var node = xmlDOM.createProcessingInstruction("xml", "version='1.0' encoding='ISO-8859-1'");
xmlDOM.appendChild(node);

var xmlRoot = xmlDOM.createElement("EADATA");
xmlDOM.appendChild(xmlRoot);

var xmlDataSet = xmlDOM.createElement("Dataset_0");
xmlRoot.appendChild(xmlDataSet); /* Error message when this row is executed */
:
:


7
I am running EA 15.0.1513

8
Trying to do some fragment scripting, I am looking at the example in the user guide https://sparxsystems.com/enterprise_architect_user_guide/15.1/model_publishing/example_rtf_template_fragment_.html but instead of JScript I try to use JavaScript (which I think is the recommendation?).

So instead of

Code: [Select]
var xmlDOM = new ActiveXObject("MSXML2.DOMDocument.4.0");
I write

Code: [Select]
var xmlDOM = new COMObject("MSXML2.DOMDocument");
Now, the first two "xmlDOM.appendChild" in the example seems to work fine
Code: [Select]
...
xmlDOM.appendChild(node);
...
xmlDOM.appendChild(xmlRoot);
...

but

Code: [Select]
xmlRoot.appendChild(xmlDataSet);
gives an error message: "xmlRoot.appendChild is not a function"

According to an old topic https://www.sparxsystems.com/forums/smf/index.php/topic,38371.0.html there was a confirmed issue around this - is that issue still not fixed or am I doing something wrong?

9
Bugs and Issues / Interfaces not displayed for an instance
« on: February 04, 2020, 05:54:50 pm »
I have a class with a number of ports, and the ports have different required/provided interfaces.

I drag the class into an Object or Composite Structure diagram, drop it as an Instance (Object).
In the Features window, I can select which ports that shall be visible, and they appear in the diagram.
However, when I click on one of the ports, none of the port's interfaces are shown in the Features window.

Am I doing something wrong?

(I am using EA 15)

10
Uml Process / Classes, Ports and Interfaces - is this really correct?
« on: January 30, 2020, 05:48:22 am »
I thought that I understood at least the basics but apparently not. Or? I did the following in EA 15:

Create a class ("Class1")
Create another class ("Class2")
Add a port to Class2 ("PortA")
Right click on PortA, select New Child Element, Required Interface to add a required interface to PortA ("RequiredInterface1")

Add a property (of Class2) to Class1 (PartX:Class2)
Right click on the property PartX:Class2, select Features - Interaction Points (PortA is shown) and check PortA => PortA is shown in the diagram (on PartX:Class2) as I expected.
Right click on PortA in PartX:Class2 and select Features - All Features => no features are shown?!

Question number 1: Why isn't RequiredInterface1 shown here??

Since RequiredInterface1 didn't show up on PortA in PartX:Class2 I tried the following:
Right click on PortA in PartX:Class2 and select New Child Element, Required Interface to add a required interface to PortA on PartX:Class2 =>
PortA in PartX:Class2 now gets an interface "RequiredInterface2" (still no "RequiredInterface1").
PortA in Class2 (i.e. the class, not the instance) now have two interfaces ("RequiredInterface1" and "RequiredInterface2")?!

Question number 2: Why was the interface added to the class itself when I added it in an instance of the class??

I would be very grateful if someone could explain this....?

Thanks!

11
Thanks a lot! I haven't tried it yet, but will!

12
A simple(?) question regarding RTF document generation that I haven't found an answer to: from a <<model document>> it is easy to locate the included packages, but how can I find out which <<model document>>(s) - if any - a specific package is included in...?

13
General Board / InformationFlows
« on: June 10, 2008, 09:47:49 pm »
I have a problem: I would like to get a list of all InformationFlows to/from a specific SysML block in my model, and the information item(s) conveyed on each of them. (Advanced>Information items conveyed...)

I tried the 'Generate RTF Documentation', and by checking the Connector box (under Elements), I can print e.g. the Source and Target for each InformationFlow, but I can't find a way to print the information item that I have specified for each InformationFlow...?

I then tried the 'Model search', but didn't find a way to use the Query builder to do what I wanted, so I then tried to make a custom SQL filter. I manage to filter out all InformationFlows by specifying

SELECT * from t_connector WHERE Connector_Type = 'InformationFlow'

but now I still don't know how to get the information item(s) for each flow.
Help is appreciated... :'(

14
General Board / Re: Newbie question regarding SysML flows in EA
« on: May 21, 2008, 06:05:47 pm »
Quote
Whilst you could use tags to add extra meta-data to your model, I'm not convinced from what you have said that this would be the right thing to do. For example sequence diagrams can be used to capture timing constraints.
Here is some background information: I am modeling a system according to MoDAF*, and in the view "OV-2" I define the operational nodes and their information exchange (on a high level).

In the view "OV-3", there should be a table with details for the information exchanges in "OV-2" - e.g. type of information, frequency/size, security classification, etc.

I was hoping to be able to generate the OV-3 table from the attributes/tagged values of the flows specified in the OV-2.


*) Ministry of Defense Architecture Framework, www.modaf.org.uk

15
General Board / Newbie question regarding SysML flows in EA
« on: May 20, 2008, 05:58:05 am »
Sorry about an EA/SysML newbie question:

I have defined a number og SysML blocks, and a number of flows (ItemFlow) between the blocks. For each flow, I want to specify a number of "attributes" - frequency, item size, and a few more, specific to my project. Same set of attributes for all flows, but different values.

I guess that I should somehow use FlowProperty and/or FlowSpecification, but I don't realize quite how to do it...?

Thanks in advance!

Pages: [1] 2