Hello Helmut,
Thank you very much!
It works!
toggle quoted message
Show quoted text
--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
Hello,
I think you missed my point.
1. If you have your designs under C:\Program Files\anywhere, then
move it out of this system directory to e.g. C:\mycircuits\....
2. The symbol of a hierarchical design and its belonging
schematic have to be in the folder of the top-level schematic.
3. Open an existing top-level schematic. If you have just started
a new schematic, you have to save it into th target folder before
you proceed with the next step.
4. Press F2 to get the "Select Component Symbol" dialog window.
There is a selection "Top Directoy" in the very top of this
window. Here you can select the directory of your symbols between
the standard sym-folder and the folder of your design.
Select the folder of your design.
5. Now you see all the symbols in your design folder. Select
the one you want to add to your schematic.
6. You can open the hierarchical schematic by right-clicking
on the placed symbol in the schematic. You should always open
it this way when you want probe in this lower level schematic.
That's it.
Everybody who reads this here and haven't used hierarchical
schematics so far can exercise it with my example.
Files > Examples > Educational > Hierarchical Schematic (preamp)
Just copy all fies into a new directory on your PC.
Best regards,
Helmut
--- In LTspice@..., "nikkotel" <nikkotel@> wrote:
Thanks Helmut,
I'm working with LTSPICE IV; so it isn't possible to change the top directory at "select component" to an arbitrary one - the only options are C:\Program Files\LTC\LTSPICE IV\lib\sym, and C:\Program Files\LTC\LTSPICE IV\lib.
Thanks
--- In LTspice@..., "Helmut" <helmutsennewald@> wrote:
--- In LTspice@..., "nikkotel" <nikkotel@> wrote:
I'm trying to work hierarchically, so I created a low level schematic (myblock.asc), created a symbol (myblock.asy) for that schematic, and saved both of them at C:\Program Files\LTC\...\lib\sym to be able to access the symbol when bringing components.
However, when I place that symbol in top level schematic, I get an error of missing schematic(s) of the hierarchy. If I save the top level schematic at the same folder as the low level, i.e. at e C:\Program Files\LTC\...\lib\sym, there is no error and everything works fine.
However, I'd like to save my top level schematic at another folder, so I probably need to point LTSPICE to low level schematic location... I tried to place a SPICE directive ".include C:\Program Files\LTC\...\lib\sym\myblock.asc", however, it didn't work.
Please advise
Thanks a lot
Hello,
You have to save the symbol and the schematic in the folder
of your top-level schematic.
Now here comes what you missed.
You can add a symbol from the folder of your top-level schematic.
Therefore open the "Select component" dialog. Then change the
folder in "Top Directory" to your schematic folder. Now you see
all the components(.asy) in your top-level directory.
Best regards,
Helmut