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

Pages: [1]
I have written a script (Jscript) to change the type and stereotype of connectors (aim is to correct a diagram where many connectors have been drawn of the wrong type). It successfully changes the type and stereotype, but leaves the old stereotype visible in the label.

I am changing "trace" stereotypes to "satisfy". The label starts with <<trace>> and ends up with <<satisfy,trace>>.

Using an SQL query on the t_connector table I can see that a true satisfy relationship (created within the GUI) has a Btm_Mid_label value of <<satisfy>> but my script modified ones have a value of <<trace>>. It looks like EA is combining entries in Btm_Mid_Label and Stereotype when they differ.

So, how can I modify Btm_Mid_Label in a script so that the values match? I can't find anything documented around this.

General Board / Hide stereotype on Information Items Conveyed
« on: October 25, 2018, 07:57:38 pm »
I have created Information Items as blocks. When I add them using the Information Items Conveyed to an Information Flow, the names on the diagram are prefixed with their stereotype - <<block>>. I feel this is unhelpful for wider sharing of the diagram (non-technical people will wonder what <<block>> means!).

I have unticked "Show Stereotype Labels" on the Connectors section of the diagram Properties dialog, but that has no effect.

1. Am I correct in creating the information items as blocks?
2. If so, is there a way to suppress the stereotype?

For now I have removed from the information items the block stereotype, and they and now Class elements.

PS - I am modelling in SysML if it makes any difference for the "rules" for creation of elements.

Is there a way to delete a connector tagged value in a script?
I am able to traverse the tagged values associated with a script to identify the ones I wish to delete but there is no delete method for a ConnectorTag! Have I missed something or can they not be deleted from within a script?

General Board / How to identify XMI Import errors
« on: August 14, 2018, 06:54:29 pm »
I have created several packages used to create model templates for the model wizard in an MDG Technology. When I use the wizard some Errors flash up, so I re-imported my model template through the XMI Import option. The log file generated also has errors (e.g. Unknown dependency source or target), but no help as to what reference is missing or even just a line number in the XML file.

I've obviously got something wrong, most likely referenced to an object outside of the package structure from which the XMI Export is done. There are many diagrams and elements, with an XMI file over 9000 lines, so manually identifying the error is not going to be easy.

Is there a way that I can get more information from EA (or some alternative XMI inspection program) which can help me identify the offending error?

General Board / Export matrix definitions with MDG Technology
« on: July 31, 2018, 12:17:54 am »
I have created half a dozen matrix profiles. They only get exported with an XMI export for use in a model if I include a hyperlink on a diagram. Is there a way to enforce export of defined matrix profiles without having to add them as a hyperlink?

I was thinking that there should be a means to export with an MDG Technology, although since they need to reference specific packages I can see why they might only get associated with an XML file for use as a wizard.

General Board / System Output not displaying Profile conflict
« on: July 24, 2018, 01:08:53 am »
I have (temporarily and deliberately) enabled two MDG Technologies with the same name and ID - but I am not getting the warning that I should do in the System Output window. I did recently see this and have confirmed the warning is now not appearing in 13.5, 14.0.1420 and 14.0.1422. I was trying different versions just in case there was a bug in the latest.

I am wondering - have I accidentally enabled an option not to warn me on duplicate MDG Technologies? I can't find one anywhere.

General Board / Using built-in icons for toolbox with hidden sub menu
« on: June 30, 2018, 12:24:48 am »
I've created a hidden sub menu for my toolbox with three sub-tools with an MDG Technology. Because it's hidden the toolbox icon has defaulted to a folder icon. What I would like is to use the built-in UML Requirement icon - I don't see any documentation to do that, but is it somehow possible?

If I don't create a hidden menu, with a tool based on the UML::Requirement element it shows the correct icon.

General Board / Re-use existing MDG diagrams within a custom MDG?
« on: June 05, 2018, 06:59:17 pm »
I am creating a custom MDG, with some custom diagrams.

I would like to include some SysML diagrams in my custom MDG - I don't need to customise them (which the user guide implies is not possible anyway as only built-in diagrams can be extended). Is it possible to do this?
I realise that I might need to add a customisation (I found that was the only way to get a base diagram to be included - my customisation was simply to override the description with the same words as the original!).

I'm trying to make it easy for the user, so that they only need to select the diagram types that I have selected as relevant rather than sometimes selecting diagrams from my custom MDG Technology and sometimes selecting diagrams from the SysML Technology.

