Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

en/latest/models/sysml/PortsAndFlows #5

Open
utterances-bot opened this issue Jun 30, 2023 · 6 comments
Open

en/latest/models/sysml/PortsAndFlows #5

utterances-bot opened this issue Jun 30, 2023 · 6 comments

Comments

@utterances-bot
Copy link

PortsAndFlows - Gaphor documentation

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

Copy link

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
Copy link
Member

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?

Copy link

MaykovD commented Nov 28, 2023

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
Copy link
Member

danyeaw commented Nov 28, 2023

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
Copy link

marek-piirikivi commented Nov 29, 2023

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.

gaphor-2023-11-29_06.35.57.mp4

Copy link

MaykovD commented Nov 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants