Author Topic: Enforce Plain Text Paste Everywhere in Sparx?  (Read 12984 times)

Thelonius

  • EA User
  • **
  • Posts: 274
  • Karma: +6/-0
  • I think. Therefore I get paid.
    • View Profile
Enforce Plain Text Paste Everywhere in Sparx?
« on: November 13, 2020, 02:37:40 pm »
Is there a way to force Sparx client to default to "paste as plain text" when pasting text into element notes and documents?

When pasting text into element notes we either want 1. default to plain text 2. have a right-click context option to 'paste as plain text'.

But we do want to have hyperlinks in element notes.

 :)

Richard Freggi

  • EA User
  • **
  • Posts: 487
  • Karma: +18/-7
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #1 on: November 13, 2020, 04:16:47 pm »
SECONDED that would be nice, we need to paste documentation from a lot of different sources and non printing characters and formatting caused a lot of problems especially in reporting. Enforce Plain Text Paste Everywhere + also remove all extended ASCII would be great features!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13274
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #2 on: November 13, 2020, 05:04:22 pm »
A keyboard shortcut (Ctrl-shift-V like in Gmail) would be cool as well.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8596
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #3 on: November 13, 2020, 07:45:39 pm »
A keyboard shortcut (Ctrl-shift-V like in Gmail) would be cool as well.

Geert
+5
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Thelonius

  • EA User
  • **
  • Posts: 274
  • Karma: +6/-0
  • I think. Therefore I get paid.
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #4 on: November 17, 2020, 09:43:13 am »
Nice to see others are having the same perceptions using Sparx.

Thelonius

  • EA User
  • **
  • Posts: 274
  • Karma: +6/-0
  • I think. Therefore I get paid.
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #5 on: November 17, 2020, 11:41:57 am »
Related thought. We often place 'Document Artefacts' on diagrams to collect background information and links relevant to the context of the diagram.

I have not yet figured out how to change the default font, font size, and paragraph spacing for default document type.

My Question is This:
Is the default document easily accessible in Sparx (somewhere) that I can change the default formatting for it to our preferred standard - and therefore don't have to set (reset) each document to our preferred font / font size / paragraph spacing?

I tried to discover how to do this by searching and reading Sparx documentation that appeared to pertain to this action. Hahahaha!

If I am successful in this objective, it will still not allow me to set the default for pasting content into this document to 'paste as plain text by default' - so I presume I will be doomed to re-formatting anything pasted into a document to our preferred Arial 8pt.

Thanks for reading.


Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #6 on: November 17, 2020, 05:22:37 pm »
Hello,


Is the default document easily accessible in Sparx (somewhere) that I can change the default formatting for it to our preferred standard - and therefore don't have to set (reset) each document to our preferred font / font size / paragraph spacing?

I don't know whether you can access the default (linked documents are not affected by changes to the normal.rtf in %AppData%), but you can create your own templates. These are "linked document templates", and can be created in-project (Resources -- Linked Document Templates -- Model) or be packaged into an MDG technology.

In such a template, you can modify the "normal" style if you wish, add other styles, set page size, etc. Once deployed, you can select it when creating the document (first time double-clicking on the document artifact).

HTH,


/Uffe
« Last Edit: November 17, 2020, 05:26:16 pm by Uffe »
My theories are always correct, just apply them to the right reality.

skiwi

  • EA Expert
  • ****
  • Posts: 2080
  • Karma: +46/-82
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #7 on: November 19, 2020, 09:33:40 am »
A keyboard shortcut (Ctrl-shift-V like in Gmail) would be cool as well.
+1
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1311
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #8 on: November 20, 2020, 06:03:20 am »
A keyboard shortcut (Ctrl-shift-V like in Gmail) would be cool as well.

Geert
+1 and the dozen other users in my organisation.
Presently paste into notepad then copy from that into Sparx EA as a work around.
Happy to help
:)

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1311
  • Karma: +120/-10
  • Its the results that count
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #9 on: November 20, 2020, 06:29:16 am »
Related thought. We often place 'Document Artefacts' on diagrams to collect background information and links relevant to the context of the diagram.

I have not yet figured out how to change the default font, font size, and paragraph spacing for default document type.

My Question is This:
Is the default document easily accessible in Sparx (somewhere) that I can change the default formatting for it to our preferred standard - and therefore don't have to set (reset) each document to our preferred font / font size / paragraph spacing?
...


You find the default normal doc in
C:\Program Files (x86)\Sparx Systems\EA\DocTemplates\Document Templates\Normal.rtf.
Its copied to


C:\Users\username\AppData\Roaming\Sparx Systems\EA\RTF Templates
I used to replace this with our organisation's Normal.dot just save it as rtf.


However since styles have been introduced I now use those and these can be found here.
C:\Program Files (x86)\Sparx Systems\EA\DocTemplates\Stylesheets
But these are stored as xml.


What I do in Sparx EA is Open one of the stylesheets and export it as a MS Word doc. I can do things much easier in MSWord than the built in word processor. Then I change all the styles to match my organisations fonts, colours etc. in MS Word Styles. Note its the embedded styles in MS Word and not the example text with styles you see in the stylesheet. Some folk change the example text thinking they are changing the style but they aren't. After all the styles have been defined I create a new styles sheet in Sparx EA then import the MS Word doc where I'd changed the styles and save it. I then use the new stylesheet and apply that to any docs generated. Usually takes around 1 or 2 hours to change all the styles and save them back into Sparx EA.
Usually have to create 3 base templates in this order;
  • Stylesheet
  • Coverpage
  • Table of contents
I then create the doc templates as needed based for various document types. For example
  • Requirements
  • Design
  • Test
This is usually one of the first things I need to do when joining a new organisation and set up Sparx EA.


Hope that helps spread a little light onto the dark corners of EA.





Happy to help
:)

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #10 on: December 03, 2020, 03:24:36 am »
A keyboard shortcut (Ctrl-shift-V like in Gmail) would be cool as well.

Geert

+1

skiwi

  • EA Expert
  • ****
  • Posts: 2080
  • Karma: +46/-82
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #11 on: December 03, 2020, 06:39:54 am »

Just cause its the holiday season I've submitted a feature request to implement a plain text paste using the shortcut ctrl-shift-v as used in chromium based browsers.
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13274
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #12 on: December 03, 2020, 06:42:59 pm »
Now if we set our shoes before the fireplace next Saturday, we might get lucky
(because Sinterklaas is coming that night)

Geert

Richard Freggi

  • EA User
  • **
  • Posts: 487
  • Karma: +18/-7
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #13 on: December 03, 2020, 11:41:37 pm »
I used to export the model to XMI, then open it with Notepad++ and run a simple find and replace with Regedit that remove all extended ASCII.  Then re-import the model into EA.  Seemed to work OK.  Risky but it's an option ...

BJTim

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Enforce Plain Text Paste Everywhere in Sparx?
« Reply #14 on: February 14, 2023, 01:51:21 am »
+5 from me.

I've been asking for this for a long time.
Shouldn't be that hard to implement, but when you're always busy with something else, a little thing can become an awfully big thing.

Regards
Bernd