-
Notifications
You must be signed in to change notification settings - Fork 229
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] Add grouping for connectors to represent f.e. PCB with multiple connectors #325
Comments
Thank you for sharing your use case. It is possible to group several connectors and/or cables and draw a frame around them with a title text by adding an entry in the |
Thank you very much for the quick response. The example you linked is exactly how I imagined it. |
Another idea of grouping has been suggested in #268 (comment). The Graphviz "rankdir" is "LR", which creates WireViz diagrams with horizontal layouts. Any parts of the harness that are independent (unconnected) need to be stacked top-to-bottom, in order to achieve the least possible overall image width. |
@JarrettR you can use the new connector-to-connector feature (creating arrows with "==" as a wire designator). This will cause Graphviz to align the boxes to the right. Then check the GV file what the auto-generated designators of the dashed edges are. You can hide them with a "style: invis" tweak in the overrides. |
Thanks for the explanation, and that's a really good hack. I'm having issues with figuring out the appropriate overrides, though. For this simplified example:
Then the generated GraphViz section is just this, appended at the very end:
Neither of these can be accessed through the key/value system that the tweak option checks for. This does nothing useful, for example:
It actually hides all wires except for the one I want, ironically. |
Instead of trying to override the arrow connections, I recommend adding the invisible edges you need in the |
Oh of course. That works perfectly. Thanks for the tips, @martinrieder and @kvid |
That seems perfectly valid and allows for all kinds of nodes to be "tied together". The invisible edge can be added between two cables as well. I would like to add that these invisible edges actually influence the ranking of nodes. The is also an attribute |
Bug: Not all generated dot output could be changed by tweak entries. wireviz#325 (comment) Fix: Tweak processing must be done AFTER all other dot producing code.
Bug: Not all generated dot output could be changed by tweak entries. Observed in #325 (comment) Tweak processing must be the very last dot producing code to enable tweaking any dot output. Fix: Move all other dot producing code above Tweak processing.
@JarrettR wrote a couple of weeks ago:
|
Bug: Not all generated dot output could be changed by tweak entries. Observed in #325 (comment) Tweak processing must be the very last dot producing code to enable tweaking any dot output. Fix: Move all other dot producing code above Tweak processing.
Bug: Not all generated dot output could be changed by tweak entries. Seen in #325 (comment) Tweak processing must be the very last dot producing code to enable tweaking any dot output. Fix: Move all other dot producing code above Tweak processing.
Bug: Not all generated dot output could be changed by tweak entries. Seen in #325 (comment) Tweak processing must be the very last dot producing code to enable tweaking any dot output. Fix: Move all other dot producing code above Tweak processing.
Another possible solution to this issue could be found here, but this tool is intended for However, there is another trick to achieve similar behavior using the ccomps −x abc.gv | dot | gvpack | neato −s −n2 −Tps
|
Bug: Not all generated dot output could be changed by tweak entries. Seen in #325 (comment) Tweak processing must be the very last dot producing code to enable tweaking any dot output. Fix: Move all other dot producing code above Tweak processing.
Currently I am documenting the cable harness for my 3D-printer. In this printer is a controller board with over 20 connectors. If I add all these connectors they are not very well grouped to visualize that these connectors are all on one single PCB. Therefore, I would like to propose the following feature:
Add possibility to create a box with a name around a list of connectors to represent and better visualize a single component with multiple connectors.
Thank you for this awesome tool, it is real fun to work with it!
The text was updated successfully, but these errors were encountered: