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

Pages: [1] 2 3
1
Quite strange. Though I would not really care about the difference.

q.
I care because I thought valuable information might be missing. Nothing worse than a backup that isn't complete.

- Bruce

2
Thats a significant difference. Did you try running 'compact file' option in the transferred EAP.? what is the resulting size of the model?
That was it! Compacting it reduced it to 10 MB and compacting the 12MB file also reduced it to 10MB.

Thanks, I didn't know about that feature.

- Bruce

3
When I transfer a file through the menu system (Configure/Transfer/Project Transfer - DBMS to File) the resulting .EAP file is about 56MB. When I use the script below, the .EAP file is about 12 MB. Any idea what the difference is?

Thanks

(I left out the strings that define paths. Here's the critical part of the script):

     dim eapString
   eapString = "EAConnectString:BARDA EA DB --- DBType=4;Connect=Provider=MSDASQL.1;Persist Security Info=False;Data Source=EA DB"
   
   dim repository
   dim projectInterface
'   set repository = CreateObject("EA.Repository")
   set repository = GetObject(, "EA.App").Repository

   'get project interface
   set projectInterface = repository.GetProjectInterface()

   projectInterface.ProjectTransfer eapString, TargetFilePath, LogFilePath

end sub

main

4
General Board / Re: SQL-based report on package info coming up empty
« on: February 10, 2018, 12:18:56 pm »
Can you provide the contents of your SQL Search definition?

select t_package.Name, t_package.Package_ID, 'Package' AS CLASSTYPE, t_package.ea_guid AS CLASSGUID from t_package where t_package.Name like '<Search Term>'

Now what I get in my document is the target package plus the parent package plus the only sibling of my target package. When I run the search as a search, only my target package is returned (as expected).

Thanks
Bruce

5
General Board / Re: SQL-based report on package info coming up empty
« on: February 02, 2018, 03:16:19 am »
Everything I described was to find and report on the notes for a package listed in the project browser, not in a diagram.

Thanks for replying,
Bruce

6
General Board / SQL-based report on package info coming up empty
« on: February 01, 2018, 05:11:48 am »
EA Version 13.5.1352

1) I use an SQL search to find a package by name. I know the search works - I can right click a returned package and the "Find in browser" feature is highlighted and works.
2) I have a document template that reports the package name and notes. I can generate that document directly from a package (by right-clicking the browser) and the contents are correct in the generated report.

When I create a "Model Document" and specify the search and name from 1) above and the template from 2) and then generate the report, the report comes up empty. The package name and notes don't appear. (If I include elements and the element names, I see a correct list of element names in the report so I know the report receives the package information but no package information appears). Any ideas?

Thanks
Bruce

7
General Board / C++ State Machine Code Generation Example?
« on: December 19, 2017, 03:42:21 pm »
I'm trying to generate C++ code from a state machine. I don't know how to set up triggers with events and guards so that generated code will compile. Is there an example around (or really clear documentation)?

I'm using the system engineering version (13.5).

Thanks for any help

Bruce


8
General Board / Re: Postgres-related crashing. ODBC Keep Alive?
« on: December 16, 2017, 03:26:17 am »
Thanks. I do have that configuration. I'll upgrade the driver.

- Bruce

