Closed Nineen closed 2 years ago
Hi Nineen, This tool was written for LTspice to TikZ translation and a lot of the script structure reflects this. What you, however, could do is use some of its design as a starting point for a reverse translation script.
Some points that have proven useful for me:
I'd like to mention though, that the inverse route (TikZ to LT) might be a lot harder, especially if the TikZ is handwritten. (circuit) TikZ allows for a lot of syntactical variations to achieve the same effect. Parsing all style variants might need a full parser, while this script here gets away with a bunch of regExes. There are also a lot of TikZ symbols that have no simulation models in spice. Also, I'm afraid that in the foreseeable future, I won't have any spare time to support you.
I think your suggestion is an is an interesting Idea and might indeed be useful to some people. Maybe you can get together a team to help you with this project.
Hi CX,
Thank you for your kind reply. I will definitely do when I have enough resource to get together a team to help me in my target. 😊
However, for Tikz to LT, my understanding is that, this route is easier. Tikz needs clean and beautiful diagram, however LT only needs correct connection. Symbols are from predefined library. Besides them we need only wires and pins.
Nineen
发件人: cx @.> 发送时间: 2022年2月27日 20:43 收件人: ckuhlmann/lt2circuitikz @.> 抄送: Nineen @.>; Author @.> 主题: Re: [ckuhlmann/lt2circuitikz] Is it possible to do Circuitikz2lt or to spice netlist? (Issue #5)
Hi Nineen, This tool was written for LTspice to TikZ translation and a lot of the script structure reflects this. What you, however, could do is use some of its design as a starting point for a reverse translation script.
Some points that have proven useful for me:
I'd like to mention though, that the inverse route (TikZ to LT) might be a lot harder, especially if the TikZ is handwritten. (circuit) TikZ allows for a lot of syntactical variations to achieve the same effect. Parsing all style variants might need a full parser, while this script here gets away with a bunch of regExes. There are also a lot of TikZ symbols that have no simulation models in spice. Also, I'm afraid that in the foreseeable future, I won't have any spare time to support you.
I think your suggestion is an is an interesting Idea and might indeed be useful to some people. Maybe you can get together a team to help you with this project.
— Reply to this email directly, view it on GitHub https://github.com/ckuhlmann/lt2circuitikz/issues/5#issuecomment-1053544319 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4BQRXVCNU7VYA2CCJRJWLU5IL63ANCNFSM5PNDQNNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AX4BQRRC6I67QUXPROQVPHDU5IL63A5CNFSM5PNDQNNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOH3F467Y.gif Message ID: @. @.> >
Hello, I am just wondering whether this tool can add a reverse function, say, to convert Tikz code to spice netlist? In this way, the schematic can be written in Tikz, and then sent to Spice for simulation.