Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Guillaume on July 05, 2018, 08:12:26 pm

Title: Copy / paste a port from a block to another
Post by: Guillaume 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.   

Title: Re: Copy / paste a port from a block to another
Post by: qwerty 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.
Title: Re: Copy / paste a port from a block to another
Post by: Nizam 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.
Title: Re: Copy / paste a port from a block to another
Post by: qwerty 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.