gaphor / gaphor-utterances

Comments on https://docs.gaphor.org
0 stars 0 forks source link

en/latest/models/sysml/PortsAndFlows #5

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

PortsAndFlows - Gaphor documentation

https://docs.gaphor.org/en/latest/models/sysml/PortsAndFlows.html

jacquesae commented 1 year ago

Confused - How do you properly use the InterfaceBlock and type the proxy port with Gaphor? I am a beginner, but I cannot seem to implement interface definition in a meaningful fashion.

amolenaar commented 1 year ago

Hi, in version 2.19.1, we added an option to set the Type of a port.

Can you give Gaphor 2.19.1 a try and see if this is the feature you needed?

MaykovD commented 7 months ago

Hi! I have a question about ibd and proxy ports. On the bdd of my system I've created its structure using blocks and added proxy ports to each of the part (block) of my system. Then I decided to create ibd for the system to show its logical architecture. I dragged&dropped all the properties (parts) from the main block of the system to the ibd and now I want to see ports they possess. If I open(expand) a structure block I can see that it has a port (for example, +p1: IFModConfig), but I cannot understand how to show it on the ibd to be able to show connections via ports. Is it possible?

danyeaw commented 7 months ago

Hi @MaykovD, I don't think this is currently possible. @marek-piirikivi has been making some great updates to our proxy port implementation and could probably better speak to this.

marek-piirikivi commented 7 months ago

Hi @MaykovD!

Your requested use-case is now supported starting from version 2.22.0.

There are three ways you can do that:

  1. dragging and dropping the port from the model browser onto the part that can own the port
  2. double-clicking the port while the diagram is opened - it will automatically figure out what parts can own these ports, but will select the closest one to the top left corner of the diagram
  3. right-clicking on the port and selecting "Add to diagram" which will prompt the same behavior as in double-clicking.

First option is the only one which enables to add ports to all the parts when many parts are typed by the same block.

https://github.com/gaphor/gaphor-utterances/assets/45357878/f01b2c94-ab1a-48f7-b1c9-e20413ea86b9

MaykovD commented 7 months ago

I re-installed Gaphor (I had version 2.21) and now it works. Thank you!