Book a Demo

Author Topic: Moving Elements from Search View to Proj.Browser  (Read 8314 times)

MThelker

  • Guest
Moving Elements from Search View to Proj.Browser
« on: December 15, 2015, 04:52:22 pm »
Good morning,

I have a question/bug report/feature request:

I often do searches using own SQL-queries. These searches result in elements originating from different packages within the project.
Now I would like to move all elements into a specific package by just drag and drop them to the project browser package.
Although the mouse cursor/icon looks like it can by done (little rechtangle unter the arrow) nothing happens.
A almost similiar approach/problem is, that I would like to select all elements on a specific diagram in the project browser so I can move/copy etc. all of these elements at once.

So the basic question is: How to be abale to handle (copy/move) elements from very different packages within EA at once.

I hope this was "understandable" and I appreciate any comment or help.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Moving Elements from Search View to Proj.Brows
« Reply #1 on: December 15, 2015, 06:41:49 pm »
Seems like a useful feature.
Make sure to also send a feature request to Sparx

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Moving Elements from Search View to Proj.Brows
« Reply #2 on: December 15, 2015, 07:00:07 pm »
Quote
Seems like a useful feature.
Make sure to also send a feature request to Sparx

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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Moving Elements from Search View to Proj.Brows
« Reply #3 on: December 15, 2015, 07:05:30 pm »
Hmm, I think they changed something in the Matrix again ;D

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Moving Elements from Search View to Proj.Brows
« Reply #4 on: December 15, 2015, 07:52:52 pm »
Hmm, I think they changed something in the Matrix again ;D

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Moving Elements from Search View to Proj.Brows
« Reply #5 on: December 16, 2015, 08:36:28 am »
Quote
How to be abale to handle (copy/move) elements from very different packages within EA at once.
Elements can be dragged from the package list view onto either another package list or directly onto the Project Browser.

MThelker

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Moving Elements from Search View to Proj.Browser
« Reply #6 on: December 31, 2015, 09:01:45 pm »
Hi Simon,

you mean draging all elements from different packages on a diagram and switch to List View?
I then have a list but cannot move the elements to another package.

The point is that I need to move an "arbitrary" (e.g. based on a query for name) group of elements to a single package no matter where they are stored right now (hopefully without any scripting).

But please tell me if I miss something/misunderstand your comment.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Moving Elements from Search View to Proj.Browser
« Reply #7 on: December 31, 2015, 09:23:29 pm »
Hi,

there is a workaround to the missing EA feature:

1. Copy selected elements of Search to Clipboard (Ctrl+C,..)
2. Make a little script which reads the clipboard, in fact the GUIDs which should be included in the SQL search, no big deal
3. Than make the copy / move or what ever you like

If everything goes according to plan I'll publish the solution in the community until this weekend. Most is already done.

The scripts I'll send to Geert and he may integrate them in his great Script initiative / Framework.

Of course this is only a workaround for a missing feature in EA.


Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

MThelker

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Moving Elements from Search View to Proj.Browser
« Reply #8 on: December 31, 2015, 10:55:30 pm »
Thanks Helmut, but be aware that I need to preserve all links/associations, which will be lost if I "just" copy/past.

That is btw another issue I actually got help from SPARX to copy an element with all links preserved.
(Using "convert to local copy).

Anyway: A simple copy and past is not what I need (just to repeat myself)...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Moving Elements from Search View to Proj.Browser
« Reply #9 on: December 31, 2015, 11:32:19 pm »
Tha's why Helmut said copy/move. The latter is actually more easy to do since you just have to change the parent. A copy/clone is more difficult since creating a clone in EA is a bit tricky (or laborious if you prefer the non-tricky way).

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Moving Elements from Search View to Proj.Browser
« Reply #10 on: January 03, 2016, 12:49:26 am »
Hello,

thanks for your advice.

Indeed, a deep copy isn't that simple. I would expect it as an API clone method from SPARX.

With GUI copy/past SPARX copies all relations between the copied items. Rhapsody e.g. has a clone method (API) which makes a copy of the item together with all outgoing relations. I would prefer an API like this.

Because that's to complex to do just in spare time I have only made move/delete for bookmarked or clipboarded items. It's finished and I asked Geert to integrate it in his great Script Framework. Additionally I'll put in in the community.

Regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

MThelker

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Moving Elements from Search View to Proj.Browser
« Reply #11 on: March 23, 2016, 09:08:35 pm »
Just because I'm standing again in front of a huge workload to move elements within a project...

Does anyone have news on this one? I reported it also as feature request to Sparx so I hoped to find something in the latest release notes... but nothing.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller