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

[feature] Cable with numbered cores visualized #319

Open
zfarkas88 opened this issue Jun 23, 2023 · 4 comments
Open

[feature] Cable with numbered cores visualized #319

zfarkas88 opened this issue Jun 23, 2023 · 4 comments

Comments

@zfarkas88
Copy link

Hi,

would it be possible to visualize somehow cables with numbered cores?

Thank you in advance!

Colour code: VDE 0293-334

@kvid
Copy link
Collaborator

kvid commented Jul 4, 2023

As long as all wires (cores?) in the cable are numbered 1, 2, 3, 4, etc. - then this is already supported, but custom numbering that differs from the sequence of natural numbers (similar to custom pin numbering of a connector) is not currently supported.

@zfarkas88
Copy link
Author

by visualisation I mean something like this
github

connectors:
  X1:
    type: Molex MX150L
    subtype: female
    pinlabels: [Pin 1, Pin 2, Pin 3, Pin 4, Pin 5, Pin 6]
    notes: Connector 1
  X2:
    type: Molex MX150L
    subtype: female
    pinlabels: [Pin 1, Pin 2, Pin 3, Pin 4, Pin 5, Pin 6]
    notes: Connector 2  

cables:
  K43:
    gauge: 0.75 mm2
    length: 8
    colors: [BK,BK,BK,BK,BK,YEGN]
    wirecount: 6
    shield: false
    wirelabels: ["1","2","3","4","5","6"]
  
connections:
    - #K43
        - X1: [1,2,3,4,5,6]
        - K43: [1,2,3,4,5,6]
        - X2: [1,2,3,4,5,6]

@kvid
Copy link
Collaborator

kvid commented Jul 16, 2023

As far as I know, Graphviz doesn't support printing text on top of spline edges, and anyway I think it would've been tricky to obtain readable text on top of any wire, as they normally are either very thin or multicolored. However, if anyone find a way to implement this, please share your ideas here or create a PR.

Currently, I recommend using the allocated wire numbers (if your core numbers are a sequence of natural numbers), or wirelabels otherwise. Both are visualized as text above each wire in the central part of the cable box.

@kvid kvid changed the title Cable with numbered cores [feature] Cable with numbered cores visualized Oct 16, 2023
@martinrieder
Copy link

This would pose a solution to #8, though technically not feasible directly in Graphviz. It may be needed to add the numbering by post-processing the SVG output.

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