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

Pages: 1 2 3 [4] 5 6 ... 9
46
Uml Process / Re: CSV export with notes
« on: September 09, 2016, 11:31:07 pm »
Seriously?

That is rather disappointing - to put it mildly!

47
Uml Process / CSV export with notes
« on: September 09, 2016, 10:56:04 pm »
I wish to export requirements to Excel and have discovered the CSV export function. I have created a CSV Import/Export Specification and included the element name, type, GUID and notes fields.



Many of my requirements have carriage returns in them.



When these requirements are exported to the CSV file, EA seems to break up the requirement into two separate rows.



I get the feeling from looking through previous postings this is a known issue but I wasn't able to find the solution! :o

48
General Board / Re: mdg profile toolbox
« on: August 20, 2016, 01:21:58 am »
This process may not be supported in EA 9, but in later versions you can define the toolbox by editing the toolbox field within the diagram extension

First, create the stereotype to extend your diagram (using the Add Diagram Extension profile helper - if they are supported in EA 9)

You'll end up with something like this:


Then, edit the toolbox Profile entry and set it to whatever you want. You can set it to an existing toolbox (e.g. SysML) or a custom one


49
I have found an alternate solution too!

The process I was using to copy the elements on a sequence diagram is:
  • Selecting all the elements on the diagram (CTRL + A).
  • Using CTRL + C to copy to clipboard
  • Creating a new sequence diagram (with my custom MDG extensions including a bespoke diagram frame tag)
  • Ctrl +V to paste the elements on the diagram

The result of this process was a complete mess - and none of the messages between lifelines were recreated in the diagram and all of the diagram fragments were all over the place  ::)

The way to do it is to follow steps 1-3, but when you have created a new diagram either
  • Right click on the diagram canvas and select Paste Elements as New
  • Use the keyboard shortcut (CTRL + SHIFT + V)

Now EA will replicate all the original features of the diagram in a new diagram perfectly.

Not the first time I've been caught out with differences between pasting as links and pasting as new elements :o

50
Gulp!

So I guess I have to ask myself the question: do I feel lucky?... Well do I? PUNK!

