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.


Topics - wmather

Pages: [1]
1
Bugs and Issues / Orphaned EA.exe process - Interop.EA.dll [Solved]
« on: January 04, 2018, 12:11:26 am »
Hi,

I am trying to automate the generation of my own documents by using a hybrid repository to walk all the required tables and assemble the required records.

This all works well, but as soon as I use EA.Repository() to save images, after my application finished, I have rouge EA.exe processes still running.

Is there something I am doing wrong so that the COM API closes the EA instance it has opened?

This is my code. Normally I let GC run in it's own time, but just forcing in-case it was the GC holding some COM lock. Please note this is EA 13.5.1352 Professional Edition

Code: [Select]
        private void ExportDiagrams()
        {
            var eaRepos = new EA.Repository
            {
                SuppressEADialogs = true,
                SuppressSecurityDialog = true
            };
            eaRepos.OpenFile(options.EAPFile);

            foreach (var d in Diagrams)
            {
                d.SaveImage(options.WorkingDir, eaRepos);
            }

            eaRepos.CloseFile();
            eaRepos = null;
            GC.Collect();
        }

        // inside my Diagram class...
        public void SaveImage(string dirName, EA.Repository repository)
        {
            var pi = repository.GetProjectInterface();
            repository.OpenDiagram(Diagram_ID);
            pi.SaveDiagramImageToFile($@"{dirName}\\{Diagram_ID}.jpg");
            pi = null;
            repository.CloseDiagram(Diagram_ID);
        }

2
General Board / Specification Manager - Child Diagrams And Embedded Images
« on: December 31, 2017, 06:34:17 pm »
Hi,

Forgive my ignorance as am new to EA and am having some issues with the specification manager.  While I can create the hierarchy of requirements, the issue I am facing is trying to get embedded diagrams in the published output, or to add custom image(s) to the output.

I have tried to follow the EA User Guide but have failed to get either a state machine diagram or a copy-and-pasted object into the notes to be exported during the publish.

While usually not a fan of the dummies books, it seems Sparx Systems EA for Dummies is just what I need to understand this software as I am finding this are just not clicking with me yet. I usually don't consider myself unintelligent, but this is the first time I have had a piece of software where I don't just click into understanding how to drive it.

If anyone can give me pointers, or even a short list on what to do to get the expected output, I would be extremely grateful.

TLDR;

I want to achieve something like as follows. NOTE: It would be great if instead of linking to a diagram in the model, if I could also paste a custom image and have this in the output.

  • Create a new package called Diagrams
  • Create a new package called Requirements
  • Add a new Requirements Diagram to the Requirements Package
  • Use Specification Manager to create a hierarchy of elements i.e: 1.0, 1.1, 1.2, 2.0, 2.1 etc..
  • Add a new State Machine Diagram to Diagrams package
  • Implement a basic state machine
  • Link the State Machine to any node in the requirement hierarchy
  • From Specify in the ribbon, Click Documentation=>Generate Documentation=>Generate
  • Open the DOCX and find the state machine diagram in there (or an embedded image)

3
Bugs and Issues / Webpage Wireframe - Table Control - ReOrder Columns?
« on: September 15, 2017, 12:31:08 pm »
Hi,

Is there an easy way to sort the columns of the table without having to destroy columns to put things in the order you require for your technical specifications?

I tried to edit the memo note XML directly, but that did not work.

Any help would be appreciated as surely I am not the only one to have this requirement?

Pages: [1]