How to incorporate existing .sb as a (sub) graph?

28 views
Skip to first unread message

llama...@gmail.com

unread,
Jul 24, 2016, 4:52:07 PM7/24/16
to antimony-dev
Now that antimony has hierarchical graphs, how would I take a .sb and include it in a new project?

Matthew Keeter

unread,
Jul 28, 2016, 11:52:03 AM7/28/16
to llama...@gmail.com, antimony-dev
Nesting files within one another isn’t yet supported, so you would have to copy/paste from one file into the other.

Since you’re interested in this, a quick question: what makes more sense to you, between
a)  Including other graphs by reference, e.g. if you edit the original file then the embedded graph changes
b)  Subgraphs included by value, so they’re distinct from the original file

-Matt

On Jul 24, 2016, at 1:52 PM, llama...@gmail.com wrote:

Now that antimony has hierarchical graphs, how would I take a .sb and include it in a new project?

--
You received this message because you are subscribed to the Google Groups "antimony-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antimony-dev...@googlegroups.com.
To post to this group, send email to antimo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antimony-dev/05785ac0-f6e2-460e-8d2e-51ec6c50a51b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

llama...@gmail.com

unread,
Aug 8, 2016, 7:42:40 PM8/8/16
to antimony-dev


On Thursday, July 28, 2016 at 11:52:03 AM UTC-4, Matthew Keeter wrote:
Nesting files within one another isn’t yet supported, so you would have to copy/paste from one file into the other.

Since you’re interested in this, a quick question: what makes more sense to you, between
a)  Including other graphs by reference, e.g. if you edit the original file then the embedded graph changes
b)  Subgraphs included by value, so they’re distinct from the original file

Well, that was one of my questions too.

It looks to me that you have to have "by value": copying a subgraph or inserting an external .sb as a "subgraph". This is "grouping", mostly to control visual complexity.

But, I also think "by reference" is valuable for a "parts library" type behavior. E.g. The 10 instances of a screw should just reuse the screw subgraph. Probably, external files are cached and immutable (maybe with an "update" action). Maybe call this a "parts" behavior.

You convert a subgraph to a "part" by "make part" (or use an external file as a "part"). You could convert a "part" to a "subgraph" by "copy as subgraph".

Internal parts (not from an external file) must be editable (to refine/fix), but that is a special situation, because you are affecting all of the appearances. It should be obvious that you are affecting multiple "appearances."

How do PCB programs do it? They have parts libraries. What happens when the parts library is updated? I suspect your existing PCB doesn't suddenly change.
Reply all
Reply to author
Forward
0 new messages