LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-06-2010, 05:28 AM   #1
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Rep: Reputation: 22
Automatic diagram generator software


Hello. I am looking for an automatic diagram generator. I want to design a chart for vacuum equipment (i.e., expensive plumbing) using DIN 28401 symbols. In other words, I need a program that is flexible enough to let me draw these symbols as I do not expect them to be present in some library. But I do not want to use an SVG software, I would rather write simple code telling the software what goes where. Dia is not an option either as it is more a special purposed SVG drawing software than anything else.

The closest I found so far is TikZ (a LaTeX package), which would do everything I want, but it is a rather complex tool. I would appreciate if somebody could point me to something simpler.

Example pseudo code for what I would like to do
Code:
define "hand valve"
define "rotary pump"
define "gas bottle"
define "T connection"

# Comment: simple fork -> union -> pump
gas bottle;
hand valve;
T connection;
    hand valve;
    hand valve;
T connection;
rotary pump;
 
Old 01-06-2010, 06:41 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
y'know, I cannot find DIN 2841 anywhere - can you give a pointer to the specification? [edit]scratch that - found DIN 28401

It looks like you want to make a library of the symbols then use another tool to manipulate them - like dia. That's what we'd normally do, rather than use a complex but powerful package like latex.BRL-CAD would also be way overkill - though you could visualise your pipes in 3D

Nah - take an existing symbolic diagramming tool and add the symbols you want to it. Faster, simpler. XFig, for eg, has a DIN library, dunno if it includes 28401 though. Dia also has a large collection of symbols.

Last edited by Simon Bridge; 01-06-2010 at 06:52 AM.
 
Old 01-07-2010, 07:18 AM   #3
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Original Poster
Rep: Reputation: 22
Thank you. For the 3D visualization, I use AutoCAD, not for any other reason than that's what my boss wants. But I would like a simpler and more schematic representation of the pipes, maybe Dia is the fastest and simplest tool as you said. I was just thinking that maybe, starting with a descriptive language and letting some other software actually do the drawing would be easier to maintain, but as you mentioned, everything that does that seems to be way too complicated.
 
Old 01-07-2010, 05:48 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I was just thinking that maybe, starting with a descriptive language and letting some other software actually do the drawing would be easier to maintain, but as you mentioned, everything that does that seems to be way too complicated.
Well, you have to define the descriptions somehow - and the program has to be generic enough to accept this.

Drawing all the symbols to vector-graphics then adding them to something else will be simpler than describing them, and it is the same thing only letting the computer do the donkey work. Add that it looks like many DIN symbos are already available, then it is likely that someone else has already addressed your problem.
 
Old 01-08-2010, 06:20 AM   #5
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Original Poster
Rep: Reputation: 22
That is all right. I will follow your recommendation. And what would you recommend as a symbolic diagramming software?
 
Old 01-08-2010, 09:47 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
- the diagram software tends to be light, so what I'd do in your place is download the main ones for your distr (Xfig and dia and anything that takes your fancy) and see what they do already. Add to the one that almost does what you want.

Note - for others:
DIN = German Industrial Standards (Deutsche Industrienorm) - the symbol set used a lot in AutoCAD packages. If the set you want are also ISO/IEC (like DIN 476 --> ISO 216 - paper sizes) then there should be a diagram package implementing them.
 
Old 01-08-2010, 11:06 PM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You mentioned LaTeX - the picture environment is mostly annoying to use because it requires absolute coordinates. However, there are diagram drawers which work with LaTeX as well, then you need only specify the macros.

eg. xy-pic works inside LaTeX, and uses a matrix-style layout. You'd add your macro names to places in the matrix and define their connections.

Also the PIC engine can be used to specify the digram in a manner close to what you described in your first post, and the pic commands converted to LaTeX picture environment commands using dpic or gpic utilities, or you can just compile it to postscript.
http://floppsie.comp.glam.ac.uk/Glam...s/web/pic.html

The pic representation of your example would look something like:
Code:
.PS

# Use block composites for each symbol
hand_valve: []
rotary_pump: []
gas_bottle: []
T_connection: []

#simple fork -> union -> pump

gas_bottle; line; hand_valve; line; T_connection;

line right up; hand_valve; line right down;

move to last T-connection;

line right down; hand_valve; line right up;

T_connection; line; rotary_pump;

.PE
The block composites can define connection points and default lines etc as complicated as you want. eg, you may prefer to use a macro for the t-junction to allow for orientation.

This looks very close to what you imagined.
 
1 members found this post helpful.
Old 01-09-2010, 02:30 AM   #8
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Original Poster
Rep: Reputation: 22
Nice! thank you again for your time.
 
  


Reply



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
Recommended OpenSource Availability Generator/Software hoopplaya4 Linux - Software 4 09-03-2008 06:51 PM
Looking for MySQL diagram creation software (like workbench) MicahCarrick Linux - Software 1 07-09-2007 08:48 PM
APG (Automatic Password Generator) very slow to answer jmcollin92 Linux - Security 2 05-23-2006 01:23 PM
Scott Pakins Automatic Complaint Generator? flamesrock Linux - Software 1 11-06-2003 08:27 PM
Webmin automatic password generator ToBe Linux - General 2 08-26-2003 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:56 PM.

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