9
General Board / Postgres-related crashing. ODBC Keep Alive?
« on: December 15, 2017, 09:38:55 am »
I just started using Postgres (9.03 32 bit ODBC driver) with EA (13.5.1351) on Win 10. EA seems to crash if I stop working with a model for a while. (EA crashes - I'm guessing that it has to do with lack of activity). I did not have this problem when working with the same model in an EAP file.

It's as if there's a timeout somewhere, maybe in the ODBC connection? Any thoughts or insights?

Thanks

10
I figured out the answer, sort of, based on SQL for a different EA query. This SQL lists all the trace relationships in the model.

SELECT t_connector.Connector_Type AS [CLASSTYPE],
    t_connector.ea_guid AS [CLASSGUID],
    t_object1.Stereotype AS [From_Type],
    t_object1.Name AS [From_Name],
    t_connector.Stereotype AS Relation,
    t_object2.Stereotype AS [To_Type],
    t_object2.Name AS [To_Name]
FROM t_object t_object1, t_object t_object2, t_connector
where t_connector.Start_Object_ID = t_object1.Object_Id
    and t_connector.End_Object_ID = t_object2.Object_Id
    and t_connector.Stereotype='trace'
    and t_object1.Stereotype is not null
    and t_object2.Stereotype is not null
Union
SELECT t_connector.Connector_Type AS [CLASSTYPE],
    t_connector.ea_guid AS [CLASSGUID],
    t_object1.Stereotype AS [From_Type],
    t_object1.Name AS [From_Name],
    t_connector.Stereotype AS Relation,
    t_object2.Object_Type AS [To_Type],
    t_object2.Name AS [To_Name]
FROM t_object t_object1, t_object t_object2, t_connector
where t_connector.Start_Object_ID = t_object1.Object_Id
    and t_connector.End_Object_ID = t_object2.Object_Id
    and t_connector.Stereotype='trace'
    and t_object1.Stereotype is not null
    and t_object2.Stereotype is null
Union
SELECT t_connector.Connector_Type AS [CLASSTYPE],
    t_connector.ea_guid AS [CLASSGUID],
    t_object1.Object_Type AS [From_Type],
    t_object1.Name AS [From_Name],
    t_connector.Stereotype AS Relation,
    t_object2.Stereotype AS [To_Type],
    t_object2.Name AS [To_Name]
FROM t_object t_object1, t_object t_object2, t_connector
where t_connector.Start_Object_ID = t_object1.Object_Id
    and t_connector.End_Object_ID = t_object2.Object_Id
    and t_connector.Stereotype='trace'
    and t_object1.Stereotype is null
    and t_object2.Stereotype is not null
Union
SELECT t_connector.Connector_Type AS [CLASSTYPE],
    t_connector.ea_guid AS [CLASSGUID],
    t_object1.Object_Type AS [From_Type],
    t_object1.Name AS [From_Name],
    t_connector.Stereotype AS Relation,
    t_object2.Object_Type AS [To_Type],
    t_object2.Name AS [To_Name]
FROM t_object t_object1, t_object t_object2, t_connector
where t_connector.Start_Object_ID = t_object1.Object_Id
    and t_connector.End_Object_ID = t_object2.Object_Id
    and t_connector.Stereotype='trace'
    and t_object1.Stereotype is null
    and t_object2.Stereotype is null


11
General Board / How to report trace relationships for state transitions?
« on: November 04, 2017, 03:23:48 am »
I have a state transition from State1 to State2 (Call it Transition1). I attach a trace from Transition1 to Artifact1. How do I generate a report or an SQL query that lists that trace relationship? (I know how to do it when I trace from a State element, but not from a state transition).

Thanks
Bruce

12
I've seen a few posts on this topic but no answers, so I thought I'd take my chances.

When I use {Diagram.DiagramImg} to put an image into generated documentation, the image is smaller than I'd like (it's legible, but I'd like the diagram to be bigger. Is there a way to set the size?

Thanks
Bruce

13
General Board / Re: Figure numbers in captions in generate documents?
« on: July 21, 2017, 02:55:00 am »
Thanks all,

This worked: Figure {Diagram.Figure}: {Diagram.Name}

Now I'll start a thread about setting image size.

- Bruce

14
General Board / Figure numbers in captions in generate documents?
« on: July 20, 2017, 10:31:56 am »
I've searched for a way to do this but haven't found anything.

How do I add Figure numbers and captions in generated documentation?

Thanks

15
General Board / Document templates for methods with parameter notes
« on: July 18, 2017, 05:46:51 am »
Any insights on how to create a template that generates documentation for a method that looks like the strcat sample below? Specifically, I want to know how to put the parameter types and names into the function signature and put a list of the parameters and their associated notes below the signature.

Thanks in advance for assistance
Bruce

---------------------------------------------------------------------------

char * strcat ( char * destination, const char * source );

destination
    Pointer to the destination array, which should contain a C string, and be large enough to contain the concatenated resulting string.
source
    C string to be appended. This should not overlap destination.


Pages: [1] 2 3