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 - J.D. Baker

Pages: [1]
1
Automation Interface, Add-Ins and Tools / EA 16 DB Browser
« on: March 04, 2022, 10:21:18 am »
I have been using MS Access and Excel in the development mode to expose the EA table structure as part of my script writing process.  With the transition to SQLite these MS products will need to be replaced.  The DB Browser for SQLite looks to be a good replacement.  I'd be interested in learning whether anyone has found another approach.

2
The ArchiMate Model Exchange File format is a specification from the Open Group.  Since the ArchiMate specification does not include anything like the UML profile mechanism, a faithful representation of an ArchiMate model in the Exchange Format should not include stereotypes, etc.  If you want to exchange models between EA and another ArchiMate modeling tool, then the faithful representation is what you need.  An ArchiMate modeling tool like Archi would not be able to import and represent a UML stereotype.  If you want to exchange ArchiMate models between instances of EA, then you should use Native XML or XMI.

3
Automation Interface, Add-Ins and Tools / Re: Review Report
« on: February 28, 2022, 08:28:27 am »
Thanks for the reply.  I have created a number of reports over the years and I am familiar with templates and fragments.  What I need specific help with is reporting on the information captured during a Review.  That information does not appear to be exposed in the Object Model - at least I haven't found it.  I can expose the information by opening the EA project in Access but that option is not going to work with EA 16, so I'm hoping to find a more robust option.

4
Automation Interface, Add-Ins and Tools / Review Report
« on: February 27, 2022, 07:32:10 am »
I'm looking for some help on how to compile a document that includes the result of one or more reviews.  We need to be able to provide the results of a review to SMEs and management who for whatever reason can't explore the model contents.  So far the best I can do is write a SQL query but I'm hoping there is a better solution.

5
Suggestions and Requests / Team Review
« on: April 19, 2014, 03:43:54 am »
While I am able to walk through the Team Review hierarchy and see who added each comment, it would be useful if I could generate a list of some kind that allowed me to group comments by individual reviewer.  I'd also like to produce a list of all items by Review Status.  My notion of how this would work is that it would be just like the package browser.

Thanks

6
General Board / Re: MBSE Success Stories
« on: February 04, 2015, 11:57:48 am »
In addition to the case studies cited above, there were several relevant presentations at the 2014 session of the INCOSE International Workshop.  The presentations can be found at http://www.omgwiki.org/MBSE/doku.php?id=mbse:incose_mbse_iw_2014.  

The focus of the 2015 IW that just concluded was different so there's not as much to glean from those presentations.  

J.D. Baker
Sparx Systems Ambassador
http://www.linkedin.com/in/jdbaker48
Mobile – 760 315-3636
Skype ID - jdbaker48

7
General Board / Re: Help shows "page not found"
« on: April 02, 2006, 05:44:37 am »
Yes I can, but I'd still like to be able to access help from within the application, and the only help that doesn't work seems to be EA.

8
General Board / Help shows "page not found"
« on: April 01, 2006, 03:43:50 pm »
When I try to access the help file, either from within EA or by launching the .chm separately, every attempt to view content results in page not found.  I had some instructions for trying to solve this problem but I can't access them from my current location.  Anyone know a good way to attack this problem?

J.D. Baker

9
Bugs and Issues / New project wizard
« on: December 18, 2013, 10:49:46 pm »
When I try to create a new project using the Application or Vea templates, nothing appears to be added to the model.  I tried MS C++ and Java patterns.  I can't find anything about these templates in the help file.  Are they documented somewhere else?  Any suggestions for how I make them work?

10
Uml Process / Re: Sparx EA training?
« on: June 02, 2006, 05:08:00 pm »
Scott,

You're the second person I know of to ask for indepth tool training as opposed to general UML training.  Where there's two, there must be more, so I will try to find some time to work on developing more detailed tool training.  We should talk off-line about the best way to present the training.  My initial thought is to create a tutorial model - kind of like the Example that ships with EA.

J.D. Baker

11
Automation Interface, Add-Ins and Tools / Re: Object Required error
« on: February 12, 2013, 11:13:53 am »
here's the entire script

option explicit

!INC Local Scripts.EAConstants-VBScript

'
' This script is intended to be executed against a single element in the enterprise repository.
' It will create an instance of the classifier, add instances of any related elements and
' create relationships between those instances to reflect the relationships between the classifiers
' e.g. when the selected element is a use case, the script creates a use case instance, copies
' the scenarios and any related rule sets.
'
' Script Name: UseElement
' Author: J.D. Baker
' Purpose: Use enterprise element in a project
' Date: 10 February 2013
'

'
' Project Browser Script main function
'
sub OnProjectBrowserScript()

' Show the script output window
      Repository.EnsureOutputVisible "Script"
      
      ' Get the type of element selected in the Project Browser
      dim treeSelectedType
      treeSelectedType = Repository.GetTreeSelectedItemType()
      
      ' Handling Code: Uncomment any types you wish this script to support
      ' NOTE: You can toggle comments on multiple lines that are currently
      ' selected with [CTRL]+[SHIFT]+[C].
      select case treeSelectedType
      
