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

Splice Naming + Cable Hump Query #370

Closed
akikinho opened this issue May 30, 2024 · 7 comments
Closed

Splice Naming + Cable Hump Query #370

akikinho opened this issue May 30, 2024 · 7 comments

Comments

@akikinho
Copy link

Hello Wireviz team,
I am using Wireviz in a project and I am facing two issues.

  • How do I display the splice name?
  • For electrical cables crossing, I would like to show the hump to avoid confusion between the cables. How do I do that?

Any help will be greatly appreciated!

Thank you and Best Regards!

@martinrieder
Copy link
Contributor

@akikinho please provide a few more details, so we can clearly understand your request, i.e. which version you are using. Also make sure to check CONTRIBUTING. md

I'm afraid that displaying a "hump" won't be easy to implement due to the nature of the underlying Graphviz tool.

@kvid
Copy link
Collaborator

kvid commented May 31, 2024

@akikinho wrote:

[...]

  • How do I display the splice name?

In addition to the details @martinrieder asks you about, it will also help providing an example YAML input to better understanding in what context you want to "display the splice name". However, maybe what you seek can be obtained with show_name: true for the splice connectors.

  • For electrical cables crossing, I would like to show the hump to avoid confusion between the cables. How do I do that?

If I understand this request correctly, I agree with the previous answer, that it might not be easy to implement. Embedding or linking to an image showing the visual appearance you request will always help - I assume you request what is named "Older convention" at this page.

@akikinho
Copy link
Author

Hello @kvid @martinrieder, thank you so much for the help. @kvid yes for the hump, it is exactly what I want for the electrical connectors. Is there a possibility to do it?

@martinrieder
Copy link
Contributor

@akikinho Anything might be possible, so it is merely a question of how much effort it takes. The "new convention" is much easier to achieve using "virtual/hidden" splices. Since WireViz leaves the layouting to the Graphviz "dot" engine, it cannot predict which wires would cross.
How many crossings does your schematic have? Can you tell in advance which wires should cross? Would it be acceptable to do some manual postprocessing?

@akikinho
Copy link
Author

akikinho commented May 31, 2024

@martinrieder , here is a screenshot of the crossings. What is manual postprocessing?
crossings

@martinrieder
Copy link
Contributor

Okay that is quite a challenge. It arises from the fact that we use splines instead of straight lines for the wires. Now you actually have 3 wires crossing and a 4th one nearby. What do you expect that the output should look like?
By manually postprocessing, I meant editing the SVG output in Inkscape.

@akikinho
Copy link
Author

I understand @martinrieder. Thank you so much !

@kvid kvid closed this as completed Jul 9, 2024
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

3 participants