Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This 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.


  Search this Thread
Old 09-09-2015, 12:01 PM   #1
LQ Newbie
Registered: May 2005
Posts: 9

Rep: Reputation: 0
Question Text to Product Tree, an automatic generation of basic block diagrams for scripting

I am looking for any solution available in Linux that is able to convert a simple text like this to a block diagram in form of a product tree:

---power source
----memory slot
----video chip

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.
Old 09-10-2015, 08:56 PM   #2
Registered: Apr 2014
Distribution: debian
Posts: 42

Rep: Reputation: Disabled
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.


blocks, image, product, script, text processing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic report generation by LogAnalyzer kaplan71 Linux - Software 1 11-14-2010 05:24 AM
Software for drawing block diagrams kushalkoolwal Linux - Software 3 06-11-2009 10:07 PM
Making diagrams(block) In linux. knockout_artist Linux - Newbie 2 10-17-2008 10:51 AM
Auto generation of MySQL schema diagrams? koyi Linux - Software 3 07-24-2008 05:45 AM
Perl automatic page generation crazeinc Programming 4 09-21-2003 10:45 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration