Book a Demo

Author Topic: Copy / paste a port from a block to another  (Read 4142 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1378
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Copy / paste a port from a block to another
« on: July 05, 2018, 08:12:26 pm »
Working on a diagram, I have a port on a SysML Block that I'd like to copy/paste on another Block.
I select the port from the diagram -> Ctrl + C
I select the target block and press Ctrl + Maj + V

I get the following error: Error: When pasting embedded elements, the parent element must first exist in the same diagram.   

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Copy / paste a port from a block to another
« Reply #1 on: July 05, 2018, 08:35:46 pm »
You can not copy that as new port. Embedded elements can only be copied to their parent. You need to create a new port instead.

q.

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Copy / paste a port from a block to another
« Reply #2 on: July 05, 2018, 09:51:36 pm »
As a shortcut (workaround) i create a generalization connector between the blocks and use the 'owned / inherited' option to copy the ports across.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Copy / paste a port from a block to another
« Reply #3 on: July 05, 2018, 11:22:31 pm »
I was thinking of dragging a port from the browser. Just like you can do with attributes/operations which creates a new copy in the other class. But for ports that does not work. Might be worth asking for a feature extension here.

q.