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 ... 9
31
Let's say I have two diagrams and want to export them to a document.

Diagram 1 has blocks A and B
Diagram 2 has blocks A and C

I want to construct a template that outputs the "notes" from each block underneath each diagram. But, ideally, I only want to export those notes once.

So, when the exporter gets to Diagram 2, it only outputs the notes from block C (because it previously exported block A)

Does anyone know of any sneaky ways to get EA to do this? Some kind of script that keeps track of the number of times an element has been found during the export process before?!?

32
Uml Process / Hyperlink updating
« on: November 23, 2016, 10:09:46 pm »
Let's say I have two blocks:

Block A and Block B

I want to create a cross reference in the notes of Block A that references Block B. For example "This Block is supplied by power from Block B". If I happen to change the name of the Block B to "Block C", then I want the name to change in any notes that include a cross-reference to it, in much the same way as is possible in MS Word. So my note would become: "This Block is supplied by power from Block B"

I had hoped that using hyperlinks to elements would achieve this, but (unless I'm doing something wrong) once a hyperlink is created, it does not change its name if the element that it links to has its name updated

Is there some other way of achieving this or is the only way to write some kind of script?

33
Bugs and Issues / Re: Glossary Tool Tip
« on: October 18, 2016, 06:20:29 pm »
I have noticed that the glossary term does not initially display in the notes window when you mouse over it, as the original poster mentioned. However if you interact with other model elements that contain glossary terms, then the term does appear. However, when you keep clicking on elements with glossary terms it causes EA to crash. Sparx are looking at into it but I'd be interested if anyone else has experienced unexpected crashes? The crashing is so bad that I have reverted back to EA 12.1.

I did a video to capture the behaviour. If other people can replicate this then perhaps it will help Sparx diagnose the problem

https://drive.google.com/file/d/0BxYmOvMnDquBOGpCRm5yRnpNUDg/view?usp=sharing

34
Uml Process / Re: Message Attributes on sequence diagrams
« on: October 14, 2016, 11:53:07 pm »
Yes, I discovered that re-opening the message updates the name. But I've got a lot of sequence diagrams!

35
Uml Process / Message Attributes on sequence diagrams
« on: October 14, 2016, 09:21:36 pm »
I have a «Signal» element that has an attribute defined

I want to create a a sequence diagram which shows this signal being sent from one lifeline to another, so I have created a message between the two, double-clicked on it, changed the type to asynchronous | signal and using the dialogue box, navigated to the appropriate model element. Once done, EA will auto-populate the "Attributes" section of the message dialogue box with the name of the signal attribute (helpful!)

However, if I subsequently update the name of the attribute of the signal, the sequence diagram attribute does not automatically update (less helpful)

Does anyone know if there is a way to get EA to refresh the attribute names on a sequence diagram. I have already tried reloading it and that doesn't do the trick  ???

36
I have diagrams scattered throughout my model and want to find a way to collect all of these together into a report.

I was hoping to use model searches help in this process and have written a search that finds a list of packages that contain the diagrams I want. I have then created a «model document» that uses this search to find the elements...

From reading one of Geert's tutorials (https://bellekens.com/2015/11/12/tutorial-generate-complex-documents-from-enterprise-architect-with-a-two-step-semi-automated-approach/), I see that the results of an SQL search must be placed in the 'element' section of the model document



I've done some test and have satisfied myself that EA is finding the right packages in the model, becuase I can make it print out the names of the packages into my document...
But I don't know I construct a template that can actually print the the diagrams within the packages.

Help!!!

37
Uml Process / Linking SQL Queries
« on: September 21, 2016, 08:58:20 pm »
EA includes a Model View Element (accessible from the Artifacts toolbox). It allows an SQL Query to be defined and the results displayed on a diagram

http://sparxsystems.com/enterprise_architect_user_guide/12.1/business_engineering/define_a_model_view_chart.html



I have a two questions:
1. Can you access saved searches when using the Model View Element or must you always type the search text in manually?
2. Is there any way to link SQL queries together? That is, can I use the output of one query as the input to another?

38
Suggestions and Requests / Re: Converting Cloud Server to EAP file
« on: September 21, 2016, 12:55:31 am »
I have access to the database - how do I convert to an .EAP file!!?

39
Uml Process / Re: CSV export with notes
« on: September 21, 2016, 12:54:14 am »
You've got my vote

40
Uml Process / Re: CSV export with notes
« on: September 20, 2016, 05:33:11 pm »
I wasn't feeling up to writing my own exporter as Geert suggested. Instead I wrote a small macro in Word to help get round the problem. It searches through the exported content and removes any extra carriage returns from the notes field. It's not well tested but if you want to use it go right ahead!

After adding the macro to a word document
  • Open CSV file in notepad/notepad ++
  • Copy/paste the CSV text into Word file containing macro
  • Run macro
  • Copy/paste modified CSV file into Excel
  • Use Text to columns function in Excel to convert the CSV text into separate columns

Code: [Select]
Sub eaExportFixer()
'
' eaExportFixer Macro
' This macro replaces paragraph markers within the notes field of exported enterprise archtect model elements to allow it to be exported to Excel
'
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .Text = "(CSV)([A-z0-9]{1,})(;^13)"
        .Replacement.Text = "\1\2;^l"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchAllWordForms = False
        .MatchSoundsLike = False
        .MatchWildcards = True
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    With Selection.Find
        .Text = "^13"
        .Replacement.Text = " "
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchAllWordForms = False
        .MatchSoundsLike = False
        .MatchWildcards = True
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub

41
General Board / EA13 Dynamic document generation
« on: September 20, 2016, 05:24:42 pm »
Sparx put this video up on You Tube today: https://www.youtube.com/watch?v=X5MROJ3a8hY

Has anyone got it to work as shown? When I click on the "document" button whilst I have a requirement selected on a diagram, I just get a blank document window. I've tried searching the on-line help for "Dynamic document" but nothing shows  ???

42
General Board / Re: Model Transfer from Cloud server
« on: September 20, 2016, 05:21:41 pm »
Submitted a new feature request

43
Suggestions and Requests / Converting Cloud Server to EAP file
« on: September 20, 2016, 05:21:19 pm »
There is no way to convert a cloud server database to an EAP file. This would help distribute models - including to Sparx Support (I have a problem with my model but cannot send it to you guys!)

Alternatively, please include step-by-step instructions/tools for backing up a cloud server database

44
General Board / Re: Model Transfer from Cloud server
« on: September 15, 2016, 06:39:07 pm »
We are facing this problem now too - at present the only way we have found to reliably backup our database(s) and then restore them is to do a flat-file copy of all the tables in the database.

Sparx: please can you detail the MySQL commands necessary to perform a database backup - we haven't been able to get this to work so far

45
Uml Process / Re: CSV export with notes
« on: September 13, 2016, 12:09:51 am »
Looking at the actual CSV file in Notpad++ as suggested reveals a possible answer!

Code: [Select]
PE-E5751-0342- Motor Demand Data: CRC Invalid;"The Motor shall reject CAN packets and the Motor Demand Data contained within the packet if the CRC within the packets does not match the CRC calculated from the packet contents.

Note: A CRC is included in each CAN packet to provide a means of checking if the packet has been corrupted. This CRC is in addition to the CRC provided by the CAN standard. All Motor Demand Data that is rejected is considered not to have been received. The rejection of the data can therefore lead to  Motor Demand Data Timeout conditions identified in other requirements.";Requirement;{1566C46D-A1D1-41dc-92AA-52B1F79B022D};CSVA9F9E3C9;

It seems that the CSV file that was exported might actually be right and Excel is ballsing it up >:(

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