'            case otElement
'                  ' Code for when an element is selected
'                  dim theElement as EA.Element
'                  set theElement = Repository.GetTreeSelectedObject()
'                              
            case otPackage
                  ' Code for when a package is selected
                  dim thePackage as EA.Package
                  set thePackage = Repository.GetTreeSelectedObject()
' determine whether this is a use case or application package
                  dim theElements as EA.Collection
                  dim currentElement as EA.Element
                  dim i
                  for i = 0 to thePackage.Elements.Count - 1
                        set currentElement = thePackage.Elements.GetAt(i)
                        Session.Output ( "i = " & i)
                        If currentElement.Type = "UseCase" then
'            a. Create an instance of the use case and copy all property data, including structured scenarios
'            d. Place instance elements in the appropriate package of the project model.  
'               These include an instance of the use case, and any actors or rule sets associated with the use case.
                              Session.Output( "found use case" )
                              'get the Packages collection for the current package
                              dim packages as EA.Collection
                              set packages = thePackage.Packages
                              'create a new package
                              dim newPackage as EA.Package
                              set newPackage = packages.AddNew("PJ" & thePackage.Name , "Package")
                              newPackage.Update()
                              Session.Output ( newPackage.Name )
                              ' create use case instance
                              dim newElement as EA.Element
                              set newElement = newPackage.Elements.AddNew( thePackage.Name, "UseCase")
                              newElement.Update()
                              packages.Refresh()
                              'set newElement.ClassifierID = currentElement.ElementID
                              Session.Output("author is " & currentElement.Author)
                              Session.Output("newElement " & newElement.Type)
                              Session.Output("currentElement " & currentElement.Type)
                              set newElement.Author = currentElement.Author
                              set newElement.Notes = currentElement.Notes
                              set newElement.Scenarios = currentElement.Scenarios
                              'set newElement.Connectors = currentElement.Connectors
                              set newElement.Diagrams = currentElement.Diagrams
                              set newElement.EmbeddedElements = currentElement.EmbeddedElements
                              
                              
                        Else
                              if currentElement.Type = "Component" then
                                    Session.Output( "found Application" )
                              end if
                        end if
                  next
'
'            b. Determine if links other than the generalization link to the Enterprise Use case exist.
'            c. For each link, create an instance of the linked element and create a link between the instances to mirror the classifier links.
'            d. Place instance elements in the appropriate package of the project model.  These include an instance of the use case, and any actors or rule sets associated with the use case.

'                  
'            case otDiagram
'                  ' Code for when a diagram is selected
'                  dim theDiagram as EA.Diagram
'                  set theDiagram = Repository.GetTreeSelectedObject()
'                  
'            case otAttribute
'                  ' Code for when an attribute is selected
'                  dim theAttribute as EA.Attribute
'                  set theAttribute = Repository.GetTreeSelectedObject()
'                  
'            case otMethod
'                  ' Code for when a method is selected
'                  dim theMethod as EA.Method
'                  set theMethod = Repository.GetTreeSelectedObject()
            
            case else
                  ' Error message
                  Session.Prompt "This script does not support items of this type.  Select a package to use in a project.", promptOK
                  
      end select
      
end sub

OnProjectBrowserScript

12
Automation Interface, Add-Ins and Tools / Object Required error
« on: February 12, 2013, 06:43:05 am »
I'm writing a script that includes the code below.  I sucessfully create the new package and the new use case but the set newElement = currentElement assignments fail with errors like
Object required: 'currentElement.Author.Author'

The content of the currentElement fields looks ok.

Session.Output( "found use case" )
'get the Packages collection for the current package
dim packages as EA.Collection
set packages = thePackage.Packages
'create a new package
dim newPackage as EA.Package
set newPackage = packages.AddNew("PJ" & thePackage.Name , "Package")
newPackage.Update()
Session.Output ( newPackage.Name )
' create use case instance
dim newElement as EA.Element
set newElement = newPackage.Elements.AddNew( thePackage.Name, "UseCase")
newElement.Update()
packages.Refresh()

Session.Output("author is " & currentElement.Author)
Session.Output("newElement " & newElement.Type)
Session.Output("currentElement " & currentElement.Type)
set newElement.Author = currentElement.Author
set newElement.Notes = currentElement.Notes
set newElement.Scenarios = currentElement.Scenarios
set newElement.Diagrams = currentElement.Diagrams

13
Automation Interface, Add-Ins and Tools / DOORS MDG Link
« on: February 13, 2007, 08:21:04 am »
If I buy the floating license for the DOORS MDG link, can all of my EA users share the licenses I buy?  In our situation, not every user will need to link to DOORS all of the time, and I'm looking for a way to reduce our costs but still give everyone access.

J.D. Baker

Pages: [1]