Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Bruno Postle has proposed an interesting CAD file format, complete with proof of concept application written in perl.

Concept

  1. If it can be a separate file, then that's what it should be.
    • Fast efficient saving
    • Fast efficient reading
    • Infinite undo
    • Changes are easily encapsulated and portable
    • Full version tagging and release management
    • Embedded resources are kept external
    • Fine-grained permissions system
    • Platform-independent data
    • Object-oriented data

The beauty of this concept is the leverage of existing tools (modern filesystems, versioning, perl/tk, etc.) to provide an elegant example of what is now possible but rarely implemented.

With CVS, multiple authors can work on a single CAD project complete with real time display of all changes as they happen.

Each element of the drawing (an object perhaps; line, circle, etc.) can be described in a simple and human readable text file:

Content-Type: application/drawing; class=line/plain Version: 1.0 Units: millimetres 0: 10 0: 20 0: 0 1: 10 1: 40 1: 0 License: http://creativecommons.org/licenses/sa/1.0/ Copyright: Jane Doe <jane@example.com>

Groups of these files make an application which can later be used as a reference, providing object oriented approach to CAD design.

Making the hard things possible...

The author makes these points clear in about "400 lines of perl code." I downloaded the proof of concept application, installed the few modules necessary and it worked perfectly on my Fedora FC2 box. The concepts demonstrated in perl may not provide for the needs of a commercial CAD application and the author states (in various POD comments) that perl is not the solution for long term CAD implementations.

What is profoundly important are the concepts demonstrated. Faced with thousands of text files, perl was the natural solution for parsing and display of this information. With a bit more work, I am certain this proof of concept could surprise more than I with the possibilities of perl/tk and GUI applications to visual data display.


SciDude
The first dog barks... all other dogs bark at the first dog.

In reply to Open Human Readable Computer Aided Design file format by SciDude

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (4)
    As of 2014-09-21 02:05 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (165 votes), past polls