I note that it is possible to extend SysML elements (although I don't intend to do that) - I am unsure why I would want to extend SysML elements if I can't specify the SysML diagrams in a custom MDG, so possibly can somehow include the SysML diagram types.

How do I associate an RTF describing my model pattern with the model pattern wizard? In EA14, each wizard has an associated description page in the right hand pane (right click a package and select "Add model using wizard).

In the Q&A from a recent webinar I found:
"Will the MDG Technology Framework allow us to create new pattern types and include things about new features?
Model Wizard patterns are normally distributed with an MDG technology. The patterns exist as separate XMI files from the MDG Technology file, and need to be copied to the EA ModelPatterns directory in your installation path."

So, I have created my MDG Technology with a model pattern that the wizard uses to generate a pattern. That all works. I have created an RTF (with the same filename as the XML) and moved both files to the directory alongside the EA supplied patterns (and changed the MTS file to mirror the location). But my RTF does not get displayed in the right hand pane of the Model Patterns wizard. Just to confirm that EA was correctly picking up my pattern I moved my files out and the wizard does nothing.

So, back to my starting question, what have I missed that is not displaying my RTF alongside my pattern wizard?

General Board / Creating a Navigation Cell from a Matrix Profile
« on: January 05, 2018, 02:03:12 am »
What is the correct way to generate a Navigation Cell for a matrix?

If I create a Navigation Cell from a diagram and and a Matrix hyperlink, I can then copy the link in the hyperlink onto the Navigation Cell so that the Navigation Cell opens the Matrix rather than the diagram. But... in doing so the nice image of the Navigation Cell disappears (and I shouldn't really have to copy the hyperlink!). There is a nice matrix image available in the Navigation Cell image library so hopefully there is a better way.

According to page 21, Block elements can display any number of compartments. A ValueType element should appear in a "values" compartment.

I have turned on everything I can find under the Diagram Properties and the element's Features & Properties dialogues but cannot get ValueTypes to appear in a "values" compartment. I can get the ports compartment to display (if I delete the port from the diagram after creation). I can create a new Port by right-clicking on the element and selecting New Child Element. Similarly flow properties that are created as a child and deleted from the diagram show in a "flow properties" compartment.

I can't create a ValueType as a child element from that menu, but having created a Value Type I have moved it manually to make it a child of my Block element, but even then it doesn't appear in a compartment. There might be a clue in not being able to create a ValueType from the right-click menu, but that then also contradicts the SysML Models Guide.

I am using SysML 1.4, but have tried 1.3 as well and that is no different.

General Board / Defining the paragraph indent level
« on: July 27, 2017, 06:45:08 pm »
I have copied and modified the Use Case Details template that is provided with EA.

Having modified it for my purposes, some of the tables have different indent levels. In the output I can edit the indent level in Word and some are 0.48cm and others 0.95cm. Even removing the indent (by selecting Align Left) and then using "indent left" under paragraph, I cannot get the indent levels that have been used.

I cannot find the equivalent to the Word paragraph dialog where the indent level can be typed in precisely, which would allow me to type the indent amount.

Does anyone know how to set the precise indent?

All the lines have the same style.

General Board / Time aware models and documentation output
« on: March 08, 2017, 07:51:53 pm »
Just thinking about using a time aware model, but how do I produce documentation output from the model including both unchanged and changed elements?
In my case I am modeling requirements. I have version 1 defined and generate a Word document for distribution. I have cloned the requirements package. In one diagram I have cloned and modified one requirement.
When I generate my document from the cloned package, the only output is the one modified requirement, because that is the only element within the package from which I am generating the document. Has anyone figured out how to generate a document output that includes unchanged elements (in this case requirements) from the original package where they have not changed and the updated elements from the cloned package where they have changed?

General Board / Configuring EA 13 to use OpenModelica
« on: February 27, 2017, 08:21:43 pm »
I have installed OpenModelica (the latest version - v1.11.0-64bit). As per the instructions in the EA guide I can locate the omc.exe file. However, in EA the option to configure the location of OpenModelica is greyed out - In the SysMLSim Configuration Manager only the "Select Artifact" option is available and all other options are greyed out, including the key "Configure Modelica Solver" so I cannot define where the OpenModelica EXE file is located.

Has anyone got any tips on why I cannot configure EA to use OpenModelica?

EA is the Corporate edition, with a floating licence and also have the SysML MDG Technology licence installed.

I can also run OpenModelica by itself (outside of EA).

Pages: [1]