Text to Product Tree, an automatic generation of basic block diagrams for scripting
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This mean to output an image file (PNG, etc) or libreoffice draw file or any other graphical result with the graphical version of the correspondence PRODUCT TREE.
This should be automatic because text, hierarchy, order or relation are automatic changed and updated. Diagram should be generated fully automated.
I know that a TEX/LaTeX solution exist and other commercial sophisticate products.
My requirements are to be used for a product tree not as simple as such given, but with ten or more levels and with additional text in the block like definition, notes, etc. The image will be a huge one, that is not importat. A plotter is available :-). Ideal is that text will be converted in additional to SYSML representation of product tree :-)
Any idea/help will be appreciated very much.
Last edited by gengiskanhg; 09-09-2015 at 12:11 PM.
Never done something like this before, but check the following:
draw a bunch of lines, and write texts in xfig, and save the file.
You'll see that the fig format stores the line's coordinates, and the text,
and the format itself is human readable.
I can think about a script that makes a valid .fig from the textual information.
(for example CR/LF = add 30 to y coordinates
- = add 30 to x coordinates
and so on)
You can draw boxes, lines, etc, or include images.
After that you can call xfig with paramteres to make a png/ps/gif etc. output.
Or you should look to pygraphviz.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.