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

Create a "splice" type #185

Closed
MSBGit opened this issue Oct 22, 2020 · 2 comments
Closed

Create a "splice" type #185

MSBGit opened this issue Oct 22, 2020 · 2 comments

Comments

@MSBGit
Copy link

MSBGit commented Oct 22, 2020

Sometimes I have one wire harness that is spliced to another wire harness (usually inside an enclosure for example). The splice is just wires soldered together and then heatshrinked, there is no physical connector at the splice. It would be useful to have a splice type which functions like a connector but doesn't have pins or other connector attributes and would be rendered as one or more wires joining one or more other wires, but not in any type of "housing". Today, I create a splice connector and use that to do what I want but it's confusing when someone looks at my wiring diagram and sees what looks like a connector but doesn't find a physical connector anywhere in the system (even though I comment the yml file when I define such a splice).
splice type

@formatc1702
Copy link
Collaborator

formatc1702 commented Oct 22, 2020

Have you considered the style: simple and autogenerate: true attributes?

Would the following example work for you?

connectors:
  S: &splice  # generic autogenerated splice
    style: simple
    autogenerate: true
    type: splice
  S1:
    <<: *splice          # copy attributes from 'S'
    autogenerate: false  # but disable autogeneration
    show_name: false     # this is currently necessary when autogenerate == false

cables:
  W1:
    wirecount: 3
    color_code: DIN
  W2:
    wirecount: 4
    color_code: IEC

connections:
  -
    - W1: [1-3]
    - [S, S, S1]  # wires 1+2 use autogenerated splice connectors
                  # wire 3 uses splice connector with user-specified designator
    - W2: [1-3]
  -
    - S1          # reuse S1 for the three-way splice
    - W2: 4

splice

See #184 for ongoing work on improving auto-generated connectors.

@formatc1702
Copy link
Collaborator

formatc1702 commented Oct 22, 2020

@MSBGit
if my suggestion helps you, and you feel #184 might make this kind of work easier in the future, please close this issue [and contribute to the discussion there, if you want].
Otherwise, let us know more details about your problem, or perhaps a sketch of how you would wish your kind of harness would be rendered.

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

2 participants