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 - chris pearce

Pages: [1]
1
Bugs and Issues / Basic Import to sysML blocks
« on: November 23, 2017, 10:33:29 pm »
I have a number of system elements in a separate requirements database tool and want to import them to EA using eadocx or the Native import tool.  If you do this the association with the MDG plugin is lost and the "magic" of the plugin to render the properties, parts and references is also lost.   I want to be able to use eadocx as a sync tool between the 2 platforms but i think the problem lays within EA in how it associates a basic "class" element with its MDG plug in and this gets lost in the translation.

EA V13 systems engineering edition, V13 Corporate edition + sysML MDG plugin 

Any ideas on the basics ?  I'm moderately familiar with the t_object table and decreasingly so therein!

Thanks for any insights...

CP

2
Bugs and Issues / HTML Report Compatibility in Chrome and Sharepoint
« on: July 18, 2013, 07:24:24 pm »
We are trying to output HTML reports to a file server such that SharePoint can display them in a web part component as part of an overall project documentation repository.  We have hit a problem and also noticed that also Google Chrome suffers.  I have not specifically determined that the cause is the same but the symptoms are.

The symptom is that on load the the table of contents left hand pane crashes out with the web page just showing loading....

In chrome i have diagnosed this to the toc.js function ChangeCSS the css object has not been correctly initialised and the references to "rules" and "CSSrules" within the "target" object are both NULL, and hence the script borks and thats the end of it.   Stepped through the same process in Explorer and its fine...  I also checked the CSS on the W3C css validator and there is only one error and this i dont believe it the problem.

I am hoping that if i can get Chrome can read the css and display the page then Sharepoint will also behave, although that remains to be seen.  

Tested with Chrome Version 28.0.1500.72 m, EA V9.0

we have tested HTML output from 2 different projects on EA V8 and V9 and neither work with Chrome...

Any pointers greatly appreciated...

3
Automation Interface, Add-Ins and Tools / Automated requirements import
« on: October 18, 2014, 12:27:50 am »
I am wanting to import requirements from another tool from XML into EA using an standalone automation script I have come up with the following which looks like it should work but the eap file doesn't show the added requirements in the specified package... However the items are added somewhere as i can read them out again.....(multiple versions of the same thing as ive run it lots of times)..

Code: [Select]
           EA.Repository repo = new EA.Repository();
            EA.Package package = null;
            repo.OpenFile(@"C:\Temp\project1.eap");

            package = repo.GetPackageByGuid("{735D3E44-8417-4601-93D5-B7F6630CA782}");


            for (int i = 0; i < 10; i++)
            {
                var new_item = package.Element.Requirements.AddNew("foo"+i.ToString(),"requirement");
                new_item.notes = "blah blah blah";
                new_item.update();
                package.Element.Requirements.Refresh();
            }

            foreach (dynamic req_items in package.Element.Requirements)
            {
                Console.WriteLine(req_items.name.ToString());
            }


            repo.SaveAllDiagrams();
            repo.Exit();

Is this method a non starter or should i persevere or should i find an alternative..  I found a few threads on this but not much in terms of automation....
Ultimately i want to check for existing items  / avoid duplicates update existing etc in a daily batch.

Any help much appreciated....

4
Automation Interface, Add-Ins and Tools / Automation of "publish to HTML"
« on: October 08, 2014, 01:36:14 am »
As we only have limited licences we would like to use the publish to HTML feature which will make the progress to date visible to all through their browser.   We are looking for a way to automate this process as part of our nightly batch process.  Ive looked at the available scripts but cannot find a master handbook to all the API call available.

Anyone have any thoughts on how to do this?

Pages: [1]