talexb:

Like wjw, I've done a good bit with DXF files some time ago (pre-2K). I'd ask your colleague about what the drawing conventions are. AutoCAD doesn't really care about the concepts the geometry represents, but the people using it do. So you need to find out what conventions they use to represent the different parts of the drawing. In the jobs I recall, most of the interesting concepts were captured using layers, where one layer could be the property boundaries, another layer could be foundations, etc. Some other concepts were indicated by line types as well.

I've never seen anyone using Lat/Lon in a drawing, so you'll definitely need to translate for at. So you'll need a direction and scale references too, so be sure to ask about that.

One of the jobs I did used DXF files for locating electrical systems (transformers, power distribution boxes, etc.) so we'd have position. But some of the drawings had the floor name encoded in the drawing name, rather than put anywhere on the drawing itself. So you may have to prepare to merge the drawing data with some external information source, as well.

Back then, the drawings were by humans / for humans, so you may need several iterations with various examples to capture all the desired information. The drawing technologies have continued to advance, though, so things may not be as finicky now. (In a later robotics job we were extracting sections of ship plans for the purposes of cutting parts and welding hull sections, so we were able to push a bit of rigor into the drawing side of things.)

...roboticus

When your only tool is a hammer, all problems look like your thumb.


In reply to Re: Parsing DXF files for dimensional information by roboticus
in thread Parsing DXF files for dimensional information by talexb

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.