(No I don't feel lucky - not given my lack of experience with VB script writing)

And no one knows a way of copying the contents of a Sequence Diagram into clipboard and then pasting those elements including messages between lifelines-lines onto a new diagram?

51
And there's no other way to change it?!?  :-\

I have tried creating a new Sequence diagram (using our MDG technology) and then copy-pasting elements between the current diagram and the new one but that only copies the lifelines and any diagram fragments - the message lines are not duplicated.

I don't really care how I do it - I just need a way to take the contents of a standard Sequence diagram and then produce a version that conforms to our company standard

52
So that's the only thing I need to do to change a diagram type? Really??? I'm not complaining if that's right but I'm frankly amazed (given my lack of experience with VB scripts) that I hit on the right idea straight away! Beginner's luck perhaps?

53
I have created an MDG that extends the SysML sequence diagram and need to change some of my sequence diagrams to this new type. Unfortunately, EA won't let me change a sequence diagram to any other type of diagram (that option is greyed out in the menu).

I am guessing that it must be possible somehow but that it might need to be done using a script...

From digging around in the SQL database it seems that the following field in the t_diagram.StyleEx table makes reference to the type of diagram. For example, on my standard SysML Sequence diagram this field reads:
Quote
ExcludeRTF=0;DocAll=0;HideQuals=0;AttPkg=1;ShowTests=0;ShowMaint=0;SuppressFOC=0;INT_ARGS=;INT_RET=;INT_ATT=;SeqTopMargin=30;MatrixActive=0;SwimlanesActive=1;KanbanActive=0;MatrixLineWidth=1;MatrixLineClr=0;MatrixLocked=0;TConnectorNotation=UML 2.1;TExplicitNavigability=0;AdvancedElementProps=1;AdvancedFeatureProps=1;AdvancedConnectorProps=1;ProfileData=;MDGDgm=SysML1.3::Sequence;STBLDgm=;ShowNotes=0;VisibleAttributeDetail=0;ShowOpRetType=0;SuppressBrackets=0;SuppConnectorLabels=0;PrintPageHeadFoot=0;ShowAsList=0;Whiteboard=1;SuppressedCompartments=;SaveTag=4B2FDBD8;

So, I was thinking that it might be possible to write a script to change this value

I am very new to EA scripting and have very little VB experience, but have managed to get a script to to a find-and-replace within this field using the following code:

Code: [Select]
sub OnDiagramScript()

' Get a reference to the current diagram
dim currentDiagram as EA.Diagram
set currentDiagram = Repository.GetCurrentDiagram()

 

'declare variable to store style string
dim DiagramStyleString
'store style string
DiagramStyleString = currentDiagram.StyleEx
'do a find a replace
DiagramStyleString=replace(DiagramStyleString,"MDGDgm=SysML1.3::Sequence;","MDGDgm=Protean Architecture Framework::System Interaction View;")


    currentDiagram.StyleEx=DiagramStyleString
end sub

But that didn't work - not that I'm surprised!

55
Uml Process / Launching Package Browser
« on: August 13, 2016, 01:46:09 am »
Is there any way to launch the package browser automatically by double clicking on a that has been placed on a diagram?

Thanks!

56
Uml Process / Re: Custom Toolbox Creation
« on: August 11, 2016, 05:45:16 pm »
Quote
The new element dialog doesn't list packages.

So the only way I can create packages using my toolbox is by creating a package diagram and then dropping my custom element onto it?

57
Uml Process / Custom Toolbox Creation
« on: August 11, 2016, 01:34:52 am »
I am defining a custom toolbox by creating a MDG Technology.

I have successfully created a toolbox using the Profile Helper (see http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/modeling_tools/create_toolbox_profiles_using_.html) and have managed to drop elements from it onto a diagram  :D



However, if I try to add an element directly to the browser (Right click | Add Element), although I can find my MDG toolbox, there are no elements listed in it  ???



I've clearly missed a step somewhere but I have no idea where!

Any help would be appreciated (thanks for your continuing support - I seem to be monopolising this forum at the moment!!!)

58
Uml Process / Re: Extending non-UML diagram types
« on: August 10, 2016, 12:21:56 am »
Some diagram types have different behaviours depending on whether they are the (native) UML or (MDG-based) SysML. For example, if you create a SysML activity diagram, you can right-click on the background of the diagram and choose to either Show or Hide the diagram background:



This is very useful because it allows you to show things like SysML Activity Parameters on the boundary of the diagram. Therefore, when I create a customised diagram based on the native UML Activity diagram I can't turn the frame on/off...

Does anyone know how to make it do this (I fear it is not possible  :()

59
Uml Process / Re: SysML Viewpoints
« on: August 09, 2016, 06:26:35 pm »
EA seems to have (at least) 4 otherthings that it calls views
    • Top level package in a model (created by right clicking on the root of the package in the browser and adding a Model View)
    • Model Views, accessed by the Model View browser - which can be used to launch SQL searches and find specific model elements
    • ModelView artefacts which can be used to hold SQL queries and display them within a diagram itself
    • SysML View and Viewpoint elements (accessible from the Package diagram toolbox).

    My question was related to the last of these: SysML View and Viewpoint elements

    SysML Views and Viewpoints can be used in other tools (such as Rhapsody) to provide a filtered subset of the project browser however I have just had confirmation from Sparx that this is not something that EA supports.

    So, in answer to my own question: the only way SysML View and Viewpoint elements can be used is to show (both visually and via the traceability view) the parts of the model are included in a particular view. If you perform a package import between a View element and target packages, the elements within are not actually imported into the view element itself. Some (pretty complex) SQL queries are needed to actually list the elements imported but I've concluded that this isn't worth the bother![/list]

    60
    Uml Process / Re: Extending non-UML diagram types
    « on: August 09, 2016, 06:12:52 pm »
    Excellent! Thanks very much. How do you find the name of the toolbox? (Obviously I could guess the name as I assume they follow a pretty standard pattern - but MDG technology development involves more than enough guess-work already!)

    Pages: 1 2 3 [4] 5 6 